|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
36 #include <QTreeWidget>
37 #include <QTreeWidgetItem>
99 void explorerSelectionChanged();
102 void doubleClicked(QTreeWidgetItem*,
int);
136 void remove(QTreeWidgetItem*);
~Explorer() override
Destructor.
Definition: Explorer.cpp:55
bool inItalic() const override
A component name is not displayed in italic by default.
Definition: sdk/libraries/core/component/Component.h:927
The Explorer viewer displays the list of all data currently opened in the application....
Definition: Explorer.h:64
QTreeWidgetItem * getItem(camitk::Component *)
Return the QTreeWidgetItem of a given Component (return nullptr if not found)
Definition: Explorer.cpp:176
void setDescription(QString)
set the viewer's description
Definition: Viewer.cpp:104
QAction * editRename
the possible action
Definition: Explorer.h:162
QMap< camitk::Component *, QTreeWidgetItem * > topLevelCompItemMap
the map to get the QTreeWidgetItem corresponding to a parentComp
Definition: Explorer.h:115
void explorerSelectionChanged()
slot called whenever the selection changed in the explorer
Definition: Explorer.cpp:334
void renameItem()
slot called by the explorer menu when the user wants to rename the currently selected Component
Definition: Explorer.cpp:385
virtual bool isSelected() const
Check if this data component is selected.
Definition: sdk/libraries/core/component/Component.h:892
#define CAMITK_INFO(MSG)
Log for info verbosity (the second most verbose one) The msg will appear only if the user asked for I...
Definition: Log.h:261
QTreeWidgetItem * add(QTreeWidgetItem *, camitk::Component *)
recursively add the Component in the tree explorer and return the QTreeWidgetItem of the InterfaceNod...
Definition: Explorer.cpp:238
void refresh(camitk::Viewer *whoIsAsking=nullptr) override
Definition: Explorer.cpp:114
QMenu * getActionMenu()
Get a QMenu that contains all the action that can be applied to this component.
Definition: sdk/libraries/core/component/Component.cpp:355
QMenu * getMenu() override
get the explorer menu
Definition: Explorer.cpp:91
void rightButtonPressed()
send when the mouse right button is clicked
QTreeWidget * explorerTree
the list view
Definition: Explorer.h:153
QWidget * getWidget() override
get the explorer widget (QTreeWidget)
Definition: Explorer.cpp:64
void rightButtonPressed(const QPoint &)
slot called on right button click
Definition: Explorer.cpp:369
void doubleClicked(QTreeWidgetItem *, int)
slot called when an item was double clicked
Definition: Explorer.cpp:354
void setIcon(QPixmap icon)
set the default icon for the viewer extension
Definition: Viewer.cpp:84
void remove(QTreeWidgetItem *)
remove a given item from the explorer (return its index in the parent item list)
Definition: Explorer.cpp:314
QString getName() const
get the name of the viewer
Definition: Viewer.h:200
QMap< QTreeWidgetItem *, camitk::Component * > itemComponentMap
Definition: Explorer.h:112
#define EXPLORER_API
Definition: ExplorerAPI.h:54
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition: Viewer.h:245
QString getName() const override
get the name to be displayed
Definition: sdk/libraries/core/component/Component.h:907
bool doubleClicked() override
This method is called each time the InterfaceNode is double clicked by the user.
Definition: sdk/libraries/core/component/Component.h:897
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127
QTreeWidgetItem * getNewItem(QTreeWidgetItem *parent, camitk::Component *)
Definition: Explorer.cpp:192
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
const ComponentList & getChildren() override
get the list of the InterfaceNode children (sub items in the hierarchy)
Definition: sdk/libraries/core/component/Component.h:902
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
void removeTopLevel(camitk::Component *comp)
Remove the Component (its Component and its sub-item) from the explorer list (if present).
Definition: Explorer.cpp:300
virtual QWidget * getWidget()=0
get the viewer widget.
virtual void refresh(Viewer *whoIsAsking=nullptr)=0
refresh the view (can be interesting to know which other viewer is calling this)
void setName(const QString &) override
set the name to be displayed
Definition: sdk/libraries/core/component/Component.h:932
InterfaceNode * getParent() override
get the parent Component
Definition: sdk/libraries/core/component/Component.h:912
virtual void refresh()
refresh all the viewer that are currently displaying this Component At the end the InterfaceNode modi...
Definition: sdk/libraries/core/component/Component.cpp:286
void addTopLevel(camitk::Component *comp, int index=-1)
Add the given Component to the explorer (at top level) and automatically create children Component it...
Definition: Explorer.cpp:219
QPixmap getIcon() override
Get the pixmap that will be displayed for this node.
Definition: sdk/libraries/core/component/Component.h:922
QMenu * explorerMenu
Definition: Explorer.h:159
Q_INVOKABLE Explorer(QString)
Construtor.
Definition: Explorer.cpp:46
void refreshInterfaceNode(camitk::Component *comp)
Update the interface node representation of a given Component, (creates a new sub-item for all the ne...
Definition: Explorer.cpp:257
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