|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
25 #ifndef PROPERTYEXPLORER_H
26 #define PROPERTYEXPLORER_H
36 #include <QtTreePropertyBrowser>
37 #include <QtButtonPropertyBrowser>
38 #include <QtGroupBoxPropertyBrowser>
115 void selectWidget(QWidget* widget);
120 void selectIndex(
unsigned int index);
154 bool eventFilter(QObject*
object, QEvent* event)
override;
159 void createProperties();
175 void updateTabIndexToDisplay(
int index);
void setDescription(QString)
set the viewer's description
Definition: Viewer.cpp:104
void updateTabIndexToDisplay(int index)
Update the PropertyExplorer tab index to display for the currently selected component This method is ...
Definition: PropertyExplorer.cpp:208
QPushButton * revertButton
Definition: PropertyExplorer.h:130
camitk::PropertyObject * propertyObject
The property object that holds the properties of this viewer.
Definition: PropertyExplorer.h:143
Definition: objectcontroller.h:47
void setEnumTypeName(QString)
if the property's type is an enum, set the name of the registered Qt Enum.
Definition: Property.cpp:108
camitk::Property * viewModeProperty
The CamiTK property that stands for the ObjectController view mode.
Definition: PropertyExplorer.h:148
void setIndexOfPropertyExplorerTab(unsigned int index) override final
Set the index of the tab in the ProperlyExplorer to select for display.
Definition: sdk/libraries/core/component/Component.h:492
unsigned int getNumberOfPropertyWidget() override
get the number of alternative property widgets
Definition: sdk/libraries/core/component/Component.h:453
ViewMode
Definition: ObjectController.h:194
void clear()
clear all the additional widgets, reset currentComponent (and update its visibility).
Definition: PropertyExplorer.cpp:170
Q_INVOKABLE PropertyExplorer(QString name)
Definition: PropertyExplorer.cpp:42
void refresh(camitk::Viewer *whoIsAsking=nullptr) override
Definition: PropertyExplorer.cpp:64
~PropertyExplorer() override
destructor
Definition: PropertyExplorer.cpp:55
void refreshAll()
Refresh all the application when a property has changed, the best is to refresh the viewer to avoid m...
Definition: PropertyExplorer.cpp:260
unsigned int getIndexOfPropertyExplorerTab() override
Get the index of the tab in the ProperlyExplorer to select for display.
Definition: sdk/libraries/core/component/Component.h:503
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:303
const QString & getName() const
get the name of the property
Definition: Property.cpp:72
void setIcon(QPixmap icon)
set the default icon for the viewer extension
Definition: Viewer.cpp:84
QString getName() const
get the name of the viewer
Definition: Viewer.h:200
void setObject(QObject *object)
mutatorMethod of the object at unroll in the property browser
Definition: ObjectController.cpp:576
The object controller class.
Definition: ObjectController.h:185
void setAttribute(const QString &attribute, const QVariant &value)
Set a given property for this attribute.
Definition: Property.cpp:183
void selectIndex(unsigned int index)
Select the tab of the given index in the PropertyExplorer.
Definition: PropertyExplorer.cpp:201
bool eventFilter(QObject *object, QEvent *event) override
Event filter of this class instance to watch its properties instances.
Definition: PropertyExplorer.cpp:216
camitk::Component * currentComponent
the viewed Component
Definition: PropertyExplorer.h:134
QPushButton * applyButton
Definition: PropertyExplorer.h:131
virtual void setVisibility(QString, bool)
set the visibility inside the viewer of the given name (the viewer needs to be a registered viewer)
Definition: sdk/libraries/core/component/Component.cpp:224
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
void setViewMode(ViewMode viewMode)
mutator Method of the view mode
Definition: ObjectController.cpp:626
void createProperties()
Create and handle the CamiTK properties of this viewer.
Definition: PropertyExplorer.cpp:237
The property explorer.
Definition: PropertyExplorer.h:81
virtual QWidget * getWidget()=0
get the viewer widget.
#define PROPERTYEXPLORER_API
Definition: PropertyExplorerAPI.h:54
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
camitk::ObjectController * theController
the widgets
Definition: PropertyExplorer.h:128
QWidget * getWidget() override
get the viewer widget.
Definition: PropertyExplorer.cpp:110
void refresh()
refresh the display
QObject * getPropertyObject() override
add a property to change the ObjectController representation at run-time (user choice)
Definition: PropertyExplorer.cpp:165
virtual bool addProperty(Property *)
Tag a new CamiTK property to this object.
Definition: PropertyObject.cpp:76
QWidget * getPropertyWidgetAt(unsigned int) override
Get the ith alternative property widget.
Definition: sdk/libraries/core/component/Component.h:461
This class describes a property object.
Definition: PropertyObject.h:94
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
Definition: Action.cpp:35
QObject * getPropertyObject() override
Get the property object that could be understood by PropertyEditor.
Definition: sdk/libraries/core/component/Component.h:473
void selectWidget(QWidget *widget)
Select the tab containing the given widget in the PropertyExplorer.
Definition: PropertyExplorer.cpp:186
QTabWidget * tabWidget
Definition: PropertyExplorer.h:129