VTK
vtkVoxelModeller.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVoxelModeller.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 =========================================================================*/
33 #ifndef vtkVoxelModeller_h
34 #define vtkVoxelModeller_h
35 
36 #include "vtkImagingHybridModule.h" // For export macro
37 #include "vtkImageAlgorithm.h"
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
50  static vtkVoxelModeller *New();
51 
53  double ComputeModelBounds(double origin[3], double ar[3]);
54 
56 
58  void SetSampleDimensions(int i, int j, int k);
59  void SetSampleDimensions(int dim[3]);
60  vtkGetVectorMacro(SampleDimensions,int,3);
62 
64 
66  vtkSetClampMacro(MaximumDistance,double,0.0,1.0);
67  vtkGetMacro(MaximumDistance,double);
69 
71 
73  void SetModelBounds(const double bounds[6]);
74  void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
75  vtkGetVectorMacro(ModelBounds,double,6);
77 
79 
82  vtkSetMacro(ScalarType,int);
83  void SetScalarTypeToFloat(){this->SetScalarType(VTK_FLOAT);};
84  void SetScalarTypeToDouble(){this->SetScalarType(VTK_DOUBLE);};
85  void SetScalarTypeToInt(){this->SetScalarType(VTK_INT);};
87  {this->SetScalarType(VTK_UNSIGNED_INT);};
88  void SetScalarTypeToLong(){this->SetScalarType(VTK_LONG);};
90  {this->SetScalarType(VTK_UNSIGNED_LONG);};
91  void SetScalarTypeToShort(){this->SetScalarType(VTK_SHORT);};
93  {this->SetScalarType(VTK_UNSIGNED_SHORT);};
95  {this->SetScalarType(VTK_UNSIGNED_CHAR);};
97  {this->SetScalarType(VTK_CHAR);};
99  {this->SetScalarType(VTK_BIT);};
100  vtkGetMacro(ScalarType,int);
102 
104 
108  vtkSetMacro(ForegroundValue, double);
109  vtkGetMacro(ForegroundValue, double);
110  vtkSetMacro(BackgroundValue, double);
111  vtkGetMacro(BackgroundValue, double);
112 protected:
116 
117  virtual int RequestInformation (vtkInformation *,
120 
121  // see vtkAlgorithm for details
122  virtual int RequestData(vtkInformation *request,
123  vtkInformationVector** inputVector,
124  vtkInformationVector* outputVector);
125 
126  // see algorithm for more info
128 
129  int SampleDimensions[3];
131  double ModelBounds[6];
135 
136 private:
137  vtkVoxelModeller(const vtkVoxelModeller&); // Not implemented.
138  void operator=(const vtkVoxelModeller&); // Not implemented.
139 };
140 
141 #endif
#define VTK_UNSIGNED_INT
Definition: vtkType.h:32
Store vtkAlgorithm input/output information.
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:30
void SetScalarTypeToDouble()
void SetScalarTypeToUnsignedInt()
#define VTK_DOUBLE
Definition: vtkType.h:36
#define VTK_FLOAT
Definition: vtkType.h:35
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_SHORT
Definition: vtkType.h:29
#define VTK_CHAR
Definition: vtkType.h:26
#define VTK_LONG
Definition: vtkType.h:33
convert an arbitrary dataset to a voxel representation
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:28
#define VTK_BIT
Definition: vtkType.h:25
void SetScalarTypeToUnsignedShort()
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
#define VTK_UNSIGNED_LONG
Definition: vtkType.h:34
#define VTKIMAGINGHYBRID_EXPORT
void SetScalarTypeToUnsignedLong()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetScalarTypeToUnsignedChar()
#define VTK_INT
Definition: vtkType.h:31