KWWidgets
vtkKWStateMachineInput.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Module: $RCSfile: vtkKWStateMachineInput.h,v $
4 
5  Copyright (c) Kitware, Inc.
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 // .NAME vtkKWStateMachineInput - a state machine input.
15 // .SECTION Description
16 // This class is the basis for a state machine input.
17 // A state machine is defined by a set of states, a set of inputs and a
18 // transition matrix that defines for each pair of (state,input) what is
19 // the next state to assume.
20 // .SECTION Thanks
21 // This work is part of the National Alliance for Medical Image
22 // Computing (NAMIC), funded by the National Institutes of Health
23 // through the NIH Roadmap for Medical Research, Grant U54 EB005149.
24 // Information on the National Centers for Biomedical Computing
25 // can be obtained from http://nihroadmap.nih.gov/bioinformatics.
26 // .SECTION See Also
27 // vtkKWStateMachine vtkKWStateMachineState vtkKWStateMachineTransition
28 
29 #ifndef __vtkKWStateMachineInput_h
30 #define __vtkKWStateMachineInput_h
31 
32 #include "vtkKWObject.h"
33 
35 {
36 public:
37  static vtkKWStateMachineInput* New();
38  vtkTypeRevisionMacro(vtkKWStateMachineInput, vtkKWObject);
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
41  // Description:
42  // Get id.
43  vtkGetMacro(Id, vtkIdType);
44 
45  // Description:
46  // Set/Get simple name.
47  vtkGetStringMacro(Name);
48  vtkSetStringMacro(Name);
49 
50 protected:
53 
54  vtkIdType Id;
55  char *Name;
56 
57 private:
58 
59  static vtkIdType IdCounter;
60 
61  vtkKWStateMachineInput(const vtkKWStateMachineInput&); // Not implemented
62  void operator=(const vtkKWStateMachineInput&); // Not implemented
63 };
64 
65 #endif