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

class used to display a QWidget containing a two dimensional vtkimagedata* or itkimage*. QGoSynchronizedView3D provide the interface to synchronize cameras among several GoSynchronizedView3D. More...

#include <Code/GUI/lib/SynchronizedViews/QGoSynchronizedView3D.h>

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

Public Types

typedef
itk::ImageToVTKImageFilter
< VisuImageType
itkvtkConnectorType
 
typedef itk::Image< unsigned
char, 3 > 
VisuImageType
 

Public Slots

void SetFullScreenView (const int &iId)
 
void SetFullXYScreenView ()
 
void SetFullXYZScreenView ()
 
void SetFullXZScreenView ()
 
void SetFullYZScreenView ()
 
void SetQuadView ()
 
QString SnapshotViewXY (const GoFigure::FileType &iType, const QString &iBaseName=tr("Snapshot-xy-"))
 
QString SnapshotViewXYZ (const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-xyz-"))
 
QString SnapshotViewXZ (const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-xz-"))
 
QString SnapshotViewYZ (const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-yz-"))
 
- Public Slots inherited from QGoSynchronizedView
virtual QString SnapshotViewXY (const GoFigure::FileType &iType, const QString &iBaseName=tr("Snapshot"))=0
 Save a snapshot of the displaid view, in a iType file. More...
 

Public Member Functions

vtkCamera * GetCamera (void)
 get the camera of the current fullscreen view More...
 
vtkCamera * GetCamera (const int &iId)
 
int GetFullScreenView ()
 
QGoImageView3DGetImageView ()
 
int GetSynchronizedViewType (void)
 returns the type of SynchronizedView (2 for 2D, 3 for 3D) More...
 
bool HasViewer (void)
 true if the widget has a viewer More...
 
void PrintOs (ostream &os)
 
 QGoSynchronizedView3D (QString iViewName, QWidget *iParent=0)
 
void Render (void)
 render the all visualizations of the viewer contained in the widget if any. More...
 
void Render (const int &iId)
 
void SetImage (vtkImageData *iImage)
 
template<typename TPixel >
void SetImage (typename itk::Image< TPixel, 3 >::Pointer iImage)
 Set ITK image displayed by the SynchronizedView. More...
 
void Update (void)
 Update the viewer contained in the widget. More...
 
 ~QGoSynchronizedView3D ()
 
- Public Member Functions inherited from QGoSynchronizedView
QString * GetName (void)
 get SynchronizedView's name More...
 
 QGoSynchronizedView (QString iViewName, QWidget *iParent=0)
 
void SetViewManager (QGoSynchronizedViewManager *iViewManager)
 Set the address of the QGoSynchronizedViewManager. More...
 
virtual ~QGoSynchronizedView ()
 Destructor. More...
 

Protected Member Functions

void createViewer ()
 
void deleteViewer (void)
 
- Protected Member Functions inherited from QGoSynchronizedView
void changeEvent (QEvent *e)
 Qt change event function. More...
 

Protected Attributes

itkvtkConnectorType::Pointer m_itkvtkConnector
 
QGoImageView3Dm_View
 
- Protected Attributes inherited from QGoSynchronizedView
vtkImageData * m_Image
 
QString m_ImageName
 
QGoSynchronizedViewManagerm_ViewManager
 
QString m_ViewName
 
vtkEventQtSlotConnect * m_VTKEventQtConnector
 

Private Member Functions

 Q_DISABLE_COPY (QGoSynchronizedView3D)
 

Detailed Description

class used to display a QWidget containing a two dimensional vtkimagedata* or itkimage*. QGoSynchronizedView3D provide the interface to synchronize cameras among several GoSynchronizedView3D.

Examples:
GUI/lib/qgosynchronizedview3dtest.cxx.

Definition at line 58 of file QGoSynchronizedView3D.h.

Member Typedef Documentation

Definition at line 66 of file QGoSynchronizedView3D.h.

typedef itk::Image< unsigned char, 3 > QGoSynchronizedView3D::VisuImageType

Definition at line 64 of file QGoSynchronizedView3D.h.

Constructor & Destructor Documentation

QGoSynchronizedView3D::QGoSynchronizedView3D ( QString  iViewName,
QWidget *  iParent = 0 
)
explicit

Definition at line 46 of file QGoSynchronizedView3D.cxx.

QGoSynchronizedView3D::~QGoSynchronizedView3D ( )

Definition at line 55 of file QGoSynchronizedView3D.cxx.

Member Function Documentation

void QGoSynchronizedView3D::createViewer ( void  )
protectedvirtual

Create the viewer in the widget

Implements QGoSynchronizedView.

Definition at line 374 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::deleteViewer ( void  )
protectedvirtual

delete the viewer contained in the widget

Implements QGoSynchronizedView.

Definition at line 359 of file QGoSynchronizedView3D.cxx.

vtkCamera * QGoSynchronizedView3D::GetCamera ( void  )
virtual

get the camera of the current fullscreen view

Implements QGoSynchronizedView.

Definition at line 163 of file QGoSynchronizedView3D.cxx.

vtkCamera * QGoSynchronizedView3D::GetCamera ( const int &  iId)

get the camera of the current viewer; iId=[0-3]

Definition at line 188 of file QGoSynchronizedView3D.cxx.

int QGoSynchronizedView3D::GetFullScreenView ( )

Get the fullscreen view : 0 : Quadview (all 4 views) 1 : XY 2 : XZ 3 : YZ 4 : 3D view

Examples:
GUI/lib/qgosynchronizedview3dtest.cxx.

Definition at line 218 of file QGoSynchronizedView3D.cxx.

QGoImageView3D * QGoSynchronizedView3D::GetImageView ( void  )

Returns the QGoImageView3D* displaid.

Definition at line 232 of file QGoSynchronizedView3D.cxx.

int QGoSynchronizedView3D::GetSynchronizedViewType ( void  )
virtual

returns the type of SynchronizedView (2 for 2D, 3 for 3D)

Implements QGoSynchronizedView.

Definition at line 105 of file QGoSynchronizedView3D.cxx.

bool QGoSynchronizedView3D::HasViewer ( void  )
virtual

true if the widget has a viewer

Implements QGoSynchronizedView.

Definition at line 211 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::PrintOs ( ostream &  os)
virtual

print the SynchronizedView information : it consists in the image information if any.

Implements QGoSynchronizedView.

Definition at line 88 of file QGoSynchronizedView3D.cxx.

QGoSynchronizedView3D::Q_DISABLE_COPY ( QGoSynchronizedView3D  )
private
void QGoSynchronizedView3D::Render ( void  )
virtual

render the all visualizations of the viewer contained in the widget if any.

Implements QGoSynchronizedView.

Definition at line 131 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::Render ( const int &  iId)

render the iId'th imageview: 3D visualization usually contains 4 imageviewers : three 2D projection and a 3D view : iId=[0-3]

Definition at line 144 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::SetFullScreenView ( const int &  iId)
slot

Set the fullscreen view : iId = [0-4] 0 : Quadview (all 4 views) 1 : XY 2 : XZ 3 : YZ 4 : 3D view

Examples:
GUI/lib/qgosynchronizedview3dtest.cxx.

Definition at line 310 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::SetFullXYScreenView ( )
slot

Set the fullscreen view : XY

Definition at line 320 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::SetFullXYZScreenView ( )
slot

Set the fullscreen view : XYZ

Definition at line 341 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::SetFullXZScreenView ( )
slot

Set the fullscreen view : XZ

Definition at line 327 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::SetFullYZScreenView ( )
slot

Set the fullscreen view : YZ

Definition at line 334 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::SetImage ( vtkImageData *  iImage)
virtual

Set image displayed by the SynchronizedView

Implements QGoSynchronizedView.

Examples:
GUI/lib/qgosynchronizedview3dtest.cxx.

Definition at line 112 of file QGoSynchronizedView3D.cxx.

template<typename TPixel >
void QGoSynchronizedView3D::SetImage ( typename itk::Image< TPixel, 3 >::Pointer  iImage)
inline

Set ITK image displayed by the SynchronizedView.

Definition at line 79 of file QGoSynchronizedView3D.h.

void QGoSynchronizedView3D::SetQuadView ( )
slot

Set the fullscreen view : 3D view

Definition at line 348 of file QGoSynchronizedView3D.cxx.

QString QGoSynchronizedView3D::SnapshotViewXY ( const GoFigure::FileType iType,
const QString &  iBaseName = tr("Snapshot-xy-") 
)
slot

Definition at line 246 of file QGoSynchronizedView3D.cxx.

QString QGoSynchronizedView3D::SnapshotViewXYZ ( const GoFigure::FileType iType,
const QString &  iBaseName = QString("snapshot-xyz-") 
)
slot

Definition at line 294 of file QGoSynchronizedView3D.cxx.

QString QGoSynchronizedView3D::SnapshotViewXZ ( const GoFigure::FileType iType,
const QString &  iBaseName = QString("snapshot-xz-") 
)
slot

Definition at line 262 of file QGoSynchronizedView3D.cxx.

QString QGoSynchronizedView3D::SnapshotViewYZ ( const GoFigure::FileType iType,
const QString &  iBaseName = QString("snapshot-yz-") 
)
slot

Definition at line 278 of file QGoSynchronizedView3D.cxx.

void QGoSynchronizedView3D::Update ( void  )
virtual

Update the viewer contained in the widget.

Implements QGoSynchronizedView.

Examples:
GUI/lib/qgosynchronizedview3dtest.cxx.

Definition at line 76 of file QGoSynchronizedView3D.cxx.

Member Data Documentation

itkvtkConnectorType::Pointer QGoSynchronizedView3D::m_itkvtkConnector
protected

Definition at line 202 of file QGoSynchronizedView3D.h.

QGoImageView3D* QGoSynchronizedView3D::m_View
protected

Definition at line 201 of file QGoSynchronizedView3D.h.


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