VTK  9.2.5
vtkROIStencilSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkROIStencilSource.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
35#ifndef vtkROIStencilSource_h
36#define vtkROIStencilSource_h
37
39#include "vtkImagingStencilModule.h" // For export macro
40
41class VTKIMAGINGSTENCIL_EXPORT vtkROIStencilSource : public vtkImageStencilSource
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
48 enum
49 {
50 BOX = 0,
51 ELLIPSOID = 1,
52 CYLINDERX = 2,
53 CYLINDERY = 3,
54 CYLINDERZ = 4
55 };
56
58
62 vtkGetMacro(Shape, int);
63 vtkSetClampMacro(Shape, int, BOX, CYLINDERZ);
64 void SetShapeToBox() { this->SetShape(BOX); }
65 void SetShapeToEllipsoid() { this->SetShape(ELLIPSOID); }
66 void SetShapeToCylinderX() { this->SetShape(CYLINDERX); }
67 void SetShapeToCylinderY() { this->SetShape(CYLINDERY); }
68 void SetShapeToCylinderZ() { this->SetShape(CYLINDERZ); }
69 virtual const char* GetShapeAsString();
71
73
77 vtkGetVector6Macro(Bounds, double);
78 vtkSetVector6Macro(Bounds, double);
80
81protected:
84
86
87 int Shape;
88 double Bounds[6];
89
90private:
92 void operator=(const vtkROIStencilSource&) = delete;
93};
94
95#endif
generate an image stencil
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
create simple mask shapes
void SetShapeToBox()
The shape of the region of interest.
void SetShapeToCylinderZ()
The shape of the region of interest.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetShapeToCylinderY()
The shape of the region of interest.
void SetShapeToEllipsoid()
The shape of the region of interest.
void SetShapeToCylinderX()
The shape of the region of interest.
static vtkROIStencilSource * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual const char * GetShapeAsString()
The shape of the region of interest.
~vtkROIStencilSource() override