37 #include "vtkImageData.h"
40 #include "vtkEventQtSlotConnect.h"
93 os <<
"SynchronizedView 3D " <<
this <<
" contains :" << std::endl;
98 os <<
"SynchronizedView 3D " <<
this <<
" contains no Image :" << std::endl;
148 if ( ( iId >= 0 ) && ( iId <= 2 ) )
169 if ( ( currentView >= 1 ) && ( currentView <= 3 ) )
192 if ( ( iId >= 0 ) && ( iId <= 2 ) )
213 return (
m_View != NULL );
384 gridLayout->addWidget(
m_View);
bool HasViewer(void)
true if the widget has a viewer
abstract class for QGoSynchronizedView2D and QGoSynchronizedView3D. Those classes are used to display...
QGoImageView3D * GetImageView()
int GetSynchronizedViewType(void)
returns the type of SynchronizedView (2 for 2D, 3 for 3D)
virtual void Render(void)
void SetInterpolate(const int &val)
Interpolate the data for visualization.
void SetImage(vtkImageData *iImage)
void SetFullXYScreenView()
void removeSynchronizedView3D(QGoSynchronizedView3D *ioSynchronizedView)
void SetFullXZScreenView()
vtkViewImage2D * GetImageViewer(const int &iId)
void PrintOs(ostream &os)
QString SnapshotViewXYZ(const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-xyz-"))
QGoSynchronizedViewManager * m_ViewManager
class for the visualization of 3D Image represented by one vtkImageData*.
int GetFullScreenView() const
vtkViewImage3D * GetImageViewer3D()
QString SnapshotViewXYZ(const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-xyz-"))
QString SnapshotViewYZ(const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-yz-"))
QString SnapshotViewYZ(const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-yz"))
QString SnapshotViewXY(const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-xy-"))
virtual void SetImage(vtkImageData *iImage)
Set the image to displaid.
void SetFullScreenView(const int &iId)
void SetFullScreenView(const int &iS)
virtual void Render(void)
void Update(void)
Update the viewer contained in the widget.
QString SnapshotViewXZ(const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-xz-"))
void Render(void)
render the all visualizations of the viewer contained in the widget if any.
QString SnapshotViewXY(const GoFigure::FileType &iType, const QString &iBaseName=tr("Snapshot-xy-"))
void SetFullYZScreenView()
QGoSynchronizedView3D(QString iViewName, QWidget *iParent=0)
vtkCamera * GetCamera(void)
get the camera of the current fullscreen view
QString SnapshotViewXZ(const GoFigure::FileType &iType, const QString &iBaseName=QString("snapshot-xz-"))
void setContentsMargins(int left, int top, int right, int bottom)
void SetFullXYZScreenView()