VTK
vtkTransformToGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTransformToGrid.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 =========================================================================*/
29 #ifndef vtkTransformToGrid_h
30 #define vtkTransformToGrid_h
31 
32 #include "vtkFiltersHybridModule.h" // For export macro
33 #include "vtkAlgorithm.h"
34 #include "vtkImageData.h" // makes things a bit easier
35 
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
50 
52 
53  vtkSetVector6Macro(GridExtent,int);
54  vtkGetVector6Macro(GridExtent,int);
56 
58 
59  vtkSetVector3Macro(GridOrigin,double);
60  vtkGetVector3Macro(GridOrigin,double);
62 
64 
65  vtkSetVector3Macro(GridSpacing,double);
66  vtkGetVector3Macro(GridSpacing,double);
68 
70 
71  vtkSetMacro(GridScalarType,int);
72  vtkGetMacro(GridScalarType,int);
73  void SetGridScalarTypeToDouble(){this->SetGridScalarType(VTK_DOUBLE);};
74  void SetGridScalarTypeToFloat(){this->SetGridScalarType(VTK_FLOAT);};
75  void SetGridScalarTypeToShort(){this->SetGridScalarType(VTK_SHORT);};
77  {this->SetGridScalarType(VTK_UNSIGNED_SHORT);};
79  {this->SetGridScalarType(VTK_UNSIGNED_CHAR);};
81  {this->SetGridScalarType(VTK_CHAR);};
83 
85 
89  this->UpdateShiftScale(); return this->DisplacementScale; };
91  this->UpdateShiftScale(); return this->DisplacementShift; };
93 
96 
98 
103 
104 protected:
107 
110 
113 
117 
118  unsigned long GetMTime();
119 
121 
123  int GridExtent[6];
124  double GridOrigin[3];
125  double GridSpacing[3];
126 
130 
131  // see algorithm for more info
133 
134 private:
135  vtkTransformToGrid(const vtkTransformToGrid&); // Not implemented.
136  void operator=(const vtkTransformToGrid&); // Not implemented.
137 };
138 
139 #endif
vtkTransformToGrid::RequestInformation
void RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGetVector6Macro
#define vtkGetVector6Macro(name, type)
Definition: vtkSetGet.h:380
vtkImageData.h
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkTransformToGrid
create a grid for a vtkGridTransform
Definition: vtkTransformToGrid.h:39
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:50
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkTransformToGrid::SetGridScalarTypeToUnsignedChar
void SetGridScalarTypeToUnsignedChar()
Definition: vtkTransformToGrid.h:78
vtkTransformToGrid::GridScalarType
int GridScalarType
Definition: vtkTransformToGrid.h:122
vtkTransformToGrid::GetDisplacementScale
double GetDisplacementScale()
Definition: vtkTransformToGrid.h:88
vtkTransformToGrid::GetOutput
vtkImageData * GetOutput()
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTransformToGrid::Input
vtkAbstractTransform * Input
Definition: vtkTransformToGrid.h:120
VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_SHORT
Definition: vtkType.h:30
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTransformToGrid::New
static vtkTransformToGrid * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkTransformToGrid::UpdateShiftScale
void UpdateShiftScale()
vtkTransformToGrid::SetGridScalarTypeToShort
void SetGridScalarTypeToShort()
Definition: vtkTransformToGrid.h:75
vtkTransformToGrid::SetGridScalarTypeToUnsignedShort
void SetGridScalarTypeToUnsignedShort()
Definition: vtkTransformToGrid.h:76
vtkTransformToGrid::SetGridScalarTypeToFloat
void SetGridScalarTypeToFloat()
Definition: vtkTransformToGrid.h:74
vtkTransformToGrid::GetMTime
unsigned long GetMTime()
vtkTransformToGrid::DisplacementShift
double DisplacementShift
Definition: vtkTransformToGrid.h:128
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
VTKFILTERSHYBRID_EXPORT
#define VTKFILTERSHYBRID_EXPORT
Definition: vtkFiltersHybridModule.h:15
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkTransformToGrid::~vtkTransformToGrid
~vtkTransformToGrid()
vtkTransformToGrid::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
VTK_CHAR
#define VTK_CHAR
Definition: vtkType.h:26
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTransformToGrid::RequestData
void RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTK_FLOAT
#define VTK_FLOAT
Definition: vtkType.h:35
VTK_DOUBLE
#define VTK_DOUBLE
Definition: vtkType.h:36
VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_CHAR
Definition: vtkType.h:28
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkTransformToGrid::SetGridScalarTypeToChar
void SetGridScalarTypeToChar()
Definition: vtkTransformToGrid.h:80
vtkTransformToGrid::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkTransformToGrid::SetGridScalarTypeToDouble
void SetGridScalarTypeToDouble()
Definition: vtkTransformToGrid.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkTransformToGrid::GetDisplacementShift
double GetDisplacementShift()
Definition: vtkTransformToGrid.h:90
VTK_SHORT
#define VTK_SHORT
Definition: vtkType.h:29
vtkFiltersHybridModule.h
vtkTransformToGrid::vtkTransformToGrid
vtkTransformToGrid()
vtkSetVector6Macro
#define vtkSetVector6Macro(name, type)
Definition: vtkSetGet.h:360
vtkTransformToGrid::SetInput
virtual void SetInput(vtkAbstractTransform *)
vtkTransformToGrid::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTransformToGrid::DisplacementScale
double DisplacementScale
Definition: vtkTransformToGrid.h:127
vtkTransformToGrid::ShiftScaleTime
vtkTimeStamp ShiftScaleTime
Definition: vtkTransformToGrid.h:129