Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkPlanarFigureVtkMapper3D.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 mitkPlanarFigureVtkMapper3D_h
14
#define mitkPlanarFigureVtkMapper3D_h
15
16
#include <
MitkPlanarFigureExports.h
>
17
#include <
mitkVtkMapper.h
>
18
#include <vtkSmartPointer.h>
19
20
namespace
mitk
21
{
22
class
MITKPLANARFIGURE_EXPORT
PlanarFigureVtkMapper3D
:
public
VtkMapper
23
{
24
class
LocalStorage
25
{
26
public
:
27
LocalStorage();
28
~LocalStorage();
29
30
vtkSmartPointer<vtkActor>
m_Actor;
31
unsigned
long
m_LastMTime;
32
33
private
:
34
LocalStorage(
const
LocalStorage &);
35
LocalStorage &operator=(
const
LocalStorage &);
36
};
37
38
public
:
39
static
void
SetDefaultProperties
(
DataNode
*,
BaseRenderer
* =
nullptr
,
bool
=
false
);
40
41
mitkClassMacro
(
PlanarFigureVtkMapper3D
,
VtkMapper
);
42
itkFactorylessNewMacro(
Self
);
43
itkCloneMacro(
Self
);
44
45
void
ApplyColorAndOpacityProperties(
BaseRenderer
*renderer, vtkActor *actor)
override
;
46
void
ApplyPlanarFigureProperties(
BaseRenderer
*renderer, vtkActor *actor);
47
vtkProp *GetVtkProp(
BaseRenderer
*renderer)
override
;
48
void
UpdateVtkTransform(
BaseRenderer
*)
override
;
49
50
private
:
51
PlanarFigureVtkMapper3D
();
52
~
PlanarFigureVtkMapper3D
()
override
;
53
54
PlanarFigureVtkMapper3D
(
const
Self
&);
55
Self
&operator=(
const
Self
&);
56
57
void
GenerateDataForRenderer(
BaseRenderer
*renderer)
override
;
58
59
LocalStorageHandler<LocalStorage>
m_LocalStorageHandler;
60
bool
m_FillPf;
61
};
62
}
63
64
#endif
MitkPlanarFigureExports.h
MITKPLANARFIGURE_EXPORT
#define MITKPLANARFIGURE_EXPORT
Definition:
MitkPlanarFigureExports.h:15
vtkSmartPointer< vtkActor >
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::LocalStorageHandler< LocalStorage >
mitk::Mapper
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition:
mitkMapper.h:46
mitk::VtkMapper
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition:
mitkVtkMapper.h:47
mitk::PlanarFigureVtkMapper3D
Definition:
mitkPlanarFigureVtkMapper3D.h:22
mitkVtkMapper.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
mitk::BaseRenderer
Definition:
mitkBaseRenderer.h:56
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:63
mitk::ROIMapperHelper::SetDefaultProperties
void SetDefaultProperties(DataNode *node, BaseRenderer *renderer, bool override)
Set common default properties for both 2-d and 3-d ROI mappers.
src
MITK
Modules
PlanarFigure
include
mitkPlanarFigureVtkMapper3D.h
Generated on Sat Nov 23 2024 02:13:13 for Medical Imaging Interaction Toolkit by
1.8.17