ImageGui::GLImageBox Class Reference

#include <GLImageBox.h>

List of all members.

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::ImageBasegetImageBasePtr ()
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 ()

Detailed Description

Definition at line 32 of file GLImageBox.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void GLImageBox::clearColorMap (  ) 
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 
)
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 
)
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]
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  ) 
int GLImageBox::pointImageTo ( void *  pSrcPixelData,
unsigned long  width,
unsigned long  height,
int  format,
unsigned short  numSigBitsPerSample,
bool  takeOwnership,
int  displayMode = IV_DISPLAY_RESET 
)
void GLImageBox::redraw (  ) 
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 (  ) 
void GLImageBox::setZoomFactor ( double  zoomFactor,
bool  useCentrePt = false,
int  ICx = 0,
int  ICy = 0 
)
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  ) 
double GLImageBox::WCToIC_Y ( double  WidgetY  ) 
void ImageGui::GLImageBox::zoom ( int  power,
bool  useCentrePt = false,
int  ICx = 0,
int  ICy = 0 
)

The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:13 2011 for FreeCAD by  doxygen 1.6.1