NorMIT-nav  22.09
An IGT application
cx::StateService Class Referenceabstract

Workflow states for CustusX. More...

#include <cxStateService.h>

Inheritance diagram for cx::StateService:
cx::StateServiceImpl cx::StateServiceNull cx::StateServiceProxy

Signals

void workflowStateChanged ()
 
void workflowStateAboutToChange ()
 
void applicationStateChanged ()
 

Public Member Functions

virtual ~StateService ()
 
virtual QString getVersionName ()=0
 
virtual QString getApplicationStateName () const =0
 
virtual QStringList getAllApplicationStateNames () const =0
 
virtual QActionGroup * getWorkflowActions ()=0
 
virtual void setWorkFlowState (QString uid)=0
 
virtual Desktop getActiveDesktop ()=0
 
virtual void saveDesktop (Desktop desktop)=0
 
virtual void resetDesktop ()=0
 
virtual WorkflowStateMachinePtr getWorkflow ()=0
 
virtual bool isNull ()=0
 

Static Public Member Functions

static StateServicePtr getNullObject ()
 

Protected Member Functions

void fillDefaultSettings ()
 
template<class T >
void fillDefault (QString name, T value)
 

Detailed Description

Workflow states for CustusX.

Maintains global state. The responsibility of this service has been reduced, it now controls the workflow steps.

Workflow

The use of CustusX during a surgical procedure can be broken down into a series of steps:

  • Preoperative data acquisition
  • Planning
  • Registration
  • Navigation + Intraoperative data acquisition.
  • Postoperative analysis

This is the main workflow. Each step is named a Workflow State, and are states in StateManager. They can be customized in the State Manager, and they have a unique GUI setup.

Workflow steps. The buttons are enlarged.
See also
WorkflowStateMachine

During each step, There are operations that usually are performed in sequence. Examples:

  • Acquire data -> reconstruct.
  • Import/acquire data -> show in view.

These automations can be set in Preferences->Automation.

Date
4. aug. 2010
Author
Janne Beate Bakeng, SINTEF

Definition at line 102 of file cxStateService.h.

Constructor & Destructor Documentation

◆ ~StateService()

virtual cx::StateService::~StateService ( )
inlinevirtual

Definition at line 107 of file cxStateService.h.

Member Function Documentation

◆ applicationStateChanged

void cx::StateService::applicationStateChanged ( )
signal

◆ fillDefault()

template<class T >
void cx::StateService::fillDefault ( QString  name,
value 
)
inlineprotected

Definition at line 127 of file cxStateService.h.

◆ fillDefaultSettings()

void cx::StateService::fillDefaultSettings ( )
protected

Enter all default Settings here.

Definition at line 54 of file cxStateService.cpp.

◆ getActiveDesktop()

virtual Desktop cx::StateService::getActiveDesktop ( )
pure virtual

◆ getAllApplicationStateNames()

virtual QStringList cx::StateService::getAllApplicationStateNames ( ) const
pure virtual

◆ getApplicationStateName()

virtual QString cx::StateService::getApplicationStateName ( ) const
pure virtual

◆ getNullObject()

StateServicePtr cx::StateService::getNullObject ( )
static

Definition at line 43 of file cxStateService.cpp.

◆ getVersionName()

virtual QString cx::StateService::getVersionName ( )
pure virtual

◆ getWorkflow()

virtual WorkflowStateMachinePtr cx::StateService::getWorkflow ( )
pure virtual

◆ getWorkflowActions()

virtual QActionGroup* cx::StateService::getWorkflowActions ( )
pure virtual

◆ isNull()

virtual bool cx::StateService::isNull ( )
pure virtual

◆ resetDesktop()

virtual void cx::StateService::resetDesktop ( )
pure virtual

◆ saveDesktop()

virtual void cx::StateService::saveDesktop ( Desktop  desktop)
pure virtual

◆ setWorkFlowState()

virtual void cx::StateService::setWorkFlowState ( QString  uid)
pure virtual

◆ workflowStateAboutToChange

void cx::StateService::workflowStateAboutToChange ( )
signal

◆ workflowStateChanged

void cx::StateService::workflowStateChanged ( )
signal

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