Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVirtualTrackingTool.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef MITKVirtualTrackingTool_H_HEADER_INCLUDED_
19 #define MITKVirtualTrackingTool_H_HEADER_INCLUDED_
20 
22 #include <MitkIGTExports.h>
23 #include <mitkNumericTypes.h>
24 #include <itkFastMutexLock.h>
26 
27 namespace mitk {
28 
29 
40  class MITKIGT_EXPORT VirtualTrackingTool : public InternalTrackingTool
41  {
42  public:
44  friend class VirtualTrackingDevice;
45  itkFactorylessNewMacro(Self)
46  typedef itk::NonUniformBSpline<3> SplineType;
47 
48  itkGetMacro(SplineLength, mitk::ScalarType);
49  itkSetMacro(SplineLength, mitk::ScalarType);
50 
51  itkGetMacro(Velocity, mitk::ScalarType);
52  itkSetMacro(Velocity, mitk::ScalarType);
53 
54  itkGetObjectMacro(Spline, SplineType);
55 
56 
57  protected:
58  itkCloneMacro(Self)
60  virtual ~VirtualTrackingTool();
61 
62  SplineType::Pointer m_Spline;
63  mitk::ScalarType m_SplineLength;
64  mitk::ScalarType m_Velocity;
65  };
66 } // namespace mitk
67 #endif /* MITKVirtualTrackingTool_H_HEADER_INCLUDED_ */
double ScalarType
DataCollection - Class to facilitate loading/accessing structured data.
implements TrackingTool interface
BSpline with nonuniform knot spacing.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
implements TrackingTool interface
Class representing a tracking device which generates random positions / orientations. No hardware is needed for tracking device.