Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSplineVtkMapper3D.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 #ifndef _MITK_SPLINE_VTK_MAPPER_3D__H
18 #define _MITK_SPLINE_VTK_MAPPER_3D__H
19 
20 #include "MitkMapperExtExports.h"
22 
23 class vtkActor;
24 class vtkAssembly;
25 
26 namespace mitk
27 {
44  {
45  public:
47 
48  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
49 
50  virtual vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
51  virtual void UpdateVtkTransform(mitk::BaseRenderer *renderer) override;
52 
53  bool SplinesAreAvailable();
54 
55  vtkPolyData *GetSplinesPolyData();
56 
57  vtkActor *GetSplinesActor();
58 
59  virtual void UpdateSpline();
60 
61  itkSetMacro(SplineResolution, unsigned int);
62 
63  itkGetMacro(SplineResolution, unsigned int);
64 
65  protected:
67 
68  virtual ~SplineVtkMapper3D();
69 
70  virtual void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
71 
72  virtual void ApplyAllProperties(BaseRenderer *renderer, vtkActor *actor) override;
73 
74  vtkActor *m_SplinesActor;
75 
76  vtkPropAssembly *m_SplineAssembly;
77 
79 
81 
82  unsigned int m_SplineResolution;
83 
84  itk::TimeStamp m_SplineUpdateTime;
85  };
86 
87 } // namespace mitk
88 
89 #endif
#define MITKMAPPEREXT_EXPORT
vtkPropAssembly * m_SplineAssembly
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:54
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Vtk-based mapper for PointSet.
Vtk-based mapper for Splines.