52#ifndef vtkFastSplatter_h
53#define vtkFastSplatter_h
56#include "vtkImagingHybridModule.h"
58VTK_ABI_NAMESPACE_BEGIN
177 for (
vtkIdType i = 0; i < arraySize; i++)
179 if (array[i] < minValue)
181 if (array[i] > maxValue)
191 double* dataMinValue,
double* dataMaxValue)
198 for (
int c = 0; c < numComponents; c++)
204 for (t = 1; t < numTuples; t++, a += numComponents)
215 for (t = 0, a = array + c; t < numTuples; t++, a += numComponents)
224 for (t = 0, a = array + c; t < numTuples; t++, a += numComponents)
226 *a = ((maxValue - minValue) * (*a)) / (
max - min);
233 for (t = 0, a = array + c; t < numTuples; t++, a += numComponents)
251 T* array,
int numComponents,
vtkIdType numTuples, T minValue, T maxValue,
double min,
double max)
256 for (
int c = 0; c < numComponents; c++)
261 for (t = 0, a = array + c; t < numTuples; t++, a += numComponents)
263 *a -=
static_cast<T
>(min);
270 for (t = 0, a = array + c; t < numTuples; t++, a += numComponents)
272 *a =
static_cast<T
>(((maxValue - minValue) * (*a)) / (
max - min));
279 for (t = 0, a = array + c; t < numTuples; t++, a += numComponents)
Proxy object to connect input/output ports.
int NumberOfPointsSplatted
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLimitModeToFreezeScale()
Set/get the way voxel values will be limited.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
void SetLimitModeToNone()
Set/get the way voxel values will be limited.
virtual void SetLimitMode(int)
Set/get the way voxel values will be limited.
void SetLimitModeToClamp()
Set/get the way voxel values will be limited.
static vtkFastSplatter * New()
void SetSplatConnection(vtkAlgorithmOutput *)
Convenience function for connecting the splat algorithm source.
void SetLimitModeToScale()
Set/get the way voxel values will be limited.
~vtkFastSplatter() override
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
topologically and geometrically regular array of data
a simple class to control print indentation
#define VTK_DEPRECATED_IN_9_6_0(reason)
void vtkFastSplatterClamp(T *array, vtkIdType arraySize, T minValue, T maxValue)
void vtkFastSplatterFrozenScale(T *array, int numComponents, vtkIdType numTuples, T minValue, T maxValue, double min, double max)
void vtkFastSplatterScale(T *array, int numComponents, vtkIdType numTuples, T minValue, T maxValue, double *dataMinValue, double *dataMaxValue)