Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ActionStateViewer Class Reference

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 ActionStateViewergetActionStateViewer ()
 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 ActionStateVieweractionStateViewer
 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...
 

Detailed Description

The current action state viewer.

Constructor & Destructor Documentation

◆ ActionStateViewer()

ActionStateViewer::ActionStateViewer ( )
private

References myWidget.

Referenced by getActionStateViewer(), and refresh().

Member Function Documentation

◆ getActionStateViewer()

ActionStateViewer * ActionStateViewer::getActionStateViewer ( )
static

◆ getWidget()

QWidget * ActionStateViewer::getWidget ( QWidget *  parent = nullptr)
virtual

get the viewer widget.

Parameters
parentthe parent widget for the viewer widget

Implements camitk::Viewer.

References actionStateWidgetStack, emptyActionWidgetIndex, and myWidget.

◆ numberOfViewedComponent()

virtual unsigned int ActionStateViewer::numberOfViewedComponent ( )
inlinevirtual

returns the number of Component that are displayed by this viewer

Implements camitk::Viewer.

◆ refresh()

virtual void ActionStateViewer::refresh ( Viewer whoIsAsking = nullptr)
inlinevirtual

refresh the view (can be interesting to know which other viewer is calling this)

References ActionStateViewer(), and setState().

◆ setState()

void ActionStateViewer::setState ( ActionState actionState)

Member Data Documentation

◆ actionStateViewer

ActionStateViewer * ActionStateViewer::actionStateViewer
staticprivate

the singleton ActionStateViewer instance

the register containing all the viewers (static instanciation, global variable, but global only for this file)

Referenced by getActionStateViewer().

◆ actionStateWidgetStack

QStackedWidget* ActionStateViewer::actionStateWidgetStack
private

actions stacked widget of the viewer

Referenced by getWidget(), and setState().

◆ emptyActionWidgetIndex

int ActionStateViewer::emptyActionWidgetIndex
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().

◆ myWidget

QWidget* ActionStateViewer::myWidget
private

Referenced by ActionStateViewer(), and getWidget().

◆ name

QString ActionStateViewer::name
private

The documentation for this class was generated from the following files: