48 #ifndef vtkHyperTreeGridSource_h
49 #define vtkHyperTreeGridSource_h
51 #include "vtkFiltersSourcesModule.h"
78 unsigned int GetMaxDepth();
86 void SetMaxDepth(
unsigned int levels);
92 vtkSetVector3Macro(Origin,
double);
93 vtkGetVector3Macro(Origin,
double);
100 vtkSetVector3Macro(GridScale,
double);
101 vtkGetVector3Macro(GridScale,
double);
109 void SetDimensions(
const unsigned int* dims);
110 void SetDimensions(
unsigned int,
unsigned int,
unsigned int);
111 vtkGetVector3Macro(Dimensions,
unsigned int);
119 vtkSetMacro(TransposedRootIndexing,
bool);
120 vtkGetMacro(TransposedRootIndexing,
bool);
121 void SetIndexingModeToKJI();
122 void SetIndexingModeToIJK();
129 vtkGetMacro(Orientation,
unsigned int);
136 vtkSetClampMacro(BranchFactor,
unsigned int, 2, 3);
137 vtkGetMacro(BranchFactor,
unsigned int);
146 vtkSetMacro(UseDescriptor,
bool);
147 vtkGetMacro(UseDescriptor,
bool);
148 vtkBooleanMacro(UseDescriptor,
bool);
157 vtkSetMacro(UseMask,
bool);
158 vtkGetMacro(UseMask,
bool);
159 vtkBooleanMacro(UseMask,
bool);
168 vtkSetMacro(GenerateInterfaceFields,
bool);
169 vtkGetMacro(GenerateInterfaceFields,
bool);
170 vtkBooleanMacro(GenerateInterfaceFields,
bool);
177 vtkSetStringMacro(Descriptor);
178 vtkGetStringMacro(Descriptor);
185 vtkSetStringMacro(Mask);
186 vtkGetStringMacro(Mask);
222 void SetQuadricCoefficients(
double[10]);
223 void GetQuadricCoefficients(
double[10]);
224 double* GetQuadricCoefficients();
258 int InitializeFromStringDescriptor();
263 int InitializeFromBitsDescriptor();
268 void InitTreeFromDescriptor(
276 int idx[3],
int parentPos);
283 int idx[3],
int parentPos);
289 unsigned int level,
int treeIdx,
const int idx[3],
double origin[3],
double size[3]);
294 double EvaluateQuadric(
double[3]);
301 unsigned int Dimensions[3];
abstract interface for implicit functions
vtkHyperTreeGrid * OutputHTG
Create a synthetic grid of hypertrees.
std::vector< vtkIdType > LevelBitsIndexCnt
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
std::map< vtkIdType, vtkIdType > LevelZeroMaterialMap
vtkDataArray * ZCoordinates
vtkTypeUInt32 vtkMTimeType
unsigned int BranchFactor
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
std::vector< std::string > LevelDescriptors
vtkIdTypeArray * LevelZeroMaterialIndex
dynamic, self-adjusting array of vtkIdType
Objects for traversal a HyperTreeGrid.
vtkDataArray * YCoordinates
std::vector< vtkIdType > LevelBitsIndex
a simple class to control print indentation
evaluate implicit quadric function
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for arrays of numeric data
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkDataArray * XCoordinates
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
dynamic, self-adjusting array of bits
std::vector< std::string > LevelMasks
Superclass for algorithms that produce a hyper tree grid as output.
vtkBitArray * DescriptorBits
static vtkAlgorithm * New()
std::vector< int > LevelCounters
general representation of visualization data
void SetGridScale(double scale)
Set/Get the scale to be applied to root cells in each dimension of the grid.
bool TransposedRootIndexing
bool GenerateInterfaceFields
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...