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 Member Functions | List of all members
QGoSynchronizedView Class Referenceabstract

abstract class for QGoSynchronizedView2D and QGoSynchronizedView3D. Those classes are used to display a QWidget containing a a vtkImageData* or an itk::Image<>::Pointer. They provide the interface to synchronize cameras. More...

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

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

Public Slots

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

virtual vtkCamera * GetCamera (void)=0
 get the camera of the current viewer More...
 
QString * GetName (void)
 get SynchronizedView's name More...
 
virtual int GetSynchronizedViewType (void)=0
 returns the type of SynchronizedView (2 for 2D, 3 for 3D) More...
 
virtual bool HasViewer (void)=0
 true if the widget has a viewer More...
 
virtual void PrintOs (ostream &os)=0
 print the SynchronizedView information : it consists in the image information if any. More...
 
 QGoSynchronizedView (QString iViewName, QWidget *iParent=0)
 
virtual void Render (void)=0
 render the viewer contained in the widget if any More...
 
virtual void SetImage (vtkImageData *iImage)=0
 Set image displayed by the SynchronizedView. More...
 
void SetViewManager (QGoSynchronizedViewManager *iViewManager)
 Set the address of the QGoSynchronizedViewManager. More...
 
virtual void Update (void)=0
 Update the viewer contained in the widget. More...
 
virtual ~QGoSynchronizedView ()
 Destructor. More...
 

Protected Member Functions

void changeEvent (QEvent *e)
 Qt change event function. More...
 
virtual void createViewer (void)=0
 
virtual void deleteViewer (void)=0
 

Protected Attributes

vtkImageData * m_Image
 
QString m_ImageName
 
QGoSynchronizedViewManagerm_ViewManager
 
QString m_ViewName
 
vtkEventQtSlotConnect * m_VTKEventQtConnector
 

Private Member Functions

 Q_DISABLE_COPY (QGoSynchronizedView)
 

Detailed Description

abstract class for QGoSynchronizedView2D and QGoSynchronizedView3D. Those classes are used to display a QWidget containing a a vtkImageData* or an itk::Image<>::Pointer. They provide the interface to synchronize cameras.

Examples:
GUI/lib/qgosynchronizedview2dtest.cxx.

Definition at line 59 of file QGoSynchronizedView.h.

Constructor & Destructor Documentation

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

Definition at line 48 of file QGoSynchronizedView.cxx.

QGoSynchronizedView::~QGoSynchronizedView ( )
virtual

Destructor.

Definition at line 69 of file QGoSynchronizedView.cxx.

Member Function Documentation

void QGoSynchronizedView::changeEvent ( QEvent *  e)
protected

Qt change event function.

Definition at line 74 of file QGoSynchronizedView.cxx.

virtual void QGoSynchronizedView::createViewer ( void  )
protectedpure virtual

create the viewer contained in the widget

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

virtual void QGoSynchronizedView::deleteViewer ( void  )
protectedpure virtual

delete the viewer contained in the widget

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

virtual vtkCamera* QGoSynchronizedView::GetCamera ( void  )
pure virtual

get the camera of the current viewer

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

QString * QGoSynchronizedView::GetName ( void  )

get SynchronizedView's name


  • Set image displayed by the comparer*

Definition at line 122 of file QGoSynchronizedView.cxx.

virtual int QGoSynchronizedView::GetSynchronizedViewType ( void  )
pure virtual

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

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

virtual bool QGoSynchronizedView::HasViewer ( void  )
pure virtual

true if the widget has a viewer

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

virtual void QGoSynchronizedView::PrintOs ( ostream &  os)
pure virtual

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

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

QGoSynchronizedView::Q_DISABLE_COPY ( QGoSynchronizedView  )
private
virtual void QGoSynchronizedView::Render ( void  )
pure virtual

render the viewer contained in the widget if any

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

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

Set image displayed by the SynchronizedView.

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

void QGoSynchronizedView::SetViewManager ( QGoSynchronizedViewManager iViewManager)

Set the address of the QGoSynchronizedViewManager.

Definition at line 130 of file QGoSynchronizedView.cxx.

virtual QString QGoSynchronizedView::SnapshotViewXY ( const GoFigure::FileType iType,
const QString &  iBaseName = tr("Snapshot") 
)
pure virtualslot

Save a snapshot of the displaid view, in a iType file.

Examples:
GUI/lib/qgosynchronizedview2dtest.cxx.
virtual void QGoSynchronizedView::Update ( void  )
pure virtual

Update the viewer contained in the widget.

Implemented in QGoSynchronizedView3D, and QGoSynchronizedView2D.

Member Data Documentation

vtkImageData* QGoSynchronizedView::m_Image
protected

Definition at line 117 of file QGoSynchronizedView.h.

QString QGoSynchronizedView::m_ImageName
protected

Definition at line 118 of file QGoSynchronizedView.h.

QGoSynchronizedViewManager* QGoSynchronizedView::m_ViewManager
protected

Definition at line 119 of file QGoSynchronizedView.h.

QString QGoSynchronizedView::m_ViewName
protected

Definition at line 116 of file QGoSynchronizedView.h.

vtkEventQtSlotConnect* QGoSynchronizedView::m_VTKEventQtConnector
protected

Definition at line 120 of file QGoSynchronizedView.h.


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