NorMIT-nav
22.09
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
12
#include "
cxCustusXWorkflowStateMachine.h
"
13
#include "
cxCustusXWorkflowStates.h
"
14
#include "
cxVisServices.h
"
15
16
namespace
cx
17
{
18
19
CustusXWorkflowStateMachine::CustusXWorkflowStateMachine
(
VisServicesPtr
services) :
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));
26
this->
newState
(
new
IntraOpImagingWorkflowState
(
mParentState
, services));
27
this->
newState
(
new
PostOpControllWorkflowState
(
mParentState
, services));
28
29
//set initial state on all levels
30
this->setInitialState(
mParentState
);
31
mParentState
->setInitialState(patientData);
32
}
33
34
CustusXWorkflowStateMachine::~CustusXWorkflowStateMachine
()
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
CX
source
plugins
org.custusx.core.state
cxCustusXWorkflowStateMachine.cpp
Generated on Tue Sep 13 2022 11:06:13 for NorMIT-nav by
1.8.17