Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkSplineVtkMapper3D_h
14 #define mitkSplineVtkMapper3D_h
15 
16 #include "MitkMapperExtExports.h"
18 
19 class vtkActor;
20 class vtkAssembly;
21 
22 namespace mitk
23 {
40  {
41  public:
43 
44  itkFactorylessNewMacro(Self);
45 
46  itkCloneMacro(Self);
47 
48  vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
49  void UpdateVtkTransform(mitk::BaseRenderer *renderer) override;
50 
51  bool SplinesAreAvailable();
52 
53  vtkPolyData *GetSplinesPolyData();
54 
55  vtkActor *GetSplinesActor();
56 
57  virtual void UpdateSpline();
58 
59  itkSetMacro(SplineResolution, unsigned int);
60 
61  itkGetMacro(SplineResolution, unsigned int);
62 
63  protected:
65 
66  ~SplineVtkMapper3D() override;
67 
68  void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override;
69 
70  void ApplyAllProperties(BaseRenderer *renderer, vtkActor *actor) override;
71 
72  vtkActor *m_SplinesActor;
73 
74  vtkPropAssembly *m_SplineAssembly;
75 
77 
79 
80  unsigned int m_SplineResolution;
81 
82  itk::TimeStamp m_SplineUpdateTime;
83  };
84 
85 } // namespace mitk
86 
87 #endif
mitk::SplineVtkMapper3D
Vtk-based mapper for Splines.
Definition: mitkSplineVtkMapper3D.h:39
MitkMapperExtExports.h
mitk::SplineVtkMapper3D::m_SplinesAddedToAssembly
bool m_SplinesAddedToAssembly
Definition: mitkSplineVtkMapper3D.h:78
mitk::SplineVtkMapper3D::m_SplinesAvailable
bool m_SplinesAvailable
Definition: mitkSplineVtkMapper3D.h:76
mitk::SplineVtkMapper3D::m_SplineUpdateTime
itk::TimeStamp m_SplineUpdateTime
Definition: mitkSplineVtkMapper3D.h:82
mitk::SplineVtkMapper3D::m_SplinesActor
vtkActor * m_SplinesActor
Definition: mitkSplineVtkMapper3D.h:72
mitkPointSetVtkMapper3D.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PointSetVtkMapper3D
Vtk-based mapper for PointSet.
Definition: mitkPointSetVtkMapper3D.h:90
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:46
mitk::SplineVtkMapper3D::m_SplineAssembly
vtkPropAssembly * m_SplineAssembly
Definition: mitkSplineVtkMapper3D.h:74
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::SplineVtkMapper3D::m_SplineResolution
unsigned int m_SplineResolution
Definition: mitkSplineVtkMapper3D.h:80
MITKMAPPEREXT_EXPORT
#define MITKMAPPEREXT_EXPORT
Definition: MitkMapperExtExports.h:15