 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
25 #ifndef PROPERTYEXPLORER_H
26 #define PROPERTYEXPLORER_H
35 #include <QtTreePropertyBrowser>
36 #include <QtButtonPropertyBrowser>
37 #include <QtGroupBoxPropertyBrowser>
103 unsigned int numberOfViewedComponent()
override;
111 QWidget* getWidget(QWidget* parent =
nullptr)
override;
114 QObject* getPropertyObject()
override;
123 void selectWidget(QWidget* widget);
128 void selectIndex(
unsigned int index);
162 bool eventFilter(QObject*
object, QEvent* event)
override;
167 void createProperties();
183 void updateTabIndexToDisplay(
int index);
void updateTabIndexToDisplay(int index)
Update the PropertyExplorer tab index to display for the currently selected component This method is ...
Definition: PropertyExplorer.cpp:243
~PropertyExplorer() override
constructor
Definition: PropertyExplorer.cpp:75
Definition: objectcontroller.h:47
QObject * getPropertyObject()
Get the property object that could be understood by PropertyEditor.
Definition: sdk/libraries/core/component/Component.h:443
static QSettings & getSettings()
Get the Core wide settings.
Definition: Application.cpp:300
void setEnumTypeName(QString)
if the property's type is an enum, set the name of the registered Qt Enum.
Definition: Property.cpp:109
static void refresh()
refresh the main window (this will call the refresh method of all viewers)
Definition: Application.cpp:317
The property explorer.
Definition: PropertyExplorer.h:83
static PropertyExplorer * getInstance()
returns the unique instance of the PropertyExplorer
Definition: PropertyExplorer.cpp:86
ViewMode
Definition: ObjectController.h:195
void clear()
clear all the additional widgets, reset currentComponent (and update its visibility).
Definition: PropertyExplorer.cpp:210
void setIndexOfPropertyExplorerTab(unsigned int index)
Set the index of the tab in the ProperlyExplorer to select for display.
Definition: sdk/libraries/core/component/Component.h:462
static const ComponentList & getSelectedComponents()
get the currently selected Components.
Definition: Application.cpp:894
ObjectController * theController
the widgets
Definition: PropertyExplorer.h:136
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:314
const QString & getName() const
get the name of the property
Definition: Property.cpp:73
void selectWidget(QWidget *widget)
Select the tab containing the given widget in the PropertyExplorer.
Definition: PropertyExplorer.cpp:223
void setObject(QObject *object)
mutatorMethod of the object at unroll in the property browser
Definition: ObjectController.cpp:577
The object controller class.
Definition: ObjectController.h:185
unsigned int numberOfViewedComponent() override
Definition: PropertyExplorer.cpp:97
QWidget * getPropertyWidgetAt(unsigned int i)
Get the ith alternative property widget.
Definition: sdk/libraries/core/component/Component.h:431
void createProperties()
Create and handle the CamiTK properties of this viewer.
Definition: PropertyExplorer.cpp:272
void setAttribute(const QString &attribute, const QVariant &value)
Set a given property for this attribute.
Definition: Property.cpp:184
unsigned int getIndexOfPropertyExplorerTab()
Get the index of the tab in the ProperlyExplorer to select for display.
Definition: sdk/libraries/core/component/Component.h:473
virtual void setVisibility(Viewer *, bool)
set the visibility for a viewer
Definition: sdk/libraries/core/component/Component.cpp:276
Component * currentComponent
the viewed Component
Definition: PropertyExplorer.h:142
bool eventFilter(QObject *object, QEvent *event) override
Event filter of this class instance to watch its properties instances.
Definition: PropertyExplorer.cpp:251
Property * viewModeProperty
The CamiTK property that stands for the ObjectController view mode.
Definition: PropertyExplorer.h:156
void refresh(Viewer *whoIsAsking=nullptr) override
refresh the property editor
Definition: PropertyExplorer.cpp:107
QPushButton * applyButton
Definition: PropertyExplorer.h:139
QWidget * getWidget(QWidget *parent=nullptr) override
get the viewer widget.
Definition: PropertyExplorer.cpp:150
Q_ENUMS(ControlMode CameraOrientation)
RendererWidget implements all support methods to use camiTK with Qt interface.
QTabWidget * tabWidget
Definition: PropertyExplorer.h:137
@ BUTTON
It is like the GROUPBOX but the buttons allow the user to control the comput display of arborescence.
Definition: ObjectController.h:198
static bool isAlive(Component *)
does this Component still exists?
Definition: Application.cpp:828
Viewer is an abstract viewer.
Definition: Viewer.h:55
void selectIndex(unsigned int index)
Select the tab of the given index in the PropertyExplorer.
Definition: PropertyExplorer.cpp:236
void setViewMode(ViewMode viewMode)
mutator Method of the view mode
Definition: ObjectController.cpp:627
QObject * getPropertyObject() override
add a property to change the ObjectController representation at run-time (user choice)
Definition: PropertyExplorer.cpp:205
unsigned int getNumberOfPropertyWidget()
get the number of alternative property widgets
Definition: sdk/libraries/core/component/Component.h:423
PropertyObject * propertyObject
The property object that holds the properties of this viewer.
Definition: PropertyExplorer.h:151
void refresh()
refresh the display
virtual bool addProperty(Property *)
Tag a new CamiTK property to this object.
Definition: PropertyObject.cpp:76
void refreshAll()
Refresh all the application when a property has changed, the best is to refresh the viewer to avoid m...
Definition: PropertyExplorer.cpp:295
This class describes a property object.
Definition: PropertyObject.h:94
QPushButton * revertButton
Definition: PropertyExplorer.h:138
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:298
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:36