196 Viewer(QString name, ViewerType type = EMBEDDED);
207 void setDescription(QString);
231 void setType(ViewerType);
234 ViewerType getType()
const;
241 virtual bool setDockWidget(QDockWidget*);
245 virtual QDockWidget* getDockWidget()
const;
251 virtual bool setEmbedder(QLayout*);
255 virtual QLayout* getEmbedder()
const;
276 virtual void setVisible(
bool);
281 virtual void setToolBarVisibility(
bool);
284 virtual bool getToolBarVisibility()
const;
287 virtual QPixmap getIcon()
const;
291 QStringList getComponentClassNames()
const;
332 bool toolbarVisibility;
341 QStringList componentClassNames;
347 QDockWidget* dockWidget;
#define CAMITK_API
Definition CamiTKAPI.h:66
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition sdk/libraries/core/component/Component.h:304
This class describes a property object.
Definition PropertyObject.h:72
This class describes a property that can be used in components and actions or any class that needs to...
Definition Property.h:306
a specific style made for QDockWidget that adds an icon to the dock widget title
Definition ViewerDockStyle.h:46
This class describes what is a generic Action extension.
Definition ViewerExtension.h:85
Viewer is an abstract class that is the base class for all viewers.
Definition Viewer.h:182
virtual QToolBar * getToolBar()
get the viewer toolbar (returns nullptr by default, i.e. there are no default toolbar)
Definition Viewer.h:271
void setComponentClassNames(QStringList)
set the list of component class names managed by this viewer
Definition Viewer.cpp:71
QUuid getUuid() const
get the Uuid of this viewer
Definition Viewer.h:226
virtual PropertyObject * getPropertyObject()
get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
Definition Viewer.h:261
virtual QWidget * getWidget()=0
get the viewer widget.
void setIcon(QPixmap icon)
set the default icon for the viewer extension
Definition Viewer.cpp:61
virtual void refresh(Viewer *whoIsAsking=nullptr)=0
refresh the view (can be interesting to know which other viewer is calling this)
bool setUuid(QUuid id)
set the Uuid of this viewer
Definition Viewer.h:215
QString getDescription() const
get the name of the viewer
Definition Viewer.h:210
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition Viewer.h:266
QString getName() const
get the name of the viewer
Definition Viewer.h:202
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:188
@ EMBEDDED
this viewer is meant to be embedded inside a layout (of another viewer or widget),...
Definition Viewer.h:189
@ DOCKED
this viewer is meant to be docked, use dockIn() to get the dock widget
Definition Viewer.h:190
Viewer(QString name, ViewerType type=EMBEDDED)
default constructor
Definition Viewer.cpp:41
void clearSelection()
clear the selection
Definition Viewer.cpp:101
QList< Component * > ComponentList
A list of Component.
Definition CamiTKAPI.h:161