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

Abstract class for the visualization of 3D Image represented by one vtkImageData*. More...

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

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

Public Slots

void ClearAllSeeds ()
 Clear all the seeds positions after using it. More...
 
void ReinitializeContourWidget ()
 
void SetBackgroundColor (const double &r, const double &g, const double &b)
 Set background color for all views. More...
 
void SetBackgroundColor (double rgb[3])
 
void SetBackgroundColor (const QColor &iColor)
 
void ShowAnnotations ()
 Show annotations in the collection. More...
 
void UpdateContourRepresentationProperties (float linewidth, QColor linecolor, QColor nodecolor, QColor activenodecolor)
 
void UpdateRenderWindows ()
 Update only the visualization. More...
 

Public Member Functions

virtual void AddActor (const int &iId, vtkActor *iActor)
 
virtual std::vector< vtkActor * > AddContour (vtkPolyData *iDataset, vtkProperty *iProperty=NULL)
 Add contour with given property into the visualization. More...
 
virtual void ChangeCursorShape (QCursor iCursorShape)=0
 
void DefaultMode ()
 Use the default interactor style. More...
 
void EnableAngleWidget (bool iActive)
 
void EnableContourPickingMode ()
 Use the contour picking mode. More...
 
void EnableContourWidget (bool iActivate)
 
void EnableDistanceWidget (bool iEnable)
 
void EnableSeedWidget (bool iEnable)
 
void GetBackgroundColor (double &r, double &g, double &b)
 Returns used background color by viewers. More...
 
double * GetBackgroundColor ()
 
vtkPolyData * GetContourRepresentationAsPolydata (int iDir)
 
vtkPolyData * GetContourRepresentationNodePolydata (int iDir)
 
vtkImageData * GetImage ()
 Get the displaid image. More...
 
vtkImageActor * GetImageActor (const int &iId)
 Get the image actor. More...
 
int * GetImageCoordinatesFromWorldCoordinates (double pos[3])
 Get Image Coordinates from World Coordinates. More...
 
vtkViewImage2DGetImageViewer (const int &iId)
 
virtual QVTKInteractor * GetInteractor (const int &)=0
 Returns the interactor for one given view. More...
 
int GetNumberOfImageViewers ()
 
void GetSeeds (std::vector< vtkPoints * > &iPoints)
 
void InitializeAngleWidget ()
 Initializae the angle widget. More...
 
void InitializeContourWidget ()
 Initializae the angle widget. More...
 
void InitializeContourWidgetNodes (int iDir, vtkPolyData *iNodes)
 
void InitializeDistanceWidget ()
 Initializae the distance widget. More...
 
void InitializeSeedWidget ()
 Initializae the seed widget. More...
 
void PanMode ()
 Use the pan interactor style. More...
 
 QGoImageView (QWidget *parent=0)
 Default Constructor. More...
 
virtual void RemoveActor (const int &iId, vtkActor *iActor)
 
void ResetWindowLevel ()
 Reset collection Window level. More...
 
virtual void retranslateUi (QWidget *parent)=0
 
virtual void SetImage (vtkImageData *iImage)=0
 Set the image to displaid. More...
 
void SetInterpolate (const int &val)
 Interpolate the data for visualization. More...
 
void SetIntersectionLineWidth (const float &iWidth)
 
void SetLookupTable (vtkLookupTable *iLut)
 Set the lookup table in the collection. More...
 
virtual void setupUi (QWidget *parent)=0
 
void ShowScalarBar (const bool &)
 Show/hide the scalar bar in the collection. More...
 
void ShowSplinePlane ()
 Invert visibility of the Spline Plane. More...
 
void Update ()
 
void ZoomMode ()
 Use the zoom interactor style. More...
 
virtual ~QGoImageView ()
 Destructor. More...
 

Protected Attributes

QColor m_ActiveNodesColor
 
std::vector< vtkSmartPointer
< vtkAngleWidget > > 
m_AngleWidget
 
std::vector< vtkSmartPointer
< vtkOrientedGlyphContourRepresentation > > 
m_ContourRepresentation
 
std::vector< vtkSmartPointer
< vtkContourWidget > > 
m_ContourWidget
 
std::vector< vtkSmartPointer
< vtkDistanceWidget > > 
m_DistanceWidget
 
std::vector< vtkSmartPointer
< vtkConstrainedPointHandleRepresentation > > 
m_Handle
 
vtkImageData * m_Image
 
float m_IntersectionLineWidth
 
QColor m_LinesColor
 
float m_LinesWidth
 
QColor m_NodesColor
 
vtkViewImage2DCollectionm_Pool
 
std::vector< vtkSmartPointer
< vtkSeedRepresentation > > 
m_SeedRep
 
std::vector< vtkSmartPointer
< vtkSeedWidget > > 
m_SeedWidget
 
bool m_ShowAnnotations
 
bool m_ShowSplinePlane
 
unsigned int m_SnapshotId
 

Detailed Description

Abstract class for the visualization of 3D Image represented by one vtkImageData*.

Definition at line 75 of file QGoImageView.h.

Constructor & Destructor Documentation

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

Default Constructor.

Parameters
iParent

Definition at line 74 of file QGoImageView.cxx.

QGoImageView::~QGoImageView ( )
virtual

Destructor.

Definition at line 88 of file QGoImageView.cxx.

Member Function Documentation

void QGoImageView::AddActor ( const int &  iId,
vtkActor *  iActor 
)
virtual

Reimplemented in QGoImageView3D.

Definition at line 261 of file QGoImageView.cxx.

std::vector< vtkActor * > QGoImageView::AddContour ( vtkPolyData *  iDataset,
vtkProperty *  iProperty = NULL 
)
virtual

Add contour with given property into the visualization.

Parameters
[in]iDatasetcontour
[in]iProperty
Returns
vector of vtkActor rendered in each 2D viewer.

Reimplemented in QGoImageView3D.

Definition at line 222 of file QGoImageView.cxx.

virtual void QGoImageView::ChangeCursorShape ( QCursor  iCursorShape)
pure virtual

Implemented in QGoImageView3D, and QGoImageView2D.

void QGoImageView::ClearAllSeeds ( )
slot

Clear all the seeds positions after using it.

Definition at line 478 of file QGoImageView.cxx.

void QGoImageView::DefaultMode ( )

Use the default interactor style.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 272 of file QGoImageView.cxx.

void QGoImageView::EnableAngleWidget ( bool  iActive)
Examples:
GUI/lib/qgoimageview2d.cxx, and GUI/lib/qgoimageview3d.cxx.

Definition at line 546 of file QGoImageView.cxx.

void QGoImageView::EnableContourPickingMode ( )

Use the contour picking mode.

Examples:
GUI/lib/qgoimageview2d.cxx, and GUI/lib/qgoimageview3d.cxx.

Definition at line 389 of file QGoImageView.cxx.

void QGoImageView::EnableContourWidget ( bool  iActivate)
Examples:
GUI/lib/qgoimageview2d.cxx, and GUI/lib/qgoimageview3d.cxx.

Definition at line 599 of file QGoImageView.cxx.

void QGoImageView::EnableDistanceWidget ( bool  iEnable)
Examples:
GUI/lib/qgoimageview2d.cxx, and GUI/lib/qgoimageview3d.cxx.

Definition at line 511 of file QGoImageView.cxx.

void QGoImageView::EnableSeedWidget ( bool  iEnable)
Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 435 of file QGoImageView.cxx.

void QGoImageView::GetBackgroundColor ( double &  r,
double &  g,
double &  b 
)

Returns used background color by viewers.

Parameters
[out]rred
[out]ggreen
[out]bblue
Examples:
GUI/lib/qgoimageview3d.cxx.

Definition at line 111 of file QGoImageView.cxx.

double * QGoImageView::GetBackgroundColor ( )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 124 of file QGoImageView.cxx.

vtkPolyData * QGoImageView::GetContourRepresentationAsPolydata ( int  iDir)

Definition at line 685 of file QGoImageView.cxx.

vtkPolyData * QGoImageView::GetContourRepresentationNodePolydata ( int  iDir)

Definition at line 692 of file QGoImageView.cxx.

vtkImageData * QGoImageView::GetImage ( )

Get the displaid image.

Examples:
GUI/lib/qgoimageview2d.cxx, and GUI/lib/qgoimageview3d.cxx.

Definition at line 399 of file QGoImageView.cxx.

vtkImageActor * QGoImageView::GetImageActor ( const int &  iId)

Get the image actor.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 356 of file QGoImageView.cxx.

int * QGoImageView::GetImageCoordinatesFromWorldCoordinates ( double  pos[3])

Get Image Coordinates from World Coordinates.

Definition at line 198 of file QGoImageView.cxx.

vtkViewImage2D * QGoImageView::GetImageViewer ( const int &  iId)
Parameters
[in]iId
Returns

Definition at line 208 of file QGoImageView.cxx.

virtual QVTKInteractor* QGoImageView::GetInteractor ( const int &  )
pure virtual

Returns the interactor for one given view.

Implemented in QGoImageView3D, and QGoImageView2D.

int QGoImageView::GetNumberOfImageViewers ( )
Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 215 of file QGoImageView.cxx.

void QGoImageView::GetSeeds ( std::vector< vtkPoints * > &  iPoints)

Definition at line 457 of file QGoImageView.cxx.

void QGoImageView::InitializeAngleWidget ( )

Initializae the angle widget.

Definition at line 529 of file QGoImageView.cxx.

void QGoImageView::InitializeContourWidget ( )

Initializae the angle widget.

Definition at line 571 of file QGoImageView.cxx.

void QGoImageView::InitializeContourWidgetNodes ( int  iDir,
vtkPolyData *  iNodes 
)

Definition at line 617 of file QGoImageView.cxx.

void QGoImageView::InitializeDistanceWidget ( )

Initializae the distance widget.

Definition at line 494 of file QGoImageView.cxx.

void QGoImageView::InitializeSeedWidget ( )

Initializae the seed widget.

Definition at line 406 of file QGoImageView.cxx.

void QGoImageView::PanMode ( )

Use the pan interactor style.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 298 of file QGoImageView.cxx.

void QGoImageView::ReinitializeContourWidget ( )
slot

Definition at line 628 of file QGoImageView.cxx.

void QGoImageView::RemoveActor ( const int &  iId,
vtkActor *  iActor 
)
virtual

Reimplemented in QGoImageView3D.

Definition at line 248 of file QGoImageView.cxx.

void QGoImageView::ResetWindowLevel ( void  )

Reset collection Window level.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 310 of file QGoImageView.cxx.

virtual void QGoImageView::retranslateUi ( QWidget *  parent)
pure virtual

Implemented in QGoImageView3D, and QGoImageView2D.

void QGoImageView::SetBackgroundColor ( const double &  r,
const double &  g,
const double &  b 
)
slot

Set background color for all views.

Parameters
[in]rred
[in]ggreen
[in]bblue
Examples:
GUI/lib/qgoimageview2d.cxx, and GUI/lib/qgoimageview3d.cxx.

Definition at line 131 of file QGoImageView.cxx.

void QGoImageView::SetBackgroundColor ( double  rgb[3])
slot

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 176 of file QGoImageView.cxx.

void QGoImageView::SetBackgroundColor ( const QColor &  iColor)
slot

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 185 of file QGoImageView.cxx.

virtual void QGoImageView::SetImage ( vtkImageData *  iImage)
pure virtual

Set the image to displaid.

Implemented in QGoImageView3D, and QGoImageView2D.

void QGoImageView::SetInterpolate ( const int &  val)

Interpolate the data for visualization.

Definition at line 382 of file QGoImageView.cxx.

void QGoImageView::SetIntersectionLineWidth ( const float &  iWidth)

Definition at line 104 of file QGoImageView.cxx.

void QGoImageView::SetLookupTable ( vtkLookupTable *  iLut)

Set the lookup table in the collection.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 317 of file QGoImageView.cxx.

virtual void QGoImageView::setupUi ( QWidget *  parent)
pure virtual

Implemented in QGoImageView3D, and QGoImageView2D.

void QGoImageView::ShowAnnotations ( )
slot

Show annotations in the collection.

Examples:
GUI/lib/qgoimageview3d.cxx.

Definition at line 347 of file QGoImageView.cxx.

void QGoImageView::ShowScalarBar ( const bool &  iShow)

Show/hide the scalar bar in the collection.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 329 of file QGoImageView.cxx.

void QGoImageView::ShowSplinePlane ( )

Invert visibility of the Spline Plane.

Definition at line 373 of file QGoImageView.cxx.

void QGoImageView::Update ( void  )

Definition at line 703 of file QGoImageView.cxx.

void QGoImageView::UpdateContourRepresentationProperties ( float  linewidth,
QColor  linecolor,
QColor  nodecolor,
QColor  activenodecolor 
)
slot

Definition at line 643 of file QGoImageView.cxx.

void QGoImageView::UpdateRenderWindows ( )
slot

Update only the visualization.

Examples:
GUI/lib/qgoimageview3d.cxx.

Definition at line 340 of file QGoImageView.cxx.

void QGoImageView::ZoomMode ( )

Use the zoom interactor style.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 284 of file QGoImageView.cxx.

Member Data Documentation

QColor QGoImageView::m_ActiveNodesColor
protected

Definition at line 288 of file QGoImageView.h.

std::vector< vtkSmartPointer< vtkAngleWidget > > QGoImageView::m_AngleWidget
protected

Definition at line 280 of file QGoImageView.h.

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

Definition at line 284 of file QGoImageView.h.

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

Definition at line 283 of file QGoImageView.h.

std::vector< vtkSmartPointer< vtkDistanceWidget > > QGoImageView::m_DistanceWidget
protected

Definition at line 275 of file QGoImageView.h.

std::vector< vtkSmartPointer< vtkConstrainedPointHandleRepresentation > > QGoImageView::m_Handle
protected

Definition at line 271 of file QGoImageView.h.

vtkImageData* QGoImageView::m_Image
protected

Definition at line 267 of file QGoImageView.h.

float QGoImageView::m_IntersectionLineWidth
protected

Definition at line 290 of file QGoImageView.h.

QColor QGoImageView::m_LinesColor
protected

Definition at line 286 of file QGoImageView.h.

float QGoImageView::m_LinesWidth
protected

Definition at line 285 of file QGoImageView.h.

QColor QGoImageView::m_NodesColor
protected

Definition at line 287 of file QGoImageView.h.

vtkViewImage2DCollection* QGoImageView::m_Pool
protected

Definition at line 266 of file QGoImageView.h.

std::vector< vtkSmartPointer< vtkSeedRepresentation > > QGoImageView::m_SeedRep
protected

Definition at line 272 of file QGoImageView.h.

std::vector< vtkSmartPointer< vtkSeedWidget > > QGoImageView::m_SeedWidget
protected

Definition at line 270 of file QGoImageView.h.

bool QGoImageView::m_ShowAnnotations
protected

Definition at line 292 of file QGoImageView.h.

bool QGoImageView::m_ShowSplinePlane
protected

Definition at line 293 of file QGoImageView.h.

unsigned int QGoImageView::m_SnapshotId
protected

Definition at line 291 of file QGoImageView.h.


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