Fraxinus  18.10
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
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
CustusXWorkflowStateMachine(VisServicesPtr services)
virtual WorkflowState * newState(WorkflowState *state)
State in a WorkflowStateMachine.
State Machine for the Workflow Steps.
Namespace for all CustusX production code.