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

Widget to visualize a 2D image (represented as vtkImageData). More...

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

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

Public Slots

QString SnapshotViewXY (const GoFigure::FileType &iType, const QString &iBaseName=tr("Snapshot"))
 
- Public Slots inherited from QGoImageView
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 ChangeCursorShape (QCursor iCursorShape)
 
QVTKInteractor * GetInteractor (const int &i=0)
 Returns the interactor for one given view. More...
 
 QGoImageView2D (QWidget *parent=0)
 
void retranslateUi (QWidget *parent)
 
void SetImage (vtkImageData *iImage)
 Set the image to displaid. More...
 
void setupUi (QWidget *parent)
 
void Update ()
 
 ~QGoImageView2D ()
 
- Public Member Functions inherited from QGoImageView
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...
 
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)
 
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...
 
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...
 
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

QHBoxLayout * m_LayOut
 
QVTKWidget * m_QVTKWidgetXY
 
vtkEventQtSlotConnect * m_VTKEventQtConnector
 
- Protected Attributes inherited from QGoImageView
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

Widget to visualize a 2D image (represented as vtkImageData).

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 55 of file QGoImageView2D.h.

Constructor & Destructor Documentation

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

Definition at line 48 of file QGoImageView2D.cxx.

QGoImageView2D::~QGoImageView2D ( )

Definition at line 69 of file QGoImageView2D.cxx.

Member Function Documentation

void QGoImageView2D::ChangeCursorShape ( QCursor  iCursorShape)
virtual

Implements QGoImageView.

Definition at line 170 of file QGoImageView2D.cxx.

QVTKInteractor * QGoImageView2D::GetInteractor ( const int &  = 0)
virtual

Returns the interactor for one given view.

Implements QGoImageView.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 125 of file QGoImageView2D.cxx.

void QGoImageView2D::retranslateUi ( QWidget *  parent)
virtual

Implements QGoImageView.

Definition at line 96 of file QGoImageView2D.cxx.

void QGoImageView2D::SetImage ( vtkImageData *  iImage)
virtual

Set the image to displaid.

Implements QGoImageView.

Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 104 of file QGoImageView2D.cxx.

void QGoImageView2D::setupUi ( QWidget *  parent)
virtual

Implements QGoImageView.

Definition at line 76 of file QGoImageView2D.cxx.

QString QGoImageView2D::SnapshotViewXY ( const GoFigure::FileType iType,
const QString &  iBaseName = tr("Snapshot") 
)
slot
Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 159 of file QGoImageView2D.cxx.

void QGoImageView2D::Update ( void  )
Examples:
GUI/lib/qgoimageview2d.cxx.

Definition at line 139 of file QGoImageView2D.cxx.

Member Data Documentation

QHBoxLayout* QGoImageView2D::m_LayOut
protected

Definition at line 79 of file QGoImageView2D.h.

QVTKWidget* QGoImageView2D::m_QVTKWidgetXY
protected

Definition at line 80 of file QGoImageView2D.h.

vtkEventQtSlotConnect* QGoImageView2D::m_VTKEventQtConnector
protected

Definition at line 81 of file QGoImageView2D.h.


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