Computer Assited Medical Intervention Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ActionStateViewer Class Reference

#include <ActionStateViewer.h>

+ Inheritance diagram for ActionStateViewer:

Public Member Functions

virtual QWidget * getWidget (QWidget *parent=NULL)
 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=NULL)
 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 refreshInterfaceNode (Component *comp)
 Update the whole tree of the representation of the Component. More...
 
 Viewer (QString name)
 default constructor More...
 
virtual ~Viewer ()
 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, 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...
 

Constructor & Destructor Documentation

ActionStateViewer::ActionStateViewer ( )
private

References myWidget.

Referenced by getActionStateViewer().

Member Function Documentation

ActionStateViewer * ActionStateViewer::getActionStateViewer ( )
static
QWidget * ActionStateViewer::getWidget ( QWidget *  parent = NULL)
virtual

get the viewer widget.

Parameters
parentthe parent widget for the viewer widget

Implements camitk::Viewer.

References actionStateWidgetStack, emptyActionWidgetIndex, and myWidget.

virtual unsigned int ActionStateViewer::numberOfViewedComponent ( )
inlinevirtual

returns the number of Component that are displayed by this viewer

Implements camitk::Viewer.

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

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

Implements camitk::Viewer.

void ActionStateViewer::setState ( ActionState actionState)

Member Data Documentation

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

QStackedWidget* ActionStateViewer::actionStateWidgetStack
private

actions stacked widget of the viewer

Referenced by getWidget(), and setState().

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

QWidget* ActionStateViewer::myWidget
private

Referenced by ActionStateViewer(), and getWidget().

QString ActionStateViewer::name
private

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