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();
294 void clearSelection();
297 void setIcon(QPixmap icon);
301 void setComponents(QStringList);
304 void setDescription(QString);
#define CAMITK_API
Definition: CamiTKAPI.h:49
const char * description
Definition: applications/cepgenerator/main.cpp:38
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
a specific style made for QDockWidget that adds an icon to the dock widget title
Definition: ViewerDockStyle.h:46
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
virtual QToolBar * getToolBar()
get the viewer toolbar (returns nullptr by default, i.e. there are no default toolbar)
Definition: Viewer.h:250
QLayout * embedder
if layout is of type EMBEDDED, this is the layout where the viewer's widget is embedded in
Definition: Viewer.h:332
QString name
current viewer's name
Definition: Viewer.h:308
QPixmap icon
the Viewer pixmap icon
Definition: Viewer.h:317
QDockWidget * dockWidget
if layout is of type DOCKED, then this is the widget where the viewer's widget is docked
Definition: Viewer.h:329
ViewerDockStyle * dockWidgetStyle
the style for the dock widget
Definition: Viewer.h:320
virtual QWidget * getWidget()=0
get the viewer widget.
bool toolbarVisibility
the current toolbar visibility
Definition: Viewer.h:314
virtual void refresh(Viewer *whoIsAsking=nullptr)=0
refresh the view (can be interesting to know which other viewer is calling this)
virtual QObject * getPropertyObject()
get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
Definition: Viewer.h:240
QString description
description of the viewer
Definition: Viewer.h:311
QString getDescription() const
get the name of the viewer
Definition: Viewer.h:205
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition: Viewer.h:245
Q_ENUM(ViewerType) Viewer(QString name
default constructor
void selectionChanged()
this signal is emitted when the current selection was changed by the viewer
ViewerType
describes where this viewer should appear
Definition: Viewer.h:186
@ EMBEDDED
this viewer is meant to be embedded inside a layout (of another viewer or widget),...
Definition: Viewer.h:187
@ DOCKED
this viewer is meant to be docked, use dockIn() to get the dock widget
Definition: Viewer.h:188
QStringList components
list of Component class name managed by this viewer
Definition: Viewer.h:323
Definition: Action.cpp:35
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127