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
QGoTabImageView2D Class Reference

Element of the QTabWidget to be used to visualized 2D images. More...

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

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

Public Types

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

Public Slots

void ChangeBackgroundColor ()
 
void ChangeLookupTable ()
 
virtual void DefaultInteractorBehavior (bool)
 Mouse interaction style set as default. More...
 
virtual void PanInteractorBehavior (bool)
 Mouse interaction style allows user to pan volume with all buttons. More...
 
void ShowScalarBar (const bool &)
 
void TakeSnapshot ()
 
virtual void ZoomInteractorBehavior (bool)
 Mouse interaction style allows user to zoom in/out volume with all buttons. More...
 
- Public Slots inherited from QGoTabImageViewNDBase
void ShowAllChannels (bool iChecked)
 
void ShowOneChannel (int iChannel)
 
- Public Slots inherited from QGoTabImageViewElementBase
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

GoFigure::TabDimensionType GetTabDimensionType () const
 Get the dimension type of the underlying data set. More...
 
 QGoTabImageView2D (QWidget *parent=0)
 
virtual void ReadSettings ()
 Read Settings. More...
 
void retranslateUi (QWidget *parent)
 
void setupUi (QWidget *parent)
 
virtual void Update ()
 Update the rendering of the tab. More...
 
virtual void WriteSettings ()
 Write Settings. More...
 
virtual ~QGoTabImageView2D ()
 
- Public Member Functions inherited from QGoTabImageViewNDBase
vtkImageData * GetImage ()
 
 QGoTabImageViewNDBase (QWidget *parent=0)
 Constructor. More...
 
virtual void SetImage (vtkImageData *iImage)
 Set the image to be displaid. More...
 
virtual ~QGoTabImageViewNDBase ()
 Destructor. More...
 
- Public Member Functions inherited from QGoTabImageViewElementBase
 QGoTabImageViewElementBase (QWidget *parent=0)
 Constructor. More...
 
virtual void SetColor (const bool &iColor)
 
virtual void ValidateContour (const int &iId)
 Validate one contour traced by using the ContourWidget. 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 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 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

std::vector< vtkActor * > AddContour (vtkPolyData *dataset, vtkProperty *property=NULL)
 
void CreateModeToolBar (QMenu *iMenu, QToolBar *iToolBar)
 
virtual void DisplayActorInViewer (const int &iId, vtkActor *iActor)
 
void GetBackgroundColorFromImageViewer ()
 
int * GetImageCoordinatesFromWorldCoordinates (double pos[3])
 
virtual void RemoveActorFromViewer (const int &iId, vtkActor *iActor)
 
void SetBackgroundColorToImageViewer ()
 
void SetImageToImageViewer (vtkImageData *image)
 
virtual void SetSlice (int iDir, int *iIdx)
 

Protected Attributes

QAction * m_BackgroundColorAction
 
QGoImageView2Dm_ImageView
 
QAction * m_TakeSnapshotAction
 
- Protected Attributes inherited from QGoTabImageViewNDBase
vtkSmartPointer< vtkImageData > m_Image
 
- Protected Attributes inherited from QGoTabImageViewElementBase
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 (QGoTabImageView2D)
 

Detailed Description

Element of the QTabWidget to be used to visualized 2D images.

Examples:
GUI/lib/qgotabimageview2d.cxx.

Definition at line 53 of file QGoTabImageView2D.h.

Member Typedef Documentation

Definition at line 60 of file QGoTabImageView2D.h.

Constructor & Destructor Documentation

QGoTabImageView2D::QGoTabImageView2D ( QWidget *  parent = 0)
explicit

Definition at line 62 of file QGoTabImageView2D.cxx.

QGoTabImageView2D::~QGoTabImageView2D ( )
virtual

Definition at line 144 of file QGoTabImageView2D.cxx.

Member Function Documentation

std::vector< vtkActor * > QGoTabImageView2D::AddContour ( vtkPolyData *  dataset,
vtkProperty *  property = NULL 
)
protectedvirtual

Implements QGoTabImageViewElementBase.

Definition at line 291 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::ChangeBackgroundColor ( )
slot

Definition at line 328 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::ChangeLookupTable ( )
slot

Definition at line 221 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::CreateModeToolBar ( QMenu *  iMenu,
QToolBar *  iToolBar 
)
protectedvirtual

Reimplemented from QGoTabElementBase.

Definition at line 351 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::DefaultInteractorBehavior ( bool  iEnable)
virtualslot

Mouse interaction style set as default.

Definition at line 372 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::DisplayActorInViewer ( const int &  iId,
vtkActor *  iActor 
)
protectedvirtual

Implements QGoTabImageViewElementBase.

Definition at line 309 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::GetBackgroundColorFromImageViewer ( )
protectedvirtual

Implements QGoTabImageViewElementBase.

Definition at line 209 of file QGoTabImageView2D.cxx.

int * QGoTabImageView2D::GetImageCoordinatesFromWorldCoordinates ( double  pos[3])
protectedvirtual

Implements QGoTabImageViewElementBase.

Definition at line 281 of file QGoTabImageView2D.cxx.

GoFigure::TabDimensionType QGoTabImageView2D::GetTabDimensionType ( ) const
virtual

Get the dimension type of the underlying data set.

Implements QGoTabElementBase.

Definition at line 152 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::PanInteractorBehavior ( bool  iEnable)
virtualslot

Mouse interaction style allows user to pan volume with all buttons.

Definition at line 392 of file QGoTabImageView2D.cxx.

QGoTabImageView2D::Q_DISABLE_COPY ( QGoTabImageView2D  )
private
void QGoTabImageView2D::ReadSettings ( )
virtual

Read Settings.

Read settings:

  • m_BackgroundColor

Reimplemented from QGoTabImageViewElementBase.

Definition at line 253 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::RemoveActorFromViewer ( const int &  iId,
vtkActor *  iActor 
)
protectedvirtual

Implements QGoTabImageViewElementBase.

Definition at line 300 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::retranslateUi ( QWidget *  parent)

Definition at line 181 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::SetBackgroundColorToImageViewer ( )
protectedvirtual

Implements QGoTabImageViewElementBase.

Definition at line 200 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::SetImageToImageViewer ( vtkImageData *  image)
protectedvirtual

Implements QGoTabImageViewNDBase.

Definition at line 262 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::SetSlice ( int  iDir,
int *  iIdx 
)
protectedvirtual

Implements QGoTabImageViewElementBase.

Definition at line 318 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::setupUi ( QWidget *  parent)

Definition at line 161 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::ShowScalarBar ( const bool &  iShow)
slot

Definition at line 235 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::TakeSnapshot ( )
slot

Definition at line 365 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::Update ( )
virtual

Update the rendering of the tab.

Implements QGoTabImageViewElementBase.

Examples:
GUI/lib/qgotabimageview2d.cxx.

Definition at line 191 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::WriteSettings ( )
virtual

Write Settings.

Write settings:

  • m_BackgroundColor

Reimplemented from QGoTabImageViewElementBase.

Definition at line 244 of file QGoTabImageView2D.cxx.

void QGoTabImageView2D::ZoomInteractorBehavior ( bool  iEnable)
virtualslot

Mouse interaction style allows user to zoom in/out volume with all buttons.

Definition at line 382 of file QGoTabImageView2D.cxx.

Member Data Documentation

QAction* QGoTabImageView2D::m_BackgroundColorAction
protected

Definition at line 114 of file QGoTabImageView2D.h.

QGoImageView2D* QGoTabImageView2D::m_ImageView
protected

Definition at line 100 of file QGoTabImageView2D.h.

QAction* QGoTabImageView2D::m_TakeSnapshotAction
protected

Definition at line 101 of file QGoTabImageView2D.h.


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