VMTK
Loading...
Searching...
No Matches
Misc
vtkvmtkImageBoxPainter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: VMTK
4
5
Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6
See LICENSE file for details.
7
8
Portions of this code are covered under the VTK copyright.
9
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10
for details.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
32
33
#ifndef __vtkvmtkImageBoxPainter_h
34
#define __vtkvmtkImageBoxPainter_h
35
36
#include "vtkSimpleImageToImageFilter.h"
37
#include "vtkvmtkWin32Header.h"
38
39
class
VTK_VMTK_MISC_EXPORT
vtkvmtkImageBoxPainter
:
public
vtkSimpleImageToImageFilter
40
{
41
public
:
42
static
vtkvmtkImageBoxPainter
*
New
();
43
vtkTypeMacro(
vtkvmtkImageBoxPainter
,vtkSimpleImageToImageFilter);
44
46
49
vtkGetMacro(
PaintValue
,
double
);
50
vtkSetMacro(
PaintValue
,
double
);
52
54
59
vtkGetVectorMacro(
BoxBounds
,
double
,6);
60
vtkSetVectorMacro(
BoxBounds
,
double
,6);
62
64
70
vtkGetVectorMacro(
BoxExtent
,
int
,6);
71
vtkSetVectorMacro(
BoxExtent
,
int
,6);
73
75
80
vtkGetMacro(
BoxDefinition
,
int
);
81
vtkSetMacro(
BoxDefinition
,
int
);
83
87
void
SetBoxDefinitionToUseExtent
()
88
{ this->
BoxDefinition
=
vtkvmtkImageBoxPainter::USE_EXTENT
; }
89
93
void
SetBoxDefinitionToUseBounds
()
94
{ this->
BoxDefinition
=
vtkvmtkImageBoxPainter::USE_BOUNDS
; }
95
96
protected
:
97
98
vtkvmtkImageBoxPainter
();
99
~vtkvmtkImageBoxPainter
() {};
100
101
virtual
void
SimpleExecute(vtkImageData* input, vtkImageData* output)
override
;
102
103
double
PaintValue
;
104
double
BoxBounds
[6];
105
int
BoxExtent
[6];
106
107
int
BoxDefinition
;
108
//BTX
109
enum
110
{
111
USE_BOUNDS
,
112
USE_EXTENT
113
};
114
//ETX
115
116
private
:
117
vtkvmtkImageBoxPainter
(
const
vtkvmtkImageBoxPainter
&);
// Not implemented.
118
void
operator=(
const
vtkvmtkImageBoxPainter
&);
// Not implemented.
119
};
120
121
#endif
122
123
124
125
126
127
128
vtkvmtkImageBoxPainter
Create a box shaped sub-volume within a 3D image and paint (assign a value to) every sub-volume eleme...
Definition
vtkvmtkImageBoxPainter.h:40
vtkvmtkImageBoxPainter::SetBoxDefinitionToUseExtent
void SetBoxDefinitionToUseExtent()
Definition
vtkvmtkImageBoxPainter.h:87
vtkvmtkImageBoxPainter::USE_EXTENT
@ USE_EXTENT
Definition
vtkvmtkImageBoxPainter.h:112
vtkvmtkImageBoxPainter::USE_BOUNDS
@ USE_BOUNDS
Definition
vtkvmtkImageBoxPainter.h:111
vtkvmtkImageBoxPainter::New
static vtkvmtkImageBoxPainter * New()
vtkvmtkImageBoxPainter::BoxExtent
int BoxExtent[6]
Definition
vtkvmtkImageBoxPainter.h:105
vtkvmtkImageBoxPainter::~vtkvmtkImageBoxPainter
~vtkvmtkImageBoxPainter()
Definition
vtkvmtkImageBoxPainter.h:99
vtkvmtkImageBoxPainter::vtkvmtkImageBoxPainter
vtkvmtkImageBoxPainter()
Definition
vtkvmtkImageBoxPainter.cxx:32
vtkvmtkImageBoxPainter::BoxBounds
double BoxBounds[6]
Definition
vtkvmtkImageBoxPainter.h:104
vtkvmtkImageBoxPainter::SetBoxDefinitionToUseBounds
void SetBoxDefinitionToUseBounds()
Definition
vtkvmtkImageBoxPainter.h:93
vtkvmtkImageBoxPainter::PaintValue
double PaintValue
Definition
vtkvmtkImageBoxPainter.h:103
vtkvmtkImageBoxPainter::BoxDefinition
int BoxDefinition
Definition
vtkvmtkImageBoxPainter.h:107
Generated by
1.15.0