Computer Assited Medical Intervention Tool Kit
version 4.1
|
The current action state viewer. More...
#include <ActionStateViewer.h>
Inherits camitk::Viewer.
Public Member Functions | |
virtual QWidget * | getWidget (QWidget *parent=nullptr) |
get the viewer widget. More... | |
virtual unsigned int | numberOfViewedComponent () |
returns the number of Component that are displayed by this viewer More... | |
virtual void | refresh (Viewer *whoIsAsking=nullptr) |
refresh the view (can be interesting to know which other viewer is calling this) More... | |
void | setState (ActionState *actionState) |
Public Member Functions inherited from camitk::Viewer | |
virtual QMenu * | getMenu () |
get the viewer menu (returns NULL by default, i.e. there are no default edit menu) More... | |
virtual QObject * | getPropertyObject () |
get the viewer property object (returns NULL by default, i.e. there are no property to edit) More... | |
virtual QToolBar * | getToolBar () |
get the viewer toolbar (returns NULL by default, i.e. there are no default toolbar) More... | |
virtual void | refresh (Viewer *whoIsAsking=nullptr)=0 |
refresh the view (can be interesting to know which other viewer is calling this) More... | |
virtual void | refreshInterfaceNode (Component *comp) |
Update the whole tree of the representation of the Component. More... | |
Viewer (QString name) | |
default constructor More... | |
~Viewer () override=default | |
default destructor More... | |
Static Public Member Functions | |
static ActionStateViewer * | getActionStateViewer () |
returns the unique instance oh ActionStateViewer More... | |
Private Member Functions | |
ActionStateViewer () | |
Private Attributes | |
QStackedWidget * | actionStateWidgetStack |
actions stacked widget of the viewer More... | |
int | emptyActionWidgetIndex |
index of the empty widget, used when no action is active or when no action has been used for the currently selected components More... | |
QWidget * | myWidget |
QString | name |
Static Private Attributes | |
static ActionStateViewer * | actionStateViewer |
the singleton ActionStateViewer instance More... | |
Additional Inherited Members | |
Signals inherited from camitk::Viewer | |
void | selectionChanged () |
this signal is emitted when the current selection was changed by the viewer More... | |
Protected Member Functions inherited from camitk::Viewer | |
void | clearSelection () |
clear the selection More... | |
void | selectionChanged (ComponentList &compSet) |
The selection has changed to the given ComponentList. More... | |
void | selectionChanged (Component *comp) |
the selection has changed to be just one comp More... | |
The current action state viewer.
|
private |
References myWidget.
Referenced by getActionStateViewer(), and refresh().
|
static |
returns the unique instance oh ActionStateViewer
References ActionStateViewer(), and actionStateViewer.
Referenced by ActionStateMachine::initMainWindow(), ActionTransition::onTransition(), and ActionStateMachine::parseSCXMLTree().
|
virtual |
get the viewer widget.
parent | the parent widget for the viewer widget |
Implements camitk::Viewer.
References actionStateWidgetStack, emptyActionWidgetIndex, and myWidget.
|
inlinevirtual |
returns the number of Component that are displayed by this viewer
Implements camitk::Viewer.
|
inlinevirtual |
refresh the view (can be interesting to know which other viewer is calling this)
References ActionStateViewer(), and setState().
void ActionStateViewer::setState | ( | ActionState * | actionState | ) |
References actionStateWidgetStack, and ActionState::getWidget().
Referenced by ActionTransition::onTransition(), ActionStateMachine::parseSCXMLTree(), and refresh().
|
staticprivate |
the singleton ActionStateViewer instance
the register containing all the viewers (static instanciation, global variable, but global only for this file)
Referenced by getActionStateViewer().
|
private |
actions stacked widget of the viewer
Referenced by getWidget(), and setState().
|
private |
index of the empty widget, used when no action is active or when no action has been used for the currently selected components
Referenced by getWidget().
|
private |
Referenced by ActionStateViewer(), and getWidget().
|
private |