|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
46 class ViewerExtension;
48 class ViewerDockStyle;
197 virtual ~
Viewer() override;
200 QString getName()
const {
210 void setType(ViewerType);
213 ViewerType getType();
220 bool setDockWidget(QDockWidget*);
224 QDockWidget* getDockWidget();
230 bool setEmbedder(QLayout*);
234 QLayout* getEmbedder();
255 void setVisible(
bool);
260 void setToolBarVisibility(
bool);
263 bool getToolBarVisibility();
266 virtual QPixmap getIcon();
270 QStringList getComponents();
275 void selectionChanged();
282 virtual QWidget* getWidget() = 0;
294 void clearSelection();
297 void setIcon(QPixmap icon);
301 void setComponents(QStringList);
304 void setDescription(QString);
ViewerType
Definition: Viewer.h:186
@ DOCKED
this viewer is meant to be docked, use dockIn() to get the dock widget
Definition: Viewer.h:188
QPixmap icon
the Viewer pixmap icon
Definition: Viewer.h:317
@ EMBEDDED
this viewer is meant to be embedded inside a layout (of another viewer or widget),...
Definition: Viewer.h:187
#define CAMITK_ERROR(MSG)
Log for error verbosity (the minimum verbosity) Will always appear.
Definition: Log.h:276
ViewerDockStyle * dockWidgetStyle
the style for the dock widget
Definition: Viewer.h:320
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
Definition: sdk/libraries/core/component/Component.cpp:445
const char * description
Definition: applications/cepgenerator/main.cpp:38
QLayout * embedder
if layout is of type EMBEDDED, this is the layout where the viewer's widget is embedded in
Definition: Viewer.h:332
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition: Viewer.h:245
QString name
current viewer's name
Definition: Viewer.h:308
QDockWidget * dockWidget
if layout is of type DOCKED, then this is the widget where the viewer's widget is docked
Definition: Viewer.h:329
QStringList components
list of Component class name managed by this viewer
Definition: Viewer.h:323
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127
a specific style made for QDockWidget that adds an icon to the dock widget title
Definition: ViewerDockStyle.h:69
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
setObjectName("RendererWidget")
QString getDescription() const
get the name of the viewer
Definition: Viewer.h:205
virtual QObject * getPropertyObject()
get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
Definition: Viewer.h:240
void refresh()
refresh the display
bool toolbarVisibility
the current toolbar visibility
Definition: Viewer.h:314
virtual QToolBar * getToolBar()
get the viewer toolbar (returns nullptr by default, i.e. there are no default toolbar)
Definition: Viewer.h:250
QString description
description of the viewer
Definition: Viewer.h:311
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:35