#include <GLImageBox.h>
Signals | |
| void | drawGraphics () |
Public Member Functions | |
| void | clearColorMap () |
| void | clearImage () |
| int | createColorMap (int numEntriesReq=0, bool Initialise=true) |
| int | createImageCopy (void *pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample, int displayMode=IV_DISPLAY_RESET) |
| void | fixBasePosCurr () |
| void | getCentrePoint (int &ICx, int &ICy) |
| Image::ImageBase * | getImageBasePtr () |
| int | getImageFormat () |
| unsigned short | getImageNumSamplesPerPix () |
| int | getImageSample (int x, int y, unsigned short sampleIndex, double &value) |
| int | getNumColorMapEntries () const |
| double | getZoomFactor () |
| GLImageBox (QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WFlags f=0) | |
| double | ICToWC_X (double ImageX) |
| double | ICToWC_Y (double ImageY) |
| unsigned int | pixValToMapIndex (double PixVal) |
| int | pointImageTo (void *pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample, bool takeOwnership, int displayMode=IV_DISPLAY_RESET) |
| void | redraw () |
| void | relMoveWC (int WCdx, int WCdy) |
| int | setColorMapAlphaValue (int index, float value) |
| int | setColorMapBlueValue (int index, float value) |
| int | setColorMapGreenValue (int index, float value) |
| int | setColorMapRedValue (int index, float value) |
| int | setColorMapRGBAValue (int index, float red, float green, float blue, float alpha=1.0) |
| void | setNormal () |
| void | setZoomFactor (double zoomFactor, bool useCentrePt=false, int ICx=0, int ICy=0) |
| void | stretchToFit () |
| double | WCToIC_X (double WidgetX) |
| double | WCToIC_Y (double WidgetY) |
| void | zoom (int power, bool useCentrePt=false, int ICx=0, int ICy=0) |
| ~GLImageBox () | |
Definition at line 32 of file GLImageBox.h.
| GLImageBox::GLImageBox | ( | QWidget * | parent = 0, |
|
| const QGLWidget * | shareWidget = 0, |
|||
| Qt::WFlags | f = 0 | |||
| ) |
Definition at line 41 of file GLImageBox.cpp.
| GLImageBox::~GLImageBox | ( | ) |
Definition at line 62 of file GLImageBox.cpp.
| void GLImageBox::clearColorMap | ( | ) |
Definition at line 613 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::clearColorMap(), createColorMap(), and ImageGui::ImageView::showOriginalColors().
| void GLImageBox::clearImage | ( | ) |
Definition at line 519 of file GLImageBox.cpp.
References Image::ImageBase::clear().
Referenced by ImageGui::ImageView::clearImage().
| int GLImageBox::createColorMap | ( | int | numEntriesReq = 0, |
|
| bool | Initialise = true | |||
| ) |
Definition at line 638 of file GLImageBox.cpp.
References clearColorMap().
Referenced by ImageGui::ImageView::createColorMap().
| int GLImageBox::createImageCopy | ( | void * | pSrcPixelData, | |
| unsigned long | width, | |||
| unsigned long | height, | |||
| int | format, | |||
| unsigned short | numSigBitsPerSample, | |||
| int | displayMode = IV_DISPLAY_RESET | |||
| ) |
Definition at line 538 of file GLImageBox.cpp.
References Image::ImageBase::createCopy(), IV_DISPLAY_FITIMAGE, and IV_DISPLAY_RESET.
Referenced by ImageGui::ImageView::createImageCopy().
| void ImageGui::GLImageBox::drawGraphics | ( | ) | [signal] |
| void GLImageBox::fixBasePosCurr | ( | ) |
Definition at line 351 of file GLImageBox.cpp.
References Image::ImageBase::hasValidData().
Referenced by ImageGui::ImageView::startDrag().
| void GLImageBox::getCentrePoint | ( | int & | ICx, | |
| int & | ICy | |||
| ) |
Definition at line 445 of file GLImageBox.cpp.
References Py::int, WCToIC_X(), and WCToIC_Y().
Referenced by setZoomFactor(), ImageGui::ImageView::wheelEvent(), and ImageGui::ImageView::zoom().
| Image::ImageBase* ImageGui::GLImageBox::getImageBasePtr | ( | ) | [inline] |
Definition at line 41 of file GLImageBox.h.
| int GLImageBox::getImageFormat | ( | ) |
Definition at line 244 of file GLImageBox.cpp.
References Image::ImageBase::getFormat().
Referenced by ImageGui::ImageView::createStatusBarText().
| unsigned short GLImageBox::getImageNumSamplesPerPix | ( | ) |
Definition at line 238 of file GLImageBox.cpp.
References Image::ImageBase::getNumSamples().
| int GLImageBox::getImageSample | ( | int | x, | |
| int | y, | |||
| unsigned short | sampleIndex, | |||
| double & | value | |||
| ) |
Definition at line 232 of file GLImageBox.cpp.
References Image::ImageBase::getSample().
Referenced by ImageGui::ImageView::createStatusBarText().
| int ImageGui::GLImageBox::getNumColorMapEntries | ( | ) | const [inline] |
Definition at line 69 of file GLImageBox.h.
Referenced by ImageGui::ImageView::getNumColorMapEntries(), and pixValToMapIndex().
| double ImageGui::GLImageBox::getZoomFactor | ( | ) | [inline] |
Definition at line 50 of file GLImageBox.h.
Referenced by ImageGui::ImageView::createStatusBarText(), ImageGui::ImageView::mouseDoubleClickEvent(), ImageGui::ImageView::wheelEvent(), and ImageGui::ImageView::zoom().
| double GLImageBox::ICToWC_X | ( | double | ImageX | ) |
Definition at line 498 of file GLImageBox.cpp.
| double GLImageBox::ICToWC_Y | ( | double | ImageY | ) |
Definition at line 512 of file GLImageBox.cpp.
| unsigned int GLImageBox::pixValToMapIndex | ( | double | PixVal | ) |
Definition at line 767 of file GLImageBox.cpp.
References Image::ImageBase::getNumBitsPerSample(), getNumColorMapEntries(), Image::ImageBase::getNumSigBitsPerSample(), Py::int, and KDL::pow().
| int GLImageBox::pointImageTo | ( | void * | pSrcPixelData, | |
| unsigned long | width, | |||
| unsigned long | height, | |||
| int | format, | |||
| unsigned short | numSigBitsPerSample, | |||
| bool | takeOwnership, | |||
| int | displayMode = IV_DISPLAY_RESET | |||
| ) |
Definition at line 580 of file GLImageBox.cpp.
References IV_DISPLAY_FITIMAGE, IV_DISPLAY_RESET, and Image::ImageBase::pointTo().
Referenced by ImageGui::ImageView::pointImageTo().
| void GLImageBox::redraw | ( | ) |
Definition at line 89 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::clearImage(), ImageGui::ImageView::mouseDoubleClickEvent(), ImageGui::ImageView::oneToOneImage(), ImageGui::ImageView::showOriginalColors(), ImageGui::ImageView::wheelEvent(), and ImageGui::ImageView::zoom().
| void GLImageBox::relMoveWC | ( | int | WCdx, | |
| int | WCdy | |||
| ) |
Definition at line 453 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::mouseMoveEvent().
| int GLImageBox::setColorMapAlphaValue | ( | int | index, | |
| float | value | |||
| ) |
Definition at line 757 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::setColorMapAlphaValue().
| int GLImageBox::setColorMapBlueValue | ( | int | index, | |
| float | value | |||
| ) |
Definition at line 744 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::setColorMapBlueValue().
| int GLImageBox::setColorMapGreenValue | ( | int | index, | |
| float | value | |||
| ) |
Definition at line 731 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::setColorMapGreenValue().
| int GLImageBox::setColorMapRedValue | ( | int | index, | |
| float | value | |||
| ) |
Definition at line 718 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::setColorMapRedValue().
| int GLImageBox::setColorMapRGBAValue | ( | int | index, | |
| float | red, | |||
| float | green, | |||
| float | blue, | |||
| float | alpha = 1.0 | |||
| ) |
Definition at line 698 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::setColorMapRGBAValue().
| void GLImageBox::setNormal | ( | ) |
Definition at line 428 of file GLImageBox.cpp.
References Image::ImageBase::getHeight(), Image::ImageBase::getWidth(), Image::ImageBase::hasValidData(), and setZoomFactor().
Referenced by ImageGui::ImageView::oneToOneImage().
| void GLImageBox::setZoomFactor | ( | double | zoomFactor, | |
| bool | useCentrePt = false, |
|||
| int | ICx = 0, |
|||
| int | ICy = 0 | |||
| ) |
Definition at line 368 of file GLImageBox.cpp.
References getCentrePoint(), and Image::ImageBase::hasValidData().
Referenced by ImageGui::ImageView::mouseDoubleClickEvent(), setNormal(), ImageGui::ImageView::wheelEvent(), and ImageGui::ImageView::zoom().
| void GLImageBox::stretchToFit | ( | ) |
Definition at line 394 of file GLImageBox.cpp.
References Image::ImageBase::hasValidData().
Referenced by ImageGui::ImageView::fitImage().
| double GLImageBox::WCToIC_X | ( | double | WidgetX | ) |
Definition at line 470 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::createStatusBarText(), getCentrePoint(), and ImageGui::ImageView::mouseDoubleClickEvent().
| double GLImageBox::WCToIC_Y | ( | double | WidgetY | ) |
Definition at line 484 of file GLImageBox.cpp.
Referenced by ImageGui::ImageView::createStatusBarText(), getCentrePoint(), and ImageGui::ImageView::mouseDoubleClickEvent().
| void ImageGui::GLImageBox::zoom | ( | int | power, | |
| bool | useCentrePt = false, |
|||
| int | ICx = 0, |
|||
| int | ICy = 0 | |||
| ) |
1.6.1