VTK
vtkShepardMethod.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkShepardMethod.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 =========================================================================*/
42 #ifndef vtkShepardMethod_h
43 #define vtkShepardMethod_h
44 
45 #include "vtkImagingHybridModule.h" // For export macro
46 #include "vtkImageAlgorithm.h"
47 
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
57  static vtkShepardMethod *New();
58 
60  double ComputeModelBounds(double origin[3], double ar[3]);
61 
63 
64  vtkGetVectorMacro(SampleDimensions,int,3);
66 
68  void SetSampleDimensions(int i, int j, int k);
69 
71  void SetSampleDimensions(int dim[3]);
72 
74 
79  vtkSetClampMacro(MaximumDistance,double,0.0,1.0);
80  vtkGetMacro(MaximumDistance,double);
82 
84 
85  vtkSetVector6Macro(ModelBounds,double);
86  vtkGetVectorMacro(ModelBounds,double,6);
88 
90 
92  vtkSetMacro(NullValue,double);
93  vtkGetMacro(NullValue,double);
95 
96 protected:
99 
103 
104  // see vtkAlgorithm for details
105  virtual int RequestData(vtkInformation *request,
106  vtkInformationVector** inputVector,
107  vtkInformationVector* outputVector);
108 
109  // see algorithm for more info
111 
112  int SampleDimensions[3];
114  double ModelBounds[6];
115  double NullValue;
116 private:
117  vtkShepardMethod(const vtkShepardMethod&); // Not implemented.
118  void operator=(const vtkShepardMethod&); // Not implemented.
119 };
120 
121 #endif
122 
123 
vtkShepardMethod
sample unstructured points onto structured points using the method of Shepard
Definition: vtkShepardMethod.h:49
vtkShepardMethod::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkShepardMethod::New
static vtkShepardMethod * New()
vtkShepardMethod::~vtkShepardMethod
~vtkShepardMethod()
Definition: vtkShepardMethod.h:98
vtkShepardMethod::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkShepardMethod::vtkShepardMethod
vtkShepardMethod()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageAlgorithm.h
vtkShepardMethod::SetSampleDimensions
void SetSampleDimensions(int i, int j, int k)
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImagingHybridModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
VTKIMAGINGHYBRID_EXPORT
#define VTKIMAGINGHYBRID_EXPORT
Definition: vtkImagingHybridModule.h:15
vtkShepardMethod::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkShepardMethod::ComputeModelBounds
double ComputeModelBounds(double origin[3], double ar[3])
vtkShepardMethod::SetSampleDimensions
void SetSampleDimensions(int dim[3])
vtkShepardMethod::MaximumDistance
double MaximumDistance
Definition: vtkShepardMethod.h:113
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkShepardMethod::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkShepardMethod::NullValue
double NullValue
Definition: vtkShepardMethod.h:115
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkSetVector6Macro
#define vtkSetVector6Macro(name, type)
Definition: vtkSetGet.h:360