ImageGui::GLImageBox Class Reference

#include <OpenGLImageBox.h>

Public Slots

void handleLoggedMessage (const QOpenGLDebugMessage &debugMessage)
 

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=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
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)
 
void renderText (int x, int y, const QString &str, const QFont &fnt=QFont())
 
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 ()
 

Constructor & Destructor Documentation

◆ GLImageBox()

GLImageBox::GLImageBox ( QWidget parent = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags() 
)

◆ ~GLImageBox()

GLImageBox::~GLImageBox ( )

Member Function Documentation

◆ clearColorMap()

void GLImageBox::clearColorMap ( )

Referenced by createColorMap().

◆ clearImage()

void GLImageBox::clearImage ( )

◆ createColorMap()

int GLImageBox::createColorMap ( int  numEntriesReq = 0,
bool  Initialise = true 
)

References clearColorMap().

◆ createImageCopy()

int GLImageBox::createImageCopy ( void *  pSrcPixelData,
unsigned long  width,
unsigned long  height,
int  format,
unsigned short  numSigBitsPerSample,
int  displayMode = IV_DISPLAY_RESET 
)

◆ drawGraphics

void ImageGui::GLImageBox::drawGraphics ( )
signal

◆ fixBasePosCurr()

void GLImageBox::fixBasePosCurr ( )

◆ getCentrePoint()

void GLImageBox::getCentrePoint ( int ICx,
int ICy 
)

References WCToIC_X(), and WCToIC_Y().

Referenced by setZoomFactor().

◆ getImageBasePtr()

Image::ImageBase * ImageGui::GLImageBox::getImageBasePtr ( )

◆ getImageFormat()

int GLImageBox::getImageFormat ( )

◆ getImageNumSamplesPerPix()

unsigned short GLImageBox::getImageNumSamplesPerPix ( )

◆ getImageSample()

int GLImageBox::getImageSample ( int  x,
int  y,
unsigned short  sampleIndex,
double &  value 
)

◆ getNumColorMapEntries()

int ImageGui::GLImageBox::getNumColorMapEntries ( ) const

Referenced by pixValToMapIndex().

◆ getZoomFactor()

double ImageGui::GLImageBox::getZoomFactor ( )

◆ handleLoggedMessage

void GLImageBox::handleLoggedMessage ( const QOpenGLDebugMessage &  debugMessage)
slot

◆ ICToWC_X()

double GLImageBox::ICToWC_X ( double  ImageX)

◆ ICToWC_Y()

double GLImageBox::ICToWC_Y ( double  ImageY)

◆ pixValToMapIndex()

unsigned int GLImageBox::pixValToMapIndex ( double  PixVal)

◆ pointImageTo()

int GLImageBox::pointImageTo ( void *  pSrcPixelData,
unsigned long  width,
unsigned long  height,
int  format,
unsigned short  numSigBitsPerSample,
bool  takeOwnership,
int  displayMode = IV_DISPLAY_RESET 
)

◆ redraw()

void GLImageBox::redraw ( )

◆ relMoveWC()

void GLImageBox::relMoveWC ( int  WCdx,
int  WCdy 
)

◆ renderText()

void GLImageBox::renderText ( int  x,
int  y,
const QString &  str,
const QFont &  fnt = QFont() 
)

◆ setColorMapAlphaValue()

int GLImageBox::setColorMapAlphaValue ( int  index,
float  value 
)

◆ setColorMapBlueValue()

int GLImageBox::setColorMapBlueValue ( int  index,
float  value 
)

◆ setColorMapGreenValue()

int GLImageBox::setColorMapGreenValue ( int  index,
float  value 
)

◆ setColorMapRedValue()

int GLImageBox::setColorMapRedValue ( int  index,
float  value 
)

◆ setColorMapRGBAValue()

int GLImageBox::setColorMapRGBAValue ( int  index,
float  red,
float  green,
float  blue,
float  alpha = 1.0 
)

◆ setNormal()

void GLImageBox::setNormal ( )

References setZoomFactor().

◆ setZoomFactor()

void GLImageBox::setZoomFactor ( double  zoomFactor,
bool  useCentrePt = false,
int  ICx = 0,
int  ICy = 0 
)

References getCentrePoint().

Referenced by setNormal().

◆ stretchToFit()

void GLImageBox::stretchToFit ( )

◆ WCToIC_X()

double GLImageBox::WCToIC_X ( double  WidgetX)

Referenced by getCentrePoint().

◆ WCToIC_Y()

double GLImageBox::WCToIC_Y ( double  WidgetY)

Referenced by getCentrePoint().

◆ zoom()

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: