VTK
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 =========================================================================*/
31 #ifndef vtkROIStencilSource_h
32 #define vtkROIStencilSource_h
33 
34 
35 #include "vtkImagingStencilModule.h" // For export macro
36 #include "vtkImageStencilSource.h"
37 
39 {
40 public:
41  static vtkROIStencilSource *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
45 //BTX
46  enum {
47  BOX = 0,
48  ELLIPSOID = 1,
49  CYLINDERX = 2,
50  CYLINDERY = 3,
51  CYLINDERZ = 4
52  };
53 //ETX
54 
56 
58  vtkGetMacro(Shape, int);
59  vtkSetClampMacro(Shape, int, BOX, CYLINDERZ);
60  void SetShapeToBox() { this->SetShape(BOX); };
61  void SetShapeToEllipsoid() { this->SetShape(ELLIPSOID); };
62  void SetShapeToCylinderX() { this->SetShape(CYLINDERX); };
63  void SetShapeToCylinderY() { this->SetShape(CYLINDERY); };
64  void SetShapeToCylinderZ() { this->SetShape(CYLINDERZ); };
65  virtual const char *GetShapeAsString();
67 
69 
71  vtkGetVector6Macro(Bounds, double);
72  vtkSetVector6Macro(Bounds, double);
74 
75 protected:
78 
81 
82  int Shape;
83  double Bounds[6];
84 
85 private:
86  vtkROIStencilSource(const vtkROIStencilSource&); // Not implemented.
87  void operator=(const vtkROIStencilSource&); // Not implemented.
88 };
89 
90 #endif
Store vtkAlgorithm input/output information.
static vtkImageStencilSource * New()
create simple mask shapes
#define VTKIMAGINGSTENCIL_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
generate an image stencil