MorphoGraphX  2.0-1-227
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MorphoViewer Class Reference

#include <MorphoViewer.hpp>

+ Inheritance diagram for MorphoViewer:

Public Types

enum  FrameIdentity {
  FI_BACKGROUND, FI_FULL_IMG1, FI_FULL_IMG2, FI_CUR_PEEL,
  FI_VOLUME1, FI_VOLUME2, FI_OCCLUSION, NB_FRAMES
}
 
enum  GuiAction {
  STACK_VOXEL_EDIT, STACK_PICK_LABEL, STACK_DEL_LABEL, STACK_DEL_PICKED,
  STACK_FILL_LABEL, STACK_PICK_FILL_LABEL, MESH_SEL_POINTS, MESH_SEL_LASSO,
  MESH_ADD_SEED, MESH_CURR_SEED, MESH_PICK_LABEL, MESH_SEL_LABEL,
  MESH_SEL_CONN, MESH_SEL_TRIS, MESH_GRAB_SEED, MESH_FILL_LABEL,
  MESH_PICK_FILL_LABEL, MESH_PICK_FILL_PARENT
}
 

Public Slots

void setLabel (int label)
 
void selectMeshLabel (int label, int repeat, bool replace=true)
 
void ReloadShaders ()
 
void UpdateSlot ()
 
void loadFile (const QString &pth, bool stack2, bool load_work)
 
void UpdateLabels ()
 
void Clip1EnableSlot (bool _val)
 
void Clip1GridSlot (bool _val)
 
void Clip1WidthSlot (int _val)
 
void Clip2EnableSlot (bool _val)
 
void Clip2GridSlot (bool _val)
 
void Clip2WidthSlot (int _val)
 
void Clip3EnableSlot (bool _val)
 
void Clip3GridSlot (bool _val)
 
void Clip3WidthSlot (int _val)
 
void FlySpeedSlot (int val)
 
void DrawCellMapSlot (bool val)
 
void SlicesSlot (int val)
 
void ScreenSamplingSlot (int val)
 
void LabelColorSlot ()
 
void ResetViewSlot ()
 
void recordMovie (bool on)
 
void saveScreenshot (bool automatic=false, bool overwrite=false)
 
void saveScreenshot (const QString &fileName, bool overwrite=false)
 
void setScreenshotFileName (const QString &name)
 
void setScreenshotFormat (const QString &format)
 
void setScreenshotCounter (int counter)
 
void setScreenshotQuality (int quality)
 
bool openScreenshotFormatDialog ()
 
virtual void initFromDOMElement (const QDomElement &element)
 
void ViewerUpdateSlot ()
 
virtual bool saveImageSnapshot (const QString &fileName, QSize finalSize, double oversampling=1.0, bool expand=false, bool has_gui=false)
 
bool saveImageSnapshot (const QString &fileName, QSize finalSize, double oversampling, bool expand, bool has_gui, QString *error)
 
void showEntireScene ()
 

Signals

void deleteSelection ()
 
void modified ()
 
void stepDrawFinished (bool)
 
void setLabelColor (QIcon &)
 
void recordingMovie (bool)
 
void changeSceneRadius (float)
 
void selectLabelChanged (int)
 

Public Member Functions

float ZoomFactor () const
 
void setZoomFactor (float f)
 
MorphoGraphXmainWindow ()
 
void setSceneBoundingBox (const mgx::Point3f &bbox)
 
float getSceneRadius () const
 
void processRunning (bool state)
 
bool processRunning ()
 
 MorphoViewer (QWidget *parent)
 
 MorphoViewer (QGLContext *context, QWidget *parent)
 
 MorphoViewer (const QGLFormat &format, QWidget *parent)
 
virtual ~MorphoViewer ()
 
virtual QDomElement domElement (const QString &name, QDomDocument &document) const
 
void drawSelectRect ()
 
void drawSelectLasso ()
 
void drawVoxelCursor ()
 
void checkVoxelCursor (bool altPressed)
 
void drawColorBar ()
 
void drawScaleBar ()
 
void setLighting (mgx::ImgData *stack)
 
void readParms (mgx::Parms &parms, QString section)
 
void writeParms (QTextStream &pout, QString section)
 
void updateAll ()
 
mgx::Point3f pointUnderPixel (const QPoint &pos, bool &found)
 
void startScreenCoordinatesSystem (bool upward=false) const
 
- Public Member Functions inherited from QGLViewer
 KeyboardAction
 
 RAW_AXIS
 
 RAW_GRID
 
 ISPLAY_FPS
 
 NABLE_TEXT
 
 XIT_VIEWER
 
 AVE_SCREENSHOT
 
 AMERA_MODE
 
 ULL_SCREEN
 
 TEREO
 
 NIMATION
 
 ELP
 
 DIT_CAMERA
 
 OVE_CAMERA_LEFT
 
 OVE_CAMERA_RIGHT
 
 OVE_CAMERA_UP
 
 OVE_CAMERA_DOWN
 
 NCREASE_FLYSPEED
 
 ECREASE_FLYSPEED
 
 MouseHandler
 
 AMERA
 
 RAME
 
 ClickAction
 
 O_CLICK_ACTION
 
 OOM_ON_PIXEL
 
 OOM_TO_FIT
 
 ELECT
 
 AP_FROM_PIXEL
 
 AP_IS_CENTER
 
 ENTER_FRAME
 
 ENTER_SCENE
 
 HOW_ENTIRE_SCENE
 
 LIGN_FRAME
 
 LIGN_CAMERA
 
 MouseAction
 
 O_MOUSE_ACTION
 
 OTATE
 
 OOM
 
 RANSLATE
 
 OVE_FORWARD
 
 OOK_AROUND
 
 OVE_BACKWARD
 
 CREEN_ROTATE
 
 OLL
 
 RIVE
 
 CREEN_TRANSLATE
 
 OOM_ON_REGION
 
 QGLViewer (QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WFlags flags=0)
 
 QGLViewer (QGLContext *context, QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WFlags flags=0)
 
 QGLViewer (const QGLFormat &format, QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WFlags flags=0)
 
 ~QGLViewer ()
 
 axisIsDrawn () const
 
 gridIsDrawn () const
 
 FPSIsDisplayed () const
 
 textIsEnabled () const
 
 cameraIsEdited () const
 
 setAxisIsDrawn (bool draw=true)
 
 setGridIsDrawn (bool draw=true)
 
 setFPSIsDisplayed (bool display=true)
 
 setTextIsEnabled (bool enable=true)
 
 setCameraIsEdited (bool edit=true)
 
 toggleAxisIsDrawn ()
 
 toggleGridIsDrawn ()
 
 toggleFPSIsDisplayed ()
 
 toggleTextIsEnabled ()
 
 toggleCameraIsEdited ()
 
 backgroundColor () const
 
 foregroundColor () const
 
 setBackgroundColor (const QColor &color)
 
 setForegroundColor (const QColor &color)
 
 sceneRadius () const
 
 sceneCenter () const
 
 setSceneRadius (float radius)
 
 setSceneCenter (const qglviewer::Vec &center)
 
 setSceneBoundingBox (const qglviewer::Vec &min, const qglviewer::Vec &max)
 
 showEntireScene ()
 
 camera () const
 
 manipulatedFrame () const
 
 setCamera (qglviewer::Camera *const camera)
 
 setManipulatedFrame (qglviewer::ManipulatedFrame *frame)
 
 mouseGrabber () const
 
 setMouseGrabberIsEnabled (const qglviewer::MouseGrabber *const mouseGrabber, bool enabled=true)
 
 mouseGrabberIsEnabled (const qglviewer::MouseGrabber *const mouseGrabber)
 
 setMouseGrabber (qglviewer::MouseGrabber *mouseGrabber)
 
 aspectRatio () const
 
 currentFPS ()
 
 isFullScreen () const
 
 displaysInStereo () const
 
 sizeHint () const
 
 setFullScreen (bool fullScreen=true)
 
 setStereoDisplay (bool stereo=true)
 
 toggleFullScreen ()
 
 toggleStereoDisplay ()
 
 toggleCameraMode ()
 
 drawArrow (float length=1.0f, float radius=-1.0f, int nbSubdivisions=12)
 
 drawArrow (const qglviewer::Vec &from, const qglviewer::Vec &to, float radius=-1.0f, int nbSubdivisions=12)
 
 drawAxis (float length=1.0f)
 
 drawGrid (float size=1.0f, int nbSubdivisions=10)
 
 startScreenCoordinatesSystem (bool upward=false) const
 
 stopScreenCoordinatesSystem () const
 
 drawText (int x, int y, const QString &text, const QFont &fnt=QFont())
 
 displayMessage (const QString &message, int delay=2000)
 
 drawLight (GLenum light, float scale=1.0f) const
 
 width () const
 
 height () const
 
 updateGL ()
 
 convertToGLFormat (const QImage &image)
 
 qglColor (const QColor &color) const
 
 qglClearColor (const QColor &color) const
 
 isValid () const
 
 isSharing () const
 
 makeCurrent ()
 
 hasMouseTracking () const
 
 resize (int width, int height)
 
 setMouseTracking (bool enable)
 
 autoBufferSwap () const
 
 setAutoBufferSwap (bool on)
 
 snapshotFileName () const
 
 snapshotFormat () const
 
 snapshotCounter () const
 
 snapshotQuality ()
 
 saveSnapshot (bool automatic=true, bool overwrite=false)
 
 saveSnapshot (const QString &fileName, bool overwrite=false)
 
 setSnapshotFileName (const QString &name)
 
 setSnapshotFormat (const QString &format)
 
 setSnapshotCounter (int counter)
 
 setSnapshotQuality (int quality)
 
 openSnapshotFormatDialog ()
 
 bufferTextureId () const
 
 bufferTextureMaxU () const
 
 bufferTextureMaxV () const
 
 copyBufferToTexture (GLint internalFormat, GLenum format=GL_NONE)
 
 animationIsStarted () const
 
 animationPeriod () const
 
 setAnimationPeriod (int period)
 
 startAnimation ()
 
 stopAnimation ()
 
 animate ()
 
 toggleAnimation ()
 
 viewerInitialized ()
 
 drawNeeded ()
 
 drawFinished (bool automatic)
 
 animateNeeded ()
 
 helpRequired ()
 
 axisIsDrawnChanged (bool drawn)
 
 gridIsDrawnChanged (bool drawn)
 
 FPSIsDisplayedChanged (bool displayed)
 
 textIsEnabledChanged (bool enabled)
 
 cameraIsEditedChanged (bool edited)
 
 stereoChanged (bool on)
 
 pointSelected (const QMouseEvent *e)
 
 mouseGrabberChanged (qglviewer::MouseGrabber *mouseGrabber)
 
 helpString () const
 
 mouseString () const
 
 keyboardString () const
 
 help ()
 
 aboutQGLViewer ()
 
 helpWidget ()
 
 resizeGL (int width, int height)
 
 initializeGL ()
 
 init ()
 
 paintGL ()
 
 preDraw ()
 
 preDrawStereo (bool leftBuffer=true)
 
 draw ()
 
 fastDraw ()
 
 postDraw ()
 
 mousePressEvent (QMouseEvent *)
 
 mouseMoveEvent (QMouseEvent *)
 
 mouseReleaseEvent (QMouseEvent *)
 
 mouseDoubleClickEvent (QMouseEvent *)
 
 wheelEvent (QWheelEvent *)
 
 keyPressEvent (QKeyEvent *)
 
 timerEvent (QTimerEvent *)
 
 closeEvent (QCloseEvent *)
 
 selectedName () const
 
 selectBufferSize () const
 
 selectRegionWidth () const
 
 selectRegionHeight () const
 
 selectBuffer ()
 
 select (const QMouseEvent *event)
 
 select (const QPoint &point)
 
 setSelectBufferSize (int size)
 
 setSelectRegionWidth (int width)
 
 setSelectRegionHeight (int height)
 
 setSelectedName (int id)
 
 beginSelection (const QPoint &point)
 
 drawWithNames ()
 
 endSelection (const QPoint &point)
 
 postSelection (const QPoint &point)
 
 shortcut (KeyboardAction action) const
 
 pathKey (int index) const
 
 addKeyFrameKeyboardModifiers () const
 
 playPathKeyboardModifiers () const
 
 setShortcut (KeyboardAction action, int key)
 
 setKeyDescription (int key, QString description)
 
 setPathKey (int key, int index=0)
 
 setPlayPathKeyboardModifiers (Qt::KeyboardModifiers modifiers)
 
 setAddKeyFrameKeyboardModifiers (Qt::KeyboardModifiers modifiers)
 
 mouseAction (int state) const
 
 mouseHandler (int state) const
 
 mouseButtonState (MouseHandler handler, MouseAction action, bool withConstraint=true) const
 
 clickAction (int state, bool doubleClick, Qt::MouseButtons buttonsBefore) const
 
 getClickButtonState (ClickAction action, int &state, bool &doubleClick, Qt::MouseButtons &buttonsBefore) const
 
 wheelAction (Qt::KeyboardModifiers modifiers) const
 
 wheelHandler (Qt::KeyboardModifiers modifiers) const
 
 wheelButtonState (MouseHandler handler, MouseAction action, bool withConstraint=true) const
 
 setMouseBinding (int state, MouseHandler handler, MouseAction action, bool withConstraint=true)
 
 setMouseBinding (int state, ClickAction action, bool doubleClick=false, Qt::MouseButtons buttonsBefore=Qt::NoButton)
 
 setMouseBindingDescription (int state, QString description, bool doubleClick=false, Qt::MouseButtons buttonsBefore=Qt::NoButton)
 
 setWheelBinding (Qt::KeyboardModifiers modifiers, MouseHandler handler, MouseAction action, bool withConstraint=true)
 
 setHandlerKeyboardModifiers (MouseHandler handler, Qt::KeyboardModifiers modifiers)
 
 stateFileName () const
 
 domElement (const QString &name, QDomDocument &document) const
 
 initFromDOMElement (const QDomElement &element)
 
 saveStateToFile ()
 
 restoreStateFromFile ()
 
 setStateFileName (const QString &name)
 
 QGLViewerPool ()
 
 QGLViewerIndex (const QGLViewer *const viewer)
 

Static Public Member Functions

static void initFormat ()
 

Public Attributes

bool quitting
 
bool DrawCellMap
 
bool DrawClipBox
 
mgx::Point3f oldVPos
 
QPoint oldPos
 
QRect selectRect
 
LassoSelect selectLasso
 
bool voxelEditCursor
 
float pixelRadius
 
QPoint mousePos
 
mgx::Shader raycastingShader1
 
mgx::Shader raycastingShader2
 
mgx::Shader colormap2Shader
 
mgx::Shader index2Shader
 
mgx::Shader finalCombineShader
 
mgx::Shader combineShader
 
mgx::Shader renderDepthShader
 
mgx::Shader textureSurfShader
 
mgx::Shader indexSurfShader
 
mgx::Shader colorSurfShader
 
mgx::Shader volumeSurfShader1
 
mgx::Shader volumeSurfShader2
 
mgx::Shader postProcessShader
 
mgx::Shader occlusionShader
 
GLuint baseFboId
 
GLuint fboId
 
GLuint fboCopyId
 
GLuint depthTexId [NB_FRAMES]
 
GLuint colorTexId [NB_FRAMES]
 
GLuint depthBuffer
 
std::vector< GLfloat > depthTexture
 
int drawWidth
 
int drawHeight
 
int prevWidth
 
int prevHeight
 
bool shiftPressed
 
bool altPressed
 
bool controlPressed
 
bool leftButton
 
bool rightButton
 
GuiAction guiAction
 
bool guiActionOn
 
bool meshPickFill
 
bool stackPickFill
 
QList< float > pickedLabels
 
mgx::ClipRegion clip1
 
mgx::ClipRegion clip2
 
mgx::ClipRegion clip3
 
mgx::Clipc1
 
mgx::Clipc2
 
mgx::Clipc3
 
QPointer< mgx::ImgDatastack1
 
QPointer< mgx::ImgDatastack2
 
mgx::CutSurfcutSurf
 
float FlySpeed
 
int selectedLabel
 
float sampling
 
bool fast_draw
 
int texWidth
 
int texHeight
 
int show_slice
 
int slice_type
 
int MaxNbPeels
 
float Specular
 
float Shininess
 
float GlobalBrightness
 
float GlobalContrast
 
float UnsharpStrength
 
float Spinning
 
mgx::Matrix4d CameraFrame
 
MGXCamera_camera
 

Protected Member Functions

void preDraw ()
 
void draw ()
 
void draw (QPaintDevice *device)
 
void fastDraw ()
 
virtual void postDraw ()
 
virtual void init ()
 
void showEvent (QShowEvent *event)
 
void resizeGL (int width, int height)
 
void updateFBOTex (int width, int height, bool fast_draw=false)
 
void drawColorTexture (int i, bool draw_depth=false)
 
void alternatePeels (int &curPeelId, int &prevPeelId, int fullImgId)
 
void combinePeels (int &fullImgId, int curPeelId, int volume1, int volume2)
 
void setupCopyFB (GLuint depth, GLint color)
 
void setupFramebuffer (GLuint depth, GLuint color, GLbitfield clear=GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)
 
void resetupFramebuffer (GLuint depth, GLuint color, GLbitfield clear=GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)
 
void resetFramebuffer ()
 
void leaveEvent (QEvent *e)
 
void enterEvent (QEvent *e)
 
void keyReleaseEvent (QKeyEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
void mousePressEvent (QMouseEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 
void mouseDoubleClickEvent (QMouseEvent *e)
 

Detailed Description

Definition at line 42 of file MorphoViewer.hpp.

Member Enumeration Documentation

◆ FrameIdentity

Enumerator
FI_BACKGROUND 
FI_FULL_IMG1 
FI_FULL_IMG2 
FI_CUR_PEEL 
FI_VOLUME1 
FI_VOLUME2 
FI_OCCLUSION 
NB_FRAMES 

Definition at line 46 of file MorphoViewer.hpp.

◆ GuiAction

Enumerator
STACK_VOXEL_EDIT 
STACK_PICK_LABEL 
STACK_DEL_LABEL 
STACK_DEL_PICKED 
STACK_FILL_LABEL 
STACK_PICK_FILL_LABEL 
MESH_SEL_POINTS 
MESH_SEL_LASSO 
MESH_ADD_SEED 
MESH_CURR_SEED 
MESH_PICK_LABEL 
MESH_SEL_LABEL 
MESH_SEL_CONN 
MESH_SEL_TRIS 
MESH_GRAB_SEED 
MESH_FILL_LABEL 
MESH_PICK_FILL_LABEL 
MESH_PICK_FILL_PARENT 

Definition at line 82 of file MorphoViewer.hpp.

Constructor & Destructor Documentation

◆ MorphoViewer() [1/3]

MorphoViewer::MorphoViewer ( QWidget *  parent)

◆ MorphoViewer() [2/3]

MorphoViewer::MorphoViewer ( QGLContext *  context,
QWidget *  parent 
)

◆ MorphoViewer() [3/3]

MorphoViewer::MorphoViewer ( const QGLFormat &  format,
QWidget *  parent 
)

◆ ~MorphoViewer()

virtual MorphoViewer::~MorphoViewer ( )
virtual

Member Function Documentation

◆ alternatePeels()

void MorphoViewer::alternatePeels ( int &  curPeelId,
int &  prevPeelId,
int  fullImgId 
)
protected

◆ changeSceneRadius

void MorphoViewer::changeSceneRadius ( float  )
signal

◆ checkVoxelCursor()

void MorphoViewer::checkVoxelCursor ( bool  altPressed)

◆ Clip1EnableSlot

void MorphoViewer::Clip1EnableSlot ( bool  _val)
inlineslot

Definition at line 250 of file MorphoViewer.hpp.

◆ Clip1GridSlot

void MorphoViewer::Clip1GridSlot ( bool  _val)
inlineslot

Definition at line 251 of file MorphoViewer.hpp.

◆ Clip1WidthSlot

void MorphoViewer::Clip1WidthSlot ( int  _val)
inlineslot

Definition at line 252 of file MorphoViewer.hpp.

◆ Clip2EnableSlot

void MorphoViewer::Clip2EnableSlot ( bool  _val)
inlineslot

Definition at line 253 of file MorphoViewer.hpp.

◆ Clip2GridSlot

void MorphoViewer::Clip2GridSlot ( bool  _val)
inlineslot

Definition at line 254 of file MorphoViewer.hpp.

◆ Clip2WidthSlot

void MorphoViewer::Clip2WidthSlot ( int  _val)
inlineslot

Definition at line 255 of file MorphoViewer.hpp.

◆ Clip3EnableSlot

void MorphoViewer::Clip3EnableSlot ( bool  _val)
inlineslot

Definition at line 256 of file MorphoViewer.hpp.

◆ Clip3GridSlot

void MorphoViewer::Clip3GridSlot ( bool  _val)
inlineslot

Definition at line 257 of file MorphoViewer.hpp.

◆ Clip3WidthSlot

void MorphoViewer::Clip3WidthSlot ( int  _val)
inlineslot

Definition at line 258 of file MorphoViewer.hpp.

◆ combinePeels()

void MorphoViewer::combinePeels ( int &  fullImgId,
int  curPeelId,
int  volume1,
int  volume2 
)
protected

◆ deleteSelection

void MorphoViewer::deleteSelection ( )
signal

◆ domElement()

virtual QDomElement MorphoViewer::domElement ( const QString &  name,
QDomDocument &  document 
) const
virtual

◆ draw() [1/2]

void MorphoViewer::draw ( )
protected

◆ draw() [2/2]

void MorphoViewer::draw ( QPaintDevice *  device)
protected

◆ DrawCellMapSlot

void MorphoViewer::DrawCellMapSlot ( bool  val)
inlineslot

Definition at line 264 of file MorphoViewer.hpp.

◆ drawColorBar()

void MorphoViewer::drawColorBar ( )

◆ drawColorTexture()

void MorphoViewer::drawColorTexture ( int  i,
bool  draw_depth = false 
)
protected

◆ drawScaleBar()

void MorphoViewer::drawScaleBar ( )

◆ drawSelectLasso()

void MorphoViewer::drawSelectLasso ( )

◆ drawSelectRect()

void MorphoViewer::drawSelectRect ( )

◆ drawVoxelCursor()

void MorphoViewer::drawVoxelCursor ( )

◆ enterEvent()

void MorphoViewer::enterEvent ( QEvent *  e)
protected

◆ fastDraw()

void MorphoViewer::fastDraw ( )
protected

◆ FlySpeedSlot

void MorphoViewer::FlySpeedSlot ( int  val)
inlineslot

Definition at line 260 of file MorphoViewer.hpp.

◆ getSceneRadius()

float MorphoViewer::getSceneRadius ( ) const
inline

Definition at line 126 of file MorphoViewer.hpp.

◆ init()

virtual void MorphoViewer::init ( )
protectedvirtual

◆ initFormat()

static void MorphoViewer::initFormat ( )
static

◆ initFromDOMElement

virtual void MorphoViewer::initFromDOMElement ( const QDomElement &  element)
virtualslot

◆ keyPressEvent()

void MorphoViewer::keyPressEvent ( QKeyEvent *  e)
protected

◆ keyReleaseEvent()

void MorphoViewer::keyReleaseEvent ( QKeyEvent *  e)
protected

◆ LabelColorSlot

void MorphoViewer::LabelColorSlot ( )
slot

◆ leaveEvent()

void MorphoViewer::leaveEvent ( QEvent *  e)
protected

◆ loadFile

void MorphoViewer::loadFile ( const QString &  pth,
bool  stack2,
bool  load_work 
)
slot

◆ mainWindow()

MorphoGraphX* MorphoViewer::mainWindow ( )

◆ modified

void MorphoViewer::modified ( )
signal

◆ mouseDoubleClickEvent()

void MorphoViewer::mouseDoubleClickEvent ( QMouseEvent *  e)
protected

◆ mouseMoveEvent()

void MorphoViewer::mouseMoveEvent ( QMouseEvent *  e)
protected

◆ mousePressEvent()

void MorphoViewer::mousePressEvent ( QMouseEvent *  e)
protected

◆ mouseReleaseEvent()

void MorphoViewer::mouseReleaseEvent ( QMouseEvent *  e)
protected

◆ openScreenshotFormatDialog

bool MorphoViewer::openScreenshotFormatDialog ( )
inlineslot

Definition at line 304 of file MorphoViewer.hpp.

◆ pointUnderPixel()

mgx::Point3f MorphoViewer::pointUnderPixel ( const QPoint &  pos,
bool &  found 
)

◆ postDraw()

virtual void MorphoViewer::postDraw ( )
protectedvirtual

◆ preDraw()

void MorphoViewer::preDraw ( )
protected

◆ processRunning() [1/2]

bool MorphoViewer::processRunning ( )
inline

Definition at line 128 of file MorphoViewer.hpp.

◆ processRunning() [2/2]

void MorphoViewer::processRunning ( bool  state)
inline

Definition at line 127 of file MorphoViewer.hpp.

◆ readParms()

void MorphoViewer::readParms ( mgx::Parms parms,
QString  section 
)

◆ recordingMovie

void MorphoViewer::recordingMovie ( bool  )
signal

◆ recordMovie

void MorphoViewer::recordMovie ( bool  on)
slot

◆ ReloadShaders

void MorphoViewer::ReloadShaders ( )
slot

◆ resetFramebuffer()

void MorphoViewer::resetFramebuffer ( )
protected

◆ resetupFramebuffer()

void MorphoViewer::resetupFramebuffer ( GLuint  depth,
GLuint  color,
GLbitfield  clear = GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT 
)
protected

◆ ResetViewSlot

void MorphoViewer::ResetViewSlot ( )
slot

◆ resizeGL()

void MorphoViewer::resizeGL ( int  width,
int  height 
)
protected

◆ saveImageSnapshot [1/2]

bool MorphoViewer::saveImageSnapshot ( const QString &  fileName,
QSize  finalSize,
double  oversampling,
bool  expand,
bool  has_gui,
QString *  error 
)
slot

◆ saveImageSnapshot [2/2]

virtual bool MorphoViewer::saveImageSnapshot ( const QString &  fileName,
QSize  finalSize,
double  oversampling = 1.0,
bool  expand = false,
bool  has_gui = false 
)
virtualslot

◆ saveScreenshot [1/2]

void MorphoViewer::saveScreenshot ( bool  automatic = false,
bool  overwrite = false 
)
inlineslot

Definition at line 280 of file MorphoViewer.hpp.

◆ saveScreenshot [2/2]

void MorphoViewer::saveScreenshot ( const QString &  fileName,
bool  overwrite = false 
)
inlineslot

Definition at line 284 of file MorphoViewer.hpp.

◆ ScreenSamplingSlot

void MorphoViewer::ScreenSamplingSlot ( int  val)
slot

◆ selectLabelChanged

void MorphoViewer::selectLabelChanged ( int  )
signal

◆ selectMeshLabel

void MorphoViewer::selectMeshLabel ( int  label,
int  repeat,
bool  replace = true 
)
slot

◆ setLabel

void MorphoViewer::setLabel ( int  label)
slot

◆ setLabelColor

void MorphoViewer::setLabelColor ( QIcon &  )
signal

◆ setLighting()

void MorphoViewer::setLighting ( mgx::ImgData stack)

◆ setSceneBoundingBox()

void MorphoViewer::setSceneBoundingBox ( const mgx::Point3f bbox)

◆ setScreenshotCounter

void MorphoViewer::setScreenshotCounter ( int  counter)
inlineslot

Definition at line 296 of file MorphoViewer.hpp.

◆ setScreenshotFileName

void MorphoViewer::setScreenshotFileName ( const QString &  name)
inlineslot

Definition at line 288 of file MorphoViewer.hpp.

◆ setScreenshotFormat

void MorphoViewer::setScreenshotFormat ( const QString &  format)
inlineslot

Definition at line 292 of file MorphoViewer.hpp.

◆ setScreenshotQuality

void MorphoViewer::setScreenshotQuality ( int  quality)
inlineslot

Definition at line 300 of file MorphoViewer.hpp.

◆ setupCopyFB()

void MorphoViewer::setupCopyFB ( GLuint  depth,
GLint  color 
)
protected

◆ setupFramebuffer()

void MorphoViewer::setupFramebuffer ( GLuint  depth,
GLuint  color,
GLbitfield  clear = GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT 
)
protected

◆ setZoomFactor()

void MorphoViewer::setZoomFactor ( float  f)

◆ showEntireScene

void MorphoViewer::showEntireScene ( )
inlineslot

Definition at line 319 of file MorphoViewer.hpp.

◆ showEvent()

void MorphoViewer::showEvent ( QShowEvent *  event)
protected

◆ SlicesSlot

void MorphoViewer::SlicesSlot ( int  val)
inlineslot

Definition at line 269 of file MorphoViewer.hpp.

◆ startScreenCoordinatesSystem()

void MorphoViewer::startScreenCoordinatesSystem ( bool  upward = false) const

◆ stepDrawFinished

void MorphoViewer::stepDrawFinished ( bool  )
signal

◆ updateAll()

void MorphoViewer::updateAll ( )

◆ updateFBOTex()

void MorphoViewer::updateFBOTex ( int  width,
int  height,
bool  fast_draw = false 
)
protected

◆ UpdateLabels

void MorphoViewer::UpdateLabels ( )
slot

◆ UpdateSlot

void MorphoViewer::UpdateSlot ( )
inlineslot

Definition at line 243 of file MorphoViewer.hpp.

◆ ViewerUpdateSlot

void MorphoViewer::ViewerUpdateSlot ( )
inlineslot

Definition at line 311 of file MorphoViewer.hpp.

◆ writeParms()

void MorphoViewer::writeParms ( QTextStream &  pout,
QString  section 
)

◆ ZoomFactor()

float MorphoViewer::ZoomFactor ( ) const

Member Data Documentation

◆ _camera

MGXCamera* MorphoViewer::_camera

Definition at line 120 of file MorphoViewer.hpp.

◆ altPressed

bool MorphoViewer::altPressed

Definition at line 77 of file MorphoViewer.hpp.

◆ baseFboId

GLuint MorphoViewer::baseFboId

Definition at line 67 of file MorphoViewer.hpp.

◆ c1

mgx::Clip* MorphoViewer::c1

Definition at line 94 of file MorphoViewer.hpp.

◆ c2

mgx::Clip * MorphoViewer::c2

Definition at line 94 of file MorphoViewer.hpp.

◆ c3

mgx::Clip * MorphoViewer::c3

Definition at line 94 of file MorphoViewer.hpp.

◆ CameraFrame

mgx::Matrix4d MorphoViewer::CameraFrame

Definition at line 119 of file MorphoViewer.hpp.

◆ clip1

mgx::ClipRegion MorphoViewer::clip1

Definition at line 93 of file MorphoViewer.hpp.

◆ clip2

mgx::ClipRegion MorphoViewer::clip2

Definition at line 93 of file MorphoViewer.hpp.

◆ clip3

mgx::ClipRegion MorphoViewer::clip3

Definition at line 93 of file MorphoViewer.hpp.

◆ colormap2Shader

mgx::Shader MorphoViewer::colormap2Shader

Definition at line 60 of file MorphoViewer.hpp.

◆ colorSurfShader

mgx::Shader MorphoViewer::colorSurfShader

Definition at line 62 of file MorphoViewer.hpp.

◆ colorTexId

GLuint MorphoViewer::colorTexId[NB_FRAMES]

Definition at line 69 of file MorphoViewer.hpp.

◆ combineShader

mgx::Shader MorphoViewer::combineShader

Definition at line 61 of file MorphoViewer.hpp.

◆ controlPressed

bool MorphoViewer::controlPressed

Definition at line 78 of file MorphoViewer.hpp.

◆ cutSurf

mgx::CutSurf* MorphoViewer::cutSurf

Definition at line 100 of file MorphoViewer.hpp.

◆ depthBuffer

GLuint MorphoViewer::depthBuffer

Definition at line 70 of file MorphoViewer.hpp.

◆ depthTexId

GLuint MorphoViewer::depthTexId[NB_FRAMES]

Definition at line 68 of file MorphoViewer.hpp.

◆ depthTexture

std::vector<GLfloat> MorphoViewer::depthTexture

Definition at line 71 of file MorphoViewer.hpp.

◆ DrawCellMap

bool MorphoViewer::DrawCellMap

Definition at line 50 of file MorphoViewer.hpp.

◆ DrawClipBox

bool MorphoViewer::DrawClipBox

Definition at line 51 of file MorphoViewer.hpp.

◆ drawHeight

int MorphoViewer::drawHeight

Definition at line 72 of file MorphoViewer.hpp.

◆ drawWidth

int MorphoViewer::drawWidth

Definition at line 72 of file MorphoViewer.hpp.

◆ fast_draw

bool MorphoViewer::fast_draw

Definition at line 105 of file MorphoViewer.hpp.

◆ fboCopyId

GLuint MorphoViewer::fboCopyId

Definition at line 67 of file MorphoViewer.hpp.

◆ fboId

GLuint MorphoViewer::fboId

Definition at line 67 of file MorphoViewer.hpp.

◆ finalCombineShader

mgx::Shader MorphoViewer::finalCombineShader

Definition at line 61 of file MorphoViewer.hpp.

◆ FlySpeed

float MorphoViewer::FlySpeed

Definition at line 102 of file MorphoViewer.hpp.

◆ GlobalBrightness

float MorphoViewer::GlobalBrightness

Definition at line 113 of file MorphoViewer.hpp.

◆ GlobalContrast

float MorphoViewer::GlobalContrast

Definition at line 114 of file MorphoViewer.hpp.

◆ guiAction

GuiAction MorphoViewer::guiAction

Definition at line 85 of file MorphoViewer.hpp.

◆ guiActionOn

bool MorphoViewer::guiActionOn

Definition at line 87 of file MorphoViewer.hpp.

◆ index2Shader

mgx::Shader MorphoViewer::index2Shader

Definition at line 60 of file MorphoViewer.hpp.

◆ indexSurfShader

mgx::Shader MorphoViewer::indexSurfShader

Definition at line 62 of file MorphoViewer.hpp.

◆ leftButton

bool MorphoViewer::leftButton

Definition at line 79 of file MorphoViewer.hpp.

◆ MaxNbPeels

int MorphoViewer::MaxNbPeels

Definition at line 110 of file MorphoViewer.hpp.

◆ meshPickFill

bool MorphoViewer::meshPickFill

Definition at line 88 of file MorphoViewer.hpp.

◆ mousePos

QPoint MorphoViewer::mousePos

Definition at line 58 of file MorphoViewer.hpp.

◆ occlusionShader

mgx::Shader MorphoViewer::occlusionShader

Definition at line 65 of file MorphoViewer.hpp.

◆ oldPos

QPoint MorphoViewer::oldPos

Definition at line 53 of file MorphoViewer.hpp.

◆ oldVPos

mgx::Point3f MorphoViewer::oldVPos

Definition at line 52 of file MorphoViewer.hpp.

◆ pickedLabels

QList<float> MorphoViewer::pickedLabels

Definition at line 90 of file MorphoViewer.hpp.

◆ pixelRadius

float MorphoViewer::pixelRadius

Definition at line 57 of file MorphoViewer.hpp.

◆ postProcessShader

mgx::Shader MorphoViewer::postProcessShader

Definition at line 64 of file MorphoViewer.hpp.

◆ prevHeight

int MorphoViewer::prevHeight

Definition at line 73 of file MorphoViewer.hpp.

◆ prevWidth

int MorphoViewer::prevWidth

Definition at line 73 of file MorphoViewer.hpp.

◆ quitting

bool MorphoViewer::quitting

Definition at line 49 of file MorphoViewer.hpp.

◆ raycastingShader1

mgx::Shader MorphoViewer::raycastingShader1

Definition at line 59 of file MorphoViewer.hpp.

◆ raycastingShader2

mgx::Shader MorphoViewer::raycastingShader2

Definition at line 59 of file MorphoViewer.hpp.

◆ renderDepthShader

mgx::Shader MorphoViewer::renderDepthShader

Definition at line 61 of file MorphoViewer.hpp.

◆ rightButton

bool MorphoViewer::rightButton

Definition at line 80 of file MorphoViewer.hpp.

◆ sampling

float MorphoViewer::sampling

Definition at line 104 of file MorphoViewer.hpp.

◆ selectedLabel

int MorphoViewer::selectedLabel

Definition at line 103 of file MorphoViewer.hpp.

◆ selectLasso

LassoSelect MorphoViewer::selectLasso

Definition at line 55 of file MorphoViewer.hpp.

◆ selectRect

QRect MorphoViewer::selectRect

Definition at line 54 of file MorphoViewer.hpp.

◆ shiftPressed

bool MorphoViewer::shiftPressed

Definition at line 76 of file MorphoViewer.hpp.

◆ Shininess

float MorphoViewer::Shininess

Definition at line 112 of file MorphoViewer.hpp.

◆ show_slice

int MorphoViewer::show_slice

Definition at line 107 of file MorphoViewer.hpp.

◆ slice_type

int MorphoViewer::slice_type

Definition at line 108 of file MorphoViewer.hpp.

◆ Specular

float MorphoViewer::Specular

Definition at line 111 of file MorphoViewer.hpp.

◆ Spinning

float MorphoViewer::Spinning

Definition at line 116 of file MorphoViewer.hpp.

◆ stack1

QPointer<mgx::ImgData> MorphoViewer::stack1

Definition at line 97 of file MorphoViewer.hpp.

◆ stack2

QPointer<mgx::ImgData> MorphoViewer::stack2

Definition at line 97 of file MorphoViewer.hpp.

◆ stackPickFill

bool MorphoViewer::stackPickFill

Definition at line 88 of file MorphoViewer.hpp.

◆ texHeight

int MorphoViewer::texHeight

Definition at line 106 of file MorphoViewer.hpp.

◆ textureSurfShader

mgx::Shader MorphoViewer::textureSurfShader

Definition at line 62 of file MorphoViewer.hpp.

◆ texWidth

int MorphoViewer::texWidth

Definition at line 106 of file MorphoViewer.hpp.

◆ UnsharpStrength

float MorphoViewer::UnsharpStrength

Definition at line 115 of file MorphoViewer.hpp.

◆ volumeSurfShader1

mgx::Shader MorphoViewer::volumeSurfShader1

Definition at line 63 of file MorphoViewer.hpp.

◆ volumeSurfShader2

mgx::Shader MorphoViewer::volumeSurfShader2

Definition at line 63 of file MorphoViewer.hpp.

◆ voxelEditCursor

bool MorphoViewer::voxelEditCursor

Definition at line 56 of file MorphoViewer.hpp.


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