36#ifndef vtkSampleFunction_h
37#define vtkSampleFunction_h
39#include "vtkImagingHybridModule.h"
70 vtkGetMacro(OutputScalarType,
int);
76 {this->SetOutputScalarType(
VTK_LONG);}
80 {this->SetOutputScalarType(
VTK_INT);}
88 {this->SetOutputScalarType(
VTK_CHAR);}
103 vtkGetVectorMacro(SampleDimensions,
int,3);
113 double yMin,
double yMax,
114 double zMin,
double zMax);
115 vtkGetVectorMacro(ModelBounds,
double,6);
125 vtkGetMacro(Capping,
int);
134 vtkGetMacro(CapValue,
double);
142 vtkGetMacro(ComputeNormals,
int);
151 vtkSetStringMacro(ScalarArrayName);
160 vtkSetStringMacro(NormalArrayName);
190 int SampleDimensions[3];
191 double ModelBounds[6];
abstract superclass for arrays of numeric data
general representation of visualization data
Detect and break reference loops.
Generic algorithm superclass for image algs.
abstract interface for implicit functions
a simple class to control print indentation
sample an implicit function over a structured point set
virtual void SetImplicitFunction(vtkImplicitFunction *)
Specify the implicit function to use to generate data.
void SetOutputScalarTypeToShort()
void SetOutputScalarTypeToUnsignedInt()
void SetOutputScalarTypeToUnsignedLong()
void SetOutputScalarTypeToUnsignedShort()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetSampleDimensions(int i, int j, int k)
Specify the dimensions of the data on which to sample.
vtkMTimeType GetMTime()
Return the MTime also considering the implicit function.
vtkSampleFunction()
Default constructor.
void SetOutputScalarTypeToChar()
vtkImplicitFunction * ImplicitFunction
void SetSampleDimensions(int dim[3])
Specify the dimensions of the data on which to sample.
static vtkSampleFunction * New()
Construct with ModelBounds=(-1,1,-1,1,-1,1), SampleDimensions=(50,50,50), Capping turned off,...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void ExecuteDataWithInformation(vtkDataObject *, vtkInformation *)
This is a convenience method that is implemented in many subclasses instead of RequestData.
void SetModelBounds(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
void ReportReferences(vtkGarbageCollector *) override
void SetOutputScalarTypeToLong()
void SetOutputScalarTypeToDouble()
void SetOutputScalarTypeToInt()
void SetOutputScalarTypeToFloat()
void Cap(vtkDataArray *s)
void SetModelBounds(const double bounds[6])
Specify the region in space over which the sampling occurs.
void SetOutputScalarTypeToUnsignedChar()
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
#define VTK_UNSIGNED_LONG