46 #include "vtkFiltersGeneralModule.h"
47 #include "vtkDataSetAlgorithm.h"
49 #define VTK_DICE_MODE_NUMBER_OF_POINTS 0
50 #define VTK_DICE_MODE_SPECIFIED_NUMBER 1
51 #define VTK_DICE_MODE_MEMORY_LIMIT 2
53 class VTKFILTERSGENERAL_EXPORT
vtkDicer :
public vtkDataSetAlgorithm
57 void PrintSelf(ostream& os, vtkIndent indent);
65 vtkSetMacro(FieldData,
int);
66 vtkGetMacro(FieldData,
int);
67 vtkBooleanMacro(FieldData,
int);
74 vtkGetMacro(DiceMode,
int);
86 vtkGetMacro(NumberOfActualPieces,
int);
93 vtkSetClampMacro(NumberOfPointsPerPiece,
int,1000,VTK_INT_MAX);
94 vtkGetMacro(NumberOfPointsPerPiece,
int);
103 vtkSetClampMacro(NumberOfPieces,
int,1,VTK_INT_MAX);
104 vtkGetMacro(NumberOfPieces,
int);
111 vtkSetClampMacro(MemoryLimit,
unsigned long,100,VTK_INT_MAX);
112 vtkGetMacro(MemoryLimit,
unsigned long);
119 virtual void UpdatePieceMeasures(vtkDataSet *input);
void SetDiceModeToSpecifiedNumberOfPieces()
abstract superclass to divide dataset into pieces
unsigned long MemoryLimit
void SetDiceModeToNumberOfPointsPerPiece()
#define VTK_DICE_MODE_NUMBER_OF_POINTS
int NumberOfPointsPerPiece
#define VTK_DICE_MODE_SPECIFIED_NUMBER
#define VTK_DICE_MODE_MEMORY_LIMIT
void SetDiceModeToMemoryLimitPerPiece()