37 #include "vtkImageData.h"
39 #include "vtkEventQtSlotConnect.h"
46 #include "itkSmartPointer.h"
86 os <<
"SynchronizedView 2D " <<
this <<
" contains :" << std::endl;
91 os <<
"SynchronizedView 2D " <<
this <<
" contains no Image :" << std::endl;
141 return (
m_View != NULL );
204 this->gridLayout->addWidget(v);
abstract class for QGoSynchronizedView2D and QGoSynchronizedView3D. Those classes are used to display...
void SetInterpolate(const int &val)
Interpolate the data for visualization.
void PrintOs(ostream &os)
Print self informations.
QString SnapshotViewXY(const GoFigure::FileType &iType, const QString &iBaseName=tr("Snapshot"))
Save a screenshot of the viewer's content.
vtkViewImage2D * GetImageViewer(const int &iId)
QGoSynchronizedViewManager * m_ViewManager
QString SnapshotViewXY(const GoFigure::FileType &iType, const QString &iBaseName=tr("Snapshot"))
QGoImageView2D * GetImageView(void)
Returns the imageview managed by this SynchronizedView.
virtual void Render(void)
bool HasViewer(void)
true if the widget has a viewer
QGoSynchronizedView2D(QString iViewName, QWidget *iParent=0)
void Render(void)
render the viewer contained in the widget if any
int GetSynchronizedViewType(void)
returns the type of SynchronizedView (2 for 2D, 3 for 3D)
void createViewer(void)
create the viewer contained in the widget
vtkCamera * GetCamera(void)
get the camera of the current viewer
void SetImage(vtkImageData *iImage)
Set image displayed by the SynchronizedView.
Widget to visualize a 2D image (represented as vtkImageData).
void removeSynchronizedView2D(QGoSynchronizedView2D *ioSynchronizedView)
take a QGoSynchronizedView out of the Manager lists, without deleting it.
void Update(void)
Update the viewer contained in the widget.
void setContentsMargins(int left, int top, int right, int bottom)