ImageGui::ImageView Class Reference

#include <ImageView.h>

Inheritance diagram for ImageGui::ImageView:
Gui::MDIView Gui::BaseView Base::BaseClass

List of all members.

Public Slots

virtual void fitImage ()
virtual void oneToOneImage ()

Public Member Functions

virtual void clearColorMap ()
virtual void clearImage ()
virtual int createColorMap (int numEntriesReq=0, bool Initialise=true)
virtual int createImageCopy (void *pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample, int displayMode=IV_DISPLAY_RESET)
virtual void EnableFitImageAction (bool Enable)
virtual void EnableMouseEvents (bool Enable)
virtual void EnableOneToOneAction (bool Enable)
virtual void EnableStatusBar (bool Enable)
virtual void EnableToolBar (bool Enable)
const char * getName (void) const
 returns the name of the view (important for messages)
virtual int getNumColorMapEntries () const
 ImageView (QWidget *parent)
bool onHasMsg (const char *pMsg) const
 Message handler test.
bool onMsg (const char *pMsg, const char **ppReturn)
 Message handler.
void onUpdate (void)
 get called when the document is updated
virtual int pointImageTo (void *pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample, bool takeOwnership, int displayMode=IV_DISPLAY_RESET)
virtual int setColorMapAlphaValue (int index, float value)
virtual int setColorMapBlueValue (int index, float value)
virtual int setColorMapGreenValue (int index, float value)
virtual int setColorMapRedValue (int index, float value)
virtual int setColorMapRGBAValue (int index, float red, float green, float blue, float alpha=1.0)
virtual ~ImageView ()

Protected Types

enum  {
  nothing = 0, panning, zooming, selection,
  addselection
}

Protected Slots

virtual void drawGraphics ()

Protected Member Functions

virtual void addSelect (int currX, int currY)
virtual void createActions ()
virtual QString createStatusBarText ()
virtual void mouseDoubleClickEvent (QMouseEvent *cEvent)
virtual void mouseMoveEvent (QMouseEvent *cEvent)
virtual void mousePressEvent (QMouseEvent *cEvent)
virtual void mouseReleaseEvent (QMouseEvent *cEvent)
virtual void select (int currX, int currY)
virtual void showEvent (QShowEvent *e)
virtual void showOriginalColors ()
virtual void startDrag ()
virtual void updateStatusBar ()
virtual void wheelEvent (QWheelEvent *cEvent)
virtual void zoom (int prevX, int prevY, int currX, int currY)

Protected Attributes

enum ImageGui::ImageView:: { ... }  _currMode
int _currX
int _currY
bool _mouseEventsEnabled
QMenu * _pContextMenu
QAction * _pFitAct
GLImageBox_pGLImageBox
QAction * _pOneToOneAct
QToolBar * _pStdToolBar
bool _statusBarEnabled
int dragStartWCx
int dragStartWCy

Detailed Description

Definition at line 33 of file ImageView.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
nothing 
panning 
zooming 
selection 
addselection 

Definition at line 91 of file ImageView.h.


Constructor & Destructor Documentation

ImageView::ImageView ( QWidget *  parent  ) 
ImageView::~ImageView (  )  [virtual]

Definition at line 67 of file ImageView.cpp.


Member Function Documentation

void ImageView::addSelect ( int  currX,
int  currY 
) [protected, virtual]

Definition at line 593 of file ImageView.cpp.

Referenced by mouseReleaseEvent().

void ImageView::clearColorMap (  )  [virtual]

Definition at line 188 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::clearColorMap().

void ImageView::clearImage (  )  [virtual]
void ImageView::createActions (  )  [protected, virtual]
int ImageView::createColorMap ( int  numEntriesReq = 0,
bool  Initialise = true 
) [virtual]

Definition at line 176 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::createColorMap().

int ImageView::createImageCopy ( void *  pSrcPixelData,
unsigned long  width,
unsigned long  height,
int  format,
unsigned short  numSigBitsPerSample,
int  displayMode = IV_DISPLAY_RESET 
) [virtual]
QString ImageView::createStatusBarText (  )  [protected, virtual]
void ImageView::drawGraphics (  )  [protected, virtual, slot]

Definition at line 602 of file ImageView.cpp.

Referenced by ImageView().

void ImageView::EnableFitImageAction ( bool  Enable  )  [virtual]

Definition at line 139 of file ImageView.cpp.

References _pFitAct.

void ImageView::EnableMouseEvents ( bool  Enable  )  [virtual]

Definition at line 125 of file ImageView.cpp.

References _mouseEventsEnabled.

void ImageView::EnableOneToOneAction ( bool  Enable  )  [virtual]

Definition at line 132 of file ImageView.cpp.

References _pOneToOneAct.

void ImageView::EnableStatusBar ( bool  Enable  )  [virtual]

Definition at line 100 of file ImageView.cpp.

References _statusBarEnabled.

Referenced by ImageView().

void ImageView::EnableToolBar ( bool  Enable  )  [virtual]

Definition at line 119 of file ImageView.cpp.

References _pStdToolBar.

void ImageView::fitImage (  )  [virtual, slot]

Definition at line 145 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::stretchToFit().

Referenced by createActions().

const char* ImageGui::ImageView::getName ( void   )  const [inline, virtual]

returns the name of the view (important for messages)

Reimplemented from Gui::BaseView.

Definition at line 41 of file ImageView.h.

int ImageView::getNumColorMapEntries (  )  const [virtual]

Definition at line 182 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::getNumColorMapEntries().

void ImageView::mouseDoubleClickEvent ( QMouseEvent *  cEvent  )  [protected, virtual]
void ImageView::mouseMoveEvent ( QMouseEvent *  cEvent  )  [protected, virtual]
void ImageView::mousePressEvent ( QMouseEvent *  cEvent  )  [protected, virtual]
void ImageView::mouseReleaseEvent ( QMouseEvent *  cEvent  )  [protected, virtual]
void ImageView::oneToOneImage (  )  [virtual, slot]
bool ImageGui::ImageView::onHasMsg ( const char *  pMsg  )  const [inline, virtual]

Message handler test.

Reimplemented from Gui::MDIView.

Definition at line 45 of file ImageView.h.

bool ImageGui::ImageView::onMsg ( const char *  pMsg,
const char **  ppReturn 
) [inline, virtual]

Message handler.

receive a message

Reimplemented from Gui::MDIView.

Definition at line 44 of file ImageView.h.

void ImageGui::ImageView::onUpdate ( void   )  [inline, virtual]

get called when the document is updated

Reimplemented from Gui::BaseView.

Definition at line 42 of file ImageView.h.

int ImageView::pointImageTo ( void *  pSrcPixelData,
unsigned long  width,
unsigned long  height,
int  format,
unsigned short  numSigBitsPerSample,
bool  takeOwnership,
int  displayMode = IV_DISPLAY_RESET 
) [virtual]
void ImageView::select ( int  currX,
int  currY 
) [protected, virtual]

Definition at line 586 of file ImageView.cpp.

Referenced by mouseReleaseEvent().

int ImageView::setColorMapAlphaValue ( int  index,
float  value 
) [virtual]

Definition at line 236 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::setColorMapAlphaValue().

int ImageView::setColorMapBlueValue ( int  index,
float  value 
) [virtual]

Definition at line 227 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::setColorMapBlueValue().

int ImageView::setColorMapGreenValue ( int  index,
float  value 
) [virtual]

Definition at line 218 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::setColorMapGreenValue().

int ImageView::setColorMapRedValue ( int  index,
float  value 
) [virtual]

Definition at line 209 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::setColorMapRedValue().

int ImageView::setColorMapRGBAValue ( int  index,
float  red,
float  green,
float  blue,
float  alpha = 1.0 
) [virtual]

Definition at line 200 of file ImageView.cpp.

References _pGLImageBox, and ImageGui::GLImageBox::setColorMapRGBAValue().

void ImageView::showEvent ( QShowEvent *  e  )  [protected, virtual]

Definition at line 440 of file ImageView.cpp.

References _pGLImageBox.

void ImageView::showOriginalColors (  )  [protected, virtual]
void ImageView::startDrag (  )  [protected, virtual]
void ImageView::updateStatusBar (  )  [protected, virtual]
void ImageView::wheelEvent ( QWheelEvent *  cEvent  )  [protected, virtual]
void ImageView::zoom ( int  prevX,
int  prevY,
int  currX,
int  currY 
) [protected, virtual]

Member Data Documentation

enum { ... } ImageGui::ImageView::_currMode [protected]
int ImageGui::ImageView::_currX [protected]
int ImageGui::ImageView::_currY [protected]

Definition at line 111 of file ImageView.h.

Referenced by createActions(), and mousePressEvent().

QAction* ImageGui::ImageView::_pFitAct [protected]

Definition at line 107 of file ImageView.h.

Referenced by createActions(), and EnableFitImageAction().

QAction* ImageGui::ImageView::_pOneToOneAct [protected]

Definition at line 108 of file ImageView.h.

Referenced by createActions(), and EnableOneToOneAction().

QToolBar* ImageGui::ImageView::_pStdToolBar [protected]

Definition at line 114 of file ImageView.h.

Referenced by createActions(), and EnableToolBar().

Definition at line 117 of file ImageView.h.

Referenced by EnableStatusBar(), and updateStatusBar().

Definition at line 103 of file ImageView.h.

Referenced by mouseMoveEvent(), and startDrag().

Definition at line 104 of file ImageView.h.

Referenced by mouseMoveEvent(), and startDrag().


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