VTK  9.7.20260731
vtkFastSplatter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3// SPDX-License-Identifier: BSD-3-Clause
51
52#ifndef vtkFastSplatter_h
53#define vtkFastSplatter_h
54
55#include "vtkImageAlgorithm.h"
56#include "vtkImagingHybridModule.h" // For export macro
57
58VTK_ABI_NAMESPACE_BEGIN
59class VTKIMAGINGHYBRID_EXPORT vtkFastSplatter : public vtkImageAlgorithm
60{
61public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65
67
73 vtkSetVector6Macro(ModelBounds, double);
74 vtkGetVectorMacro(ModelBounds, double, 6);
76
78
81 vtkSetVector3Macro(OutputDimensions, int);
82 vtkGetVector3Macro(OutputDimensions, int);
84
85 enum
86 {
91 };
92
94
100 vtkSetMacro(LimitMode, int);
101 vtkGetMacro(LimitMode, int);
107
109
112 vtkSetMacro(MinValue, double);
113 vtkGetMacro(MinValue, double);
114 vtkSetMacro(MaxValue, double);
115 vtkGetMacro(MaxValue, double);
117
119
123 vtkGetMacro(NumberOfPointsSplatted, int);
125
132
133protected:
136
137 double ModelBounds[6];
139
141 double MinValue;
142 double MaxValue;
144
146
147 int FillInputPortInformation(int port, vtkInformation* info) override;
151
152 // Used internally for converting points in world space to indices in
153 // the output image.
154 double Origin[3];
155 double Spacing[3];
156
157 // This is updated every time the filter executes
159
160 // Used internally to track the data range. When the limit mode is
161 // set to FreezeScale, the data will be scaled as if this were the
162 // range regardless of what it actually is.
165
166private:
167 vtkFastSplatter(const vtkFastSplatter&) = delete;
168 void operator=(const vtkFastSplatter&) = delete;
169};
170
171VTK_ABI_NAMESPACE_END
172#endif // vtkFastSplatter_h
Proxy object to connect input/output ports.
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 ...
vtkImageData * Buckets
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
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.