NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxCustusXWorkflowStateMachine.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
14 #include "cxVisServices.h"
15 
16 namespace cx
17 {
18 
20  WorkflowStateMachine(services)
21 {
22  WorkflowState* patientData = this->newState(new PatientDataWorkflowState(mParentState, services));
23  this->newState(new RegistrationWorkflowState(mParentState, services));
24  this->newState(new PreOpPlanningWorkflowState(mParentState, services));
25  this->newState(new NavigationWorkflowState(mParentState, services));
28 
29  //set initial state on all levels
30  this->setInitialState(mParentState);
31  mParentState->setInitialState(patientData);
32 }
33 
35 {}
36 
37 } //namespace cx
cx::CustusXWorkflowStateMachine::~CustusXWorkflowStateMachine
virtual ~CustusXWorkflowStateMachine()
Definition: cxCustusXWorkflowStateMachine.cpp:34
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::WorkflowState
State in a WorkflowStateMachine.
Definition: cxWorkflowState.h:42
cx::VisServicesPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
cx::WorkflowStateMachine
State Machine for the Workflow Steps.
Definition: cxWorkflowStateMachine.h:37
cx::CustusXWorkflowStateMachine::CustusXWorkflowStateMachine
CustusXWorkflowStateMachine(VisServicesPtr services)
Definition: cxCustusXWorkflowStateMachine.cpp:19
cxCustusXWorkflowStates.h
cx::WorkflowStateMachine::newState
virtual WorkflowState * newState(WorkflowState *state)
Definition: cxWorkflowStateMachine.cpp:49
cx::NavigationWorkflowState
Definition: cxCustusXWorkflowStates.h:45
cx::PatientDataWorkflowState
Definition: cxCustusXWorkflowStates.h:31
cx::WorkflowStateMachine::mParentState
WorkflowState * mParentState
Definition: cxWorkflowStateMachine.h:60
cx::RegistrationWorkflowState
Definition: cxCustusXWorkflowStates.h:60
cx::IntraOpImagingWorkflowState
Definition: cxCustusXWorkflowStates.h:93
cx::PreOpPlanningWorkflowState
Definition: cxCustusXWorkflowStates.h:76
cx::PostOpControllWorkflowState
Definition: cxCustusXWorkflowStates.h:110
cxCustusXWorkflowStateMachine.h
cxVisServices.h