VTK  9.1.0
vtkDicer.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDicer.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm 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=========================================================================*/
44#ifndef vtkDicer_h
45#define vtkDicer_h
46
47#include "vtkDataSetAlgorithm.h"
48#include "vtkFiltersGeneralModule.h" // For export macro
49
50#define VTK_DICE_MODE_NUMBER_OF_POINTS 0
51#define VTK_DICE_MODE_SPECIFIED_NUMBER 1
52#define VTK_DICE_MODE_MEMORY_LIMIT 2
53
54class VTKFILTERSGENERAL_EXPORT vtkDicer : public vtkDataSetAlgorithm
55{
56public:
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
61
68 vtkSetMacro(FieldData, vtkTypeBool);
69 vtkGetMacro(FieldData, vtkTypeBool);
70 vtkBooleanMacro(FieldData, vtkTypeBool);
72
74
79 vtkGetMacro(DiceMode, int);
84
86
91 vtkGetMacro(NumberOfActualPieces, int);
93
95
100 vtkSetClampMacro(NumberOfPointsPerPiece, int, 1000, VTK_INT_MAX);
101 vtkGetMacro(NumberOfPointsPerPiece, int);
103
105
113 vtkSetClampMacro(NumberOfPieces, int, 1, VTK_INT_MAX);
114 vtkGetMacro(NumberOfPieces, int);
116
118
124 vtkSetClampMacro(MemoryLimit, unsigned long, 100, VTK_INT_MAX);
125 vtkGetMacro(MemoryLimit, unsigned long);
127
128protected:
130 ~vtkDicer() override = default;
131
132 virtual void UpdatePieceMeasures(vtkDataSet* input);
133
136 unsigned long MemoryLimit;
140
141private:
142 vtkDicer(const vtkDicer&) = delete;
143 void operator=(const vtkDicer&) = delete;
144};
145
146#endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
abstract superclass to divide dataset into pieces
Definition: vtkDicer.h:55
~vtkDicer() override=default
unsigned long MemoryLimit
Definition: vtkDicer.h:136
void SetDiceModeToSpecifiedNumberOfPieces()
Specify the method to determine how many pieces the data should be broken into.
Definition: vtkDicer.h:81
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int DiceMode
Definition: vtkDicer.h:139
virtual void UpdatePieceMeasures(vtkDataSet *input)
int NumberOfPointsPerPiece
Definition: vtkDicer.h:134
vtkTypeBool FieldData
Definition: vtkDicer.h:138
int NumberOfActualPieces
Definition: vtkDicer.h:137
void SetDiceModeToMemoryLimitPerPiece()
Specify the method to determine how many pieces the data should be broken into.
Definition: vtkDicer.h:82
int NumberOfPieces
Definition: vtkDicer.h:135
void SetDiceModeToNumberOfPointsPerPiece()
Specify the method to determine how many pieces the data should be broken into.
Definition: vtkDicer.h:80
a simple class to control print indentation
Definition: vtkIndent.h:113
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_DICE_MODE_NUMBER_OF_POINTS
Definition: vtkDicer.h:50
#define VTK_DICE_MODE_SPECIFIED_NUMBER
Definition: vtkDicer.h:51
#define VTK_DICE_MODE_MEMORY_LIMIT
Definition: vtkDicer.h:52
#define VTK_INT_MAX
Definition: vtkType.h:155