Go to the documentation of this file.
47 #ifndef vtkFastSplatter_h
48 #define vtkFastSplatter_h
76 enum { NoneLimit, ClampLimit,
ScaleLimit, FreezeScaleLimit };
116 double ModelBounds[6];
117 int OutputDimensions[3];
162 T minValue, T maxValue)
164 for (
vtkIdType i = 0; i < arraySize; i++)
166 if (array[i] < minValue) array[i] = minValue;
167 if (array[i] > maxValue) array[i] = maxValue;
175 T minValue, T maxValue,
176 double *dataMinValue,
double *dataMaxValue)
183 for (
int c = 0;
c < numComponents;
c++)
189 for (
t = 1;
t < numTuples;
t++,
a += numComponents)
191 if (min > *
a) min = *
a;
198 for (
t = 0,
a = array+
c;
t < numTuples;
t++,
a += numComponents)
207 for (
t = 0,
a = array+
c;
t < numTuples;
t++,
a += numComponents)
209 *
a = ((maxValue-minValue)*(*
a))/(
max-min);
216 for (
t = 0,
a = array+
c;
t < numTuples;
t++,
a += numComponents)
235 T minValue, T maxValue,
236 double min,
double max)
241 for (
int c = 0;
c < numComponents;
c++)
246 for (
t = 0,
a = array+
c;
t < numTuples;
t++,
a += numComponents)
248 *
a -=
static_cast<T
>(min);
255 for (
t = 0,
a = array+
c;
t < numTuples;
t++,
a += numComponents)
257 *
a =
static_cast<T
>(((maxValue-minValue)*(*
a))/(
max-min));
264 for (
t = 0,
a = array+
c;
t < numTuples;
t++,
a += numComponents)
274 #endif //vtkFastSplatter_h
#define vtkSetVector3Macro(name, type)
#define vtkTypeMacro(thisClass, superclass)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Generic algorithm superclass for image algs.
#define vtkGetVectorMacro(name, type, count)
int NumberOfPointsSplatted
#define VTKIMAGINGHYBRID_EXPORT
virtual ~vtkFastSplatter()
void SetLimitModeToNone()
void vtkFastSplatterFrozenScale(T *array, int numComponents, vtkIdType numTuples, T minValue, T maxValue, double min, double max)
void SetSplatConnection(vtkAlgorithmOutput *)
static vtkFastSplatter * New()
void vtkFastSplatterScale(T *array, int numComponents, vtkIdType numTuples, T minValue, T maxValue, double *dataMinValue, double *dataMaxValue)
#define vtkGetVector3Macro(name, type)
topologically and geometrically regular array of data
a simple class to control print indentation
A splatter optimized for splatting single kernels.
#define vtkGetMacro(name, type)
GLboolean GLboolean GLboolean GLboolean a
void vtkFastSplatterClamp(T *array, vtkIdType arraySize, T minValue, T maxValue)
vtkSetMacro(IgnoreDriverBugs, bool)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetLimitModeToFreezeScale()
Proxy object to connect input/output ports.
#define vtkSetVector6Macro(name, type)
virtual void PrintSelf(ostream &os, vtkIndent indent)
void SetLimitModeToScale()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetLimitModeToClamp()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)