VTK
vtkVoxelGrid.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkVoxelGrid.h
5
6 Copyright (c) Kitware, Inc.
7 All rights reserved.
8 See LICENSE file 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=========================================================================*/
50#ifndef vtkVoxelGrid_h
51#define vtkVoxelGrid_h
52
53#include "vtkFiltersPointsModule.h" // For export macro
55
58
59
60class VTKFILTERSPOINTS_EXPORT vtkVoxelGrid : public vtkPolyDataAlgorithm
61{
62public:
64
68 static vtkVoxelGrid *New();
70 void PrintSelf(ostream& os, vtkIndent indent);
72
76 enum Style
77 {
78 MANUAL=0,
79 SPECIFY_LEAF_SIZE=1,
80 AUTOMATIC=2
81 };
82
84
92 vtkSetMacro(ConfigurationStyle,int);
93 vtkGetMacro(ConfigurationStyle,int);
95 { this->SetConfigurationStyle(MANUAL); }
97 { this->SetConfigurationStyle(SPECIFY_LEAF_SIZE); }
99 { this->SetConfigurationStyle(AUTOMATIC); }
101
103
108 vtkSetVector3Macro(Divisions,int);
109 vtkGetVectorMacro(Divisions,int,3);
111
113
119 vtkSetVector3Macro(LeafSize,double);
120 vtkGetVectorMacro(LeafSize,double,3);
122
124
130 vtkSetClampMacro(NumberOfPointsPerBin,int,1,VTK_INT_MAX);
131 vtkGetMacro(NumberOfPointsPerBin,int);
133
135
141 vtkGetObjectMacro(Kernel,vtkInterpolationKernel);
143
144protected:
147
150
151 int Divisions[3];
152 double LeafSize[3];
155
159
160private:
161 vtkVoxelGrid(const vtkVoxelGrid&) VTK_DELETE_FUNCTION;
162 void operator=(const vtkVoxelGrid&) VTK_DELETE_FUNCTION;
163
164};
165
166#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
base class for interpolation kernels
Superclass for algorithms that produce only polydata as output.
quickly locate points in 3-space
subsample points using uniform binning
Definition: vtkVoxelGrid.h:61
void SetConfigurationStyleToLeafSize()
Definition: vtkVoxelGrid.h:96
Style
This enum is used to configure the operation of the filter.
Definition: vtkVoxelGrid.h:77
vtkInterpolationKernel * Kernel
Definition: vtkVoxelGrid.h:154
void SetConfigurationStyleToManual()
Definition: vtkVoxelGrid.h:94
void SetKernel(vtkInterpolationKernel *kernel)
Specify an interpolation kernel to combine the point attributes.
int NumberOfPointsPerBin
Definition: vtkVoxelGrid.h:153
void SetConfigurationStyleToAutomatic()
Definition: vtkVoxelGrid.h:98
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int ConfigurationStyle
Definition: vtkVoxelGrid.h:149
static vtkVoxelGrid * New()
Standard methods for instantiating, obtaining type information, and printing information.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkStaticPointLocator * Locator
Definition: vtkVoxelGrid.h:148
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_INT_MAX
Definition: vtkType.h:153