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

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

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

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

Public Slots

QString SnapshotViewXY (const GoFigure::FileType &iType, const QString &iBaseName=tr("Snapshot"))
 Save a screenshot of the viewer's content. More...
 
- 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 viewer More...
 
QGoImageView2DGetImageView (void)
 Returns the imageview managed by this SynchronizedView. More...
 
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)
 Print self informations. More...
 
 QGoSynchronizedView2D (QString iViewName, QWidget *iParent=0)
 
void Render (void)
 render the viewer contained in the widget if any More...
 
void SetImage (vtkImageData *iImage)
 Set image displayed by the SynchronizedView. More...
 
template<typename TPixel >
void SetImage (typename itk::Image< TPixel, 2 >::Pointer iImage)
 Set ITK image displayed by the SynchronizedView. More...
 
void Update (void)
 Update the viewer contained in the widget. More...
 
 ~QGoSynchronizedView2D ()
 
- 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)
 create the viewer contained in the widget More...
 
void deleteViewer (void)
 
- Protected Member Functions inherited from QGoSynchronizedView
void changeEvent (QEvent *e)
 Qt change event function. More...
 

Protected Attributes

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

Private Types

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

Private Member Functions

 Q_DISABLE_COPY (QGoSynchronizedView2D)
 

Detailed Description

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

Examples:
GUI/lib/qgosynchronizedview2dtest.cxx.

Definition at line 57 of file QGoSynchronizedView2D.h.

Member Typedef Documentation

Definition at line 65 of file QGoSynchronizedView2D.h.

typedef itk::Image< unsigned char, 2 > QGoSynchronizedView2D::VisuImageType
private

Definition at line 63 of file QGoSynchronizedView2D.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file QGoSynchronizedView2D.cxx.

QGoSynchronizedView2D::~QGoSynchronizedView2D ( )

Definition at line 62 of file QGoSynchronizedView2D.cxx.

Member Function Documentation

void QGoSynchronizedView2D::createViewer ( void  )
protectedvirtual

create the viewer contained in the widget

Implements QGoSynchronizedView.

Definition at line 194 of file QGoSynchronizedView2D.cxx.

void QGoSynchronizedView2D::deleteViewer ( void  )
protectedvirtual

delete the viewer contained in the widget

Implements QGoSynchronizedView.

Definition at line 179 of file QGoSynchronizedView2D.cxx.

vtkCamera * QGoSynchronizedView2D::GetCamera ( void  )
virtual

get the camera of the current viewer

Implements QGoSynchronizedView.

Definition at line 122 of file QGoSynchronizedView2D.cxx.

QGoImageView2D * QGoSynchronizedView2D::GetImageView ( void  )

Returns the imageview managed by this SynchronizedView.

Definition at line 212 of file QGoSynchronizedView2D.cxx.

int QGoSynchronizedView2D::GetSynchronizedViewType ( void  )
virtual

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

Implements QGoSynchronizedView.

Definition at line 147 of file QGoSynchronizedView2D.cxx.

bool QGoSynchronizedView2D::HasViewer ( void  )
virtual

true if the widget has a viewer

Implements QGoSynchronizedView.

Definition at line 139 of file QGoSynchronizedView2D.cxx.

void QGoSynchronizedView2D::PrintOs ( ostream &  os)
virtual

Print self informations.

Implements QGoSynchronizedView.

Definition at line 81 of file QGoSynchronizedView2D.cxx.

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

render the viewer contained in the widget if any

Implements QGoSynchronizedView.

Definition at line 111 of file QGoSynchronizedView2D.cxx.

void QGoSynchronizedView2D::SetImage ( vtkImageData *  iImage)
virtual

Set image displayed by the SynchronizedView.

Implements QGoSynchronizedView.

Examples:
GUI/lib/qgosynchronizedview2dtest.cxx.

Definition at line 155 of file QGoSynchronizedView2D.cxx.

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

Set ITK image displayed by the SynchronizedView.

Definition at line 102 of file QGoSynchronizedView2D.h.

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

Save a screenshot of the viewer's content.

Definition at line 226 of file QGoSynchronizedView2D.cxx.

void QGoSynchronizedView2D::Update ( void  )
virtual

Update the viewer contained in the widget.

Implements QGoSynchronizedView.

Examples:
GUI/lib/qgosynchronizedview2dtest.cxx.

Definition at line 98 of file QGoSynchronizedView2D.cxx.

Member Data Documentation

itkvtkConnectorType::Pointer QGoSynchronizedView2D::m_itkvtkConnector
protected

Definition at line 142 of file QGoSynchronizedView2D.h.

QGoImageView2D* QGoSynchronizedView2D::m_View
protected

Definition at line 141 of file QGoSynchronizedView2D.h.


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