GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
QGoTabImageViewElementBase Class Referenceabstract

#include <Code/GUI/lib/QGoTabImageViewElementBase.h>

Inheritance diagram for QGoTabImageViewElementBase:
Inheritance graph
[legend]
Collaboration diagram for QGoTabImageViewElementBase:
Collaboration graph
[legend]

Public Types

typedef
QGoTabElementBase::QGoDockWidgetStatusPair 
QGoDockWidgetStatusPair
 
- Public Types inherited from QGoTabElementBase
typedef std::pair
< QGoDockWidgetStatus
*, QDockWidget * > 
QGoDockWidgetStatusPair
 

Public Slots

void ActivateManualSegmentationEditor (const bool &iActivate)
 Activate the manual segmentation editor (ContourWidget). More...
 
void ChangeBackgroundColor ()
 Change the background color. More...
 
void ChangeContourRepresentationProperty ()
 Change contour representation property (color, line width, etc.) More...
 
void ReEditContour (const unsigned int &iId)
 Re-edit the iId^th contour. More...
 
void ReinitializeContour ()
 Reinitialize contour in the ContourWidget (delete contour, and restart with no contours. More...
 
virtual void ShowAllChannels (bool iChecked)=0
 Show all channels if iChecked is true. More...
 
virtual void ShowOneChannel (int iChannel)=0
 Show only one channel (iChannel). More...
 
virtual void TakeSnapshot ()=0
 
virtual void ValidateContour ()
 Validate contour traced in the ContourWidget. More...
 

Public Member Functions

 QGoTabImageViewElementBase (QWidget *parent=0)
 Constructor. More...
 
virtual void ReadSettings ()
 Read Settings. More...
 
virtual void SetColor (const bool &iColor)
 
virtual void Update ()=0
 Update the rendering of the tab. More...
 
virtual void ValidateContour (const int &iId)
 Validate one contour traced by using the ContourWidget. More...
 
virtual void WriteSettings ()
 Write Settings. More...
 
virtual ~QGoTabImageViewElementBase ()
 Destructor. More...
 
- Public Member Functions inherited from QGoTabElementBase
virtual std::vector< QAction * > BookmarkActions ()
 Get all actions belonging to Bookmark Menu and Toolbar. More...
 
virtual void CreateModeToolBar (QMenu *iMenu, QToolBar *iToolBar)
 
virtual void CreateViewToolBar (QMenu *iMenu, QToolBar *iToolBar)
 
virtual void DefaultInteractorBehavior (bool)
 Mouse interaction style set as default. More...
 
virtual std::list
< QGoDockWidgetStatusPair > & 
DockWidget ()
 Get all actions belonging to Mode Menu and Toolbar. More...
 
virtual std::list< QAction * > GetPluginActions ()
 
virtual GoFigure::TabDimensionType GetTabDimensionType () const =0
 Get the dimension type of the underlying data set. More...
 
virtual std::list
< QGoToolBarStatus * > 
GetToolBarsStatus ()
 
 QGoTabElementBase (QWidget *parent=0)
 Constructor. More...
 
virtual std::vector< QAction * > SegmentationActions ()
 Get all actions belonging to Segmentation Menu and Toolbar. More...
 
virtual void SetPluginActions (std::list< QAction * > iList)
 
void SetStatusBarPointer (QStatusBar *iStatusbar)
 
virtual std::vector< QAction * > ToolsActions ()
 Get all actions belonging to Tools Menu and Toolbar. More...
 
virtual void TranslateInteractorBehavior (bool)
 Mouse interaction style allows user to Translate volume with all buttons. More...
 
virtual std::vector< QAction * > ViewActions ()
 Get all actions belonging to View Menu and Toolbar. More...
 
virtual std::vector< QAction * > ViewNoToolBarActions ()
 Get all actions belonging to View Menu only. More...
 
virtual void ZoomInteractorBehavior (bool)
 Mouse interaction style allows user to zoom in/out volume with all buttons. More...
 
virtual ~QGoTabElementBase ()
 Destructor. More...
 

Protected Member Functions

virtual std::vector< vtkActor * > AddContour (vtkPolyData *dataset, vtkProperty *property=NULL)=0
 
virtual void CreateManualSegmentationdockWidget ()
 
virtual void CreateToolsActions ()
 
virtual void DisplayActorInViewer (const int &iId, vtkActor *iActor)=0
 
virtual void GetBackgroundColorFromImageViewer ()=0
 
virtual int * GetImageCoordinatesFromWorldCoordinates (double pos[3])=0
 
virtual void RemoveActorFromViewer (const int &iId, vtkActor *iActor)=0
 
virtual void SetBackgroundColorToImageViewer ()=0
 
virtual void SetSlice (int iDir, int *iIdx)=0
 

Protected Attributes

QColor m_ActiveNodesColor
 
QColor m_BackgroundColor
 
bool m_Color
 
ContourContainerm_ContourContainer
 
unsigned int m_ContourId
 
std::vector< vtkSmartPointer
< vtkOrientedGlyphContourRepresentation > > 
m_ContourRepresentation
 
std::vector< vtkSmartPointer
< vtkContourWidget > > 
m_ContourWidget
 
QHBoxLayout * m_LayOut
 
QColor m_LinesColor
 
double m_LinesWidth
 
QGoContourManualSegmentationWidgetm_ManualSegmentationWidget
 
MeshContainerm_MeshContainer
 
QGoNavigationDockWidgetm_NavigationDockWidget
 
QColor m_NodesColor
 
bool m_ReEditContourMode
 
QAction * m_TakeSnapshotAction
 
- Protected Attributes inherited from QGoTabElementBase
std::vector< QAction * > m_BookmarkActions
 
std::list
< QGoDockWidgetStatusPair
m_DockWidgetList
 
QGoToolBarStatusm_ModeToolBar
 
std::list< QAction * > m_PluginActionList
 
std::vector< QAction * > m_SegmentationActions
 
QStatusBar * m_StatusBar
 
std::list< QGoToolBarStatus * > m_ToolBarList
 
std::vector< QAction * > m_ToolsActions
 
std::vector< QAction * > m_ViewActions
 
QGoToolBarStatusm_ViewActionsMenuToolBar
 
std::vector< QAction * > m_ViewNoToolBarActions
 

Private Member Functions

 Q_DISABLE_COPY (QGoTabImageViewElementBase)
 

Detailed Description

Examples:
GUI/lib/qgotabimageviewelementbase.cxx.

Definition at line 63 of file QGoTabImageViewElementBase.h.

Member Typedef Documentation

Definition at line 72 of file QGoTabImageViewElementBase.h.

Constructor & Destructor Documentation

QGoTabImageViewElementBase::QGoTabImageViewElementBase ( QWidget *  iParent = 0)
explicit

Constructor.

Default Constructor.

Parameters
iParent
Todo:
fix this
Todo:
fix it is not a dockwidget anymore
Examples:
GUI/lib/qgotabimageviewelementbase.cxx.

Definition at line 59 of file QGoTabImageViewElementBase.cxx.

QGoTabImageViewElementBase::~QGoTabImageViewElementBase ( )
virtual

Destructor.

Definition at line 89 of file QGoTabImageViewElementBase.cxx.

Member Function Documentation

void QGoTabImageViewElementBase::ActivateManualSegmentationEditor ( const bool &  iActivate)
slot

Activate the manual segmentation editor (ContourWidget).

Parameters
[in]iActivate
Examples:
GUI/lib/qgotabimageview2d.cxx.

Definition at line 236 of file QGoTabImageViewElementBase.cxx.

virtual std::vector< vtkActor * > QGoTabImageViewElementBase::AddContour ( vtkPolyData *  dataset,
vtkProperty *  property = NULL 
)
protectedpure virtual
void QGoTabImageViewElementBase::ChangeBackgroundColor ( )
slot

Change the background color.

Change background color.

Definition at line 212 of file QGoTabImageViewElementBase.cxx.

void QGoTabImageViewElementBase::ChangeContourRepresentationProperty ( )
slot

Change contour representation property (color, line width, etc.)

Definition at line 123 of file QGoTabImageViewElementBase.cxx.

void QGoTabImageViewElementBase::CreateManualSegmentationdockWidget ( )
protectedvirtual

Definition at line 100 of file QGoTabImageViewElementBase.cxx.

void QGoTabImageViewElementBase::CreateToolsActions ( )
protectedvirtual

Definition at line 431 of file QGoTabImageViewElementBase.cxx.

virtual void QGoTabImageViewElementBase::DisplayActorInViewer ( const int &  iId,
vtkActor *  iActor 
)
protectedpure virtual
virtual void QGoTabImageViewElementBase::GetBackgroundColorFromImageViewer ( )
protectedpure virtual
virtual int* QGoTabImageViewElementBase::GetImageCoordinatesFromWorldCoordinates ( double  pos[3])
protectedpure virtual
QGoTabImageViewElementBase::Q_DISABLE_COPY ( QGoTabImageViewElementBase  )
private
void QGoTabImageViewElementBase::ReadSettings ( )
virtual

Read Settings.

Read settings:

  • m_BackgroundColor

Implements QGoTabElementBase.

Reimplemented in QGoTabImageView3D, and QGoTabImageView2D.

Examples:
GUI/lib/qgotabimageviewelementbase.cxx.

Definition at line 193 of file QGoTabImageViewElementBase.cxx.

void QGoTabImageViewElementBase::ReEditContour ( const unsigned int &  iId)
slot

Re-edit the iId^th contour.

Re-edit contour given by its id.

Parameters
iId
Todo:
remove actor from the visualization and update!

Definition at line 366 of file QGoTabImageViewElementBase.cxx.

void QGoTabImageViewElementBase::ReinitializeContour ( )
slot

Reinitialize contour in the ContourWidget (delete contour, and restart with no contours.

Todo:
to be fully compliant with more recent version of vtk, we should rather use m_ContourWidget[i]->Initialize()

Definition at line 417 of file QGoTabImageViewElementBase.cxx.

virtual void QGoTabImageViewElementBase::RemoveActorFromViewer ( const int &  iId,
vtkActor *  iActor 
)
protectedpure virtual
virtual void QGoTabImageViewElementBase::SetBackgroundColorToImageViewer ( )
protectedpure virtual
void QGoTabImageViewElementBase::SetColor ( const bool &  iColor)
virtual
Parameters
iColor

Definition at line 165 of file QGoTabImageViewElementBase.cxx.

virtual void QGoTabImageViewElementBase::SetSlice ( int  iDir,
int *  iIdx 
)
protectedpure virtual
virtual void QGoTabImageViewElementBase::ShowAllChannels ( bool  iChecked)
pure virtualslot

Show all channels if iChecked is true.

Examples:
GUI/lib/qgotabimageviewelementbase.cxx.
virtual void QGoTabImageViewElementBase::ShowOneChannel ( int  iChannel)
pure virtualslot

Show only one channel (iChannel).

Examples:
GUI/lib/qgotabimageviewelementbase.cxx.
virtual void QGoTabImageViewElementBase::TakeSnapshot ( )
pure virtualslot
virtual void QGoTabImageViewElementBase::Update ( )
pure virtual

Update the rendering of the tab.

Implemented in QGoTabImageView3D, and QGoTabImageView2D.

Examples:
GUI/lib/qgotabimageviewelementbase.cxx.
void QGoTabImageViewElementBase::ValidateContour ( const int &  iId)
virtual

Validate one contour traced by using the ContourWidget.

Parameters
[in]iId
Todo:
use m_ContourMeshContainer here!

Definition at line 261 of file QGoTabImageViewElementBase.cxx.

void QGoTabImageViewElementBase::ValidateContour ( )
virtualslot

Validate contour traced in the ContourWidget.

Definition at line 350 of file QGoTabImageViewElementBase.cxx.

void QGoTabImageViewElementBase::WriteSettings ( )
virtual

Write Settings.

Write settings:

  • m_BackgroundColor

Implements QGoTabElementBase.

Reimplemented in QGoTabImageView3D, and QGoTabImageView2D.

Examples:
GUI/lib/qgotabimageviewelementbase.cxx.

Definition at line 177 of file QGoTabImageViewElementBase.cxx.

Member Data Documentation

QColor QGoTabImageViewElementBase::m_ActiveNodesColor
protected

Definition at line 127 of file QGoTabImageViewElementBase.h.

QColor QGoTabImageViewElementBase::m_BackgroundColor
protected

Definition at line 120 of file QGoTabImageViewElementBase.h.

bool QGoTabImageViewElementBase::m_Color
protected

Definition at line 119 of file QGoTabImageViewElementBase.h.

ContourContainer* QGoTabImageViewElementBase::m_ContourContainer
protected

Definition at line 135 of file QGoTabImageViewElementBase.h.

unsigned int QGoTabImageViewElementBase::m_ContourId
protected

Definition at line 121 of file QGoTabImageViewElementBase.h.

std::vector< vtkSmartPointer< vtkOrientedGlyphContourRepresentation > > QGoTabImageViewElementBase::m_ContourRepresentation
protected

Definition at line 133 of file QGoTabImageViewElementBase.h.

std::vector< vtkSmartPointer< vtkContourWidget > > QGoTabImageViewElementBase::m_ContourWidget
protected

Definition at line 132 of file QGoTabImageViewElementBase.h.

QHBoxLayout* QGoTabImageViewElementBase::m_LayOut
protected

Definition at line 129 of file QGoTabImageViewElementBase.h.

QColor QGoTabImageViewElementBase::m_LinesColor
protected

Definition at line 125 of file QGoTabImageViewElementBase.h.

double QGoTabImageViewElementBase::m_LinesWidth
protected

Definition at line 124 of file QGoTabImageViewElementBase.h.

QGoContourManualSegmentationWidget* QGoTabImageViewElementBase::m_ManualSegmentationWidget
protected

Definition at line 139 of file QGoTabImageViewElementBase.h.

MeshContainer* QGoTabImageViewElementBase::m_MeshContainer
protected

Definition at line 136 of file QGoTabImageViewElementBase.h.

QGoNavigationDockWidget* QGoTabImageViewElementBase::m_NavigationDockWidget
protected

Definition at line 138 of file QGoTabImageViewElementBase.h.

QColor QGoTabImageViewElementBase::m_NodesColor
protected

Definition at line 126 of file QGoTabImageViewElementBase.h.

bool QGoTabImageViewElementBase::m_ReEditContourMode
protected

Definition at line 122 of file QGoTabImageViewElementBase.h.

QAction* QGoTabImageViewElementBase::m_TakeSnapshotAction
protected

Definition at line 130 of file QGoTabImageViewElementBase.h.


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