64#ifndef vtkHyperTreeGridSource_h
65#define vtkHyperTreeGridSource_h
68#include "vtkFiltersSourcesModule.h"
93 unsigned
int GetMaximumLevel();
97 void SetMaximumLevel(
unsigned int levels);
103 unsigned int GetMaxDepth();
111 void SetMaxDepth(
unsigned int levels);
117 vtkSetVector3Macro(Origin,
double);
118 vtkGetVector3Macro(Origin,
double);
125 vtkSetVector3Macro(GridScale,
double);
126 vtkGetVector3Macro(GridScale,
double);
136 vtkGetVector3Macro(Dimensions,
unsigned int);
144 vtkSetMacro(TransposedRootIndexing,
bool);
145 vtkGetMacro(TransposedRootIndexing,
bool);
154 vtkGetMacro(Orientation,
unsigned int);
161 vtkSetClampMacro(BranchFactor,
unsigned int, 2, 3);
162 vtkGetMacro(BranchFactor,
unsigned int);
171 vtkSetMacro(UseDescriptor,
bool);
172 vtkGetMacro(UseDescriptor,
bool);
173 vtkBooleanMacro(UseDescriptor,
bool);
182 vtkSetMacro(UseMask,
bool);
183 vtkGetMacro(UseMask,
bool);
184 vtkBooleanMacro(UseMask,
bool);
193 vtkSetMacro(GenerateInterfaceFields,
bool);
194 vtkGetMacro(GenerateInterfaceFields,
bool);
195 vtkBooleanMacro(GenerateInterfaceFields,
bool);
202 vtkSetStringMacro(Descriptor);
203 vtkGetStringMacro(Descriptor);
210 vtkSetStringMacro(Mask);
211 vtkGetStringMacro(Mask);
301 int idx[3],
int parentPos);
308 int idx[3],
int parentPos);
314 unsigned int level,
int treeIdx,
const int idx[3],
double origin[3],
double size[3]);
326 unsigned int Dimensions[3];
dynamic, self-adjusting array of bits
abstract superclass for arrays of numeric data
general representation of visualization data
Superclass for algorithms that produce a hyper tree grid as output.
Objects for traversal a HyperTreeGrid.
Create a synthetic grid of hypertrees.
vtkDataArray * YCoordinates
void SetDimensions(const unsigned int *dims)
Set/Get the number of root cells + 1 in each dimension of the grid.
void SetIndexingModeToIJK()
Specify whether indexing mode of grid root cells must be transposed to x-axis first,...
virtual void SetQuadric(vtkQuadric *)
Set/Get the quadric function.
virtual void SetMaskBits(vtkBitArray *)
Set/Get the bitarray used as a material mask.
std::vector< vtkIdType > LevelBitsIndex
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int InitializeFromStringDescriptor()
Initialize grid from descriptor string when it is to be used.
bool TransposedRootIndexing
vtkDataArray * XCoordinates
bool GenerateInterfaceFields
static vtkHyperTreeGridSource * New()
void SetGridScale(double scale)
Set/Get the scale to be applied to root cells in each dimension of the grid.
vtkMTimeType GetMTime() override
Override GetMTime because we delegate to a vtkQuadric.
virtual void SetLevelZeroMaterialIndex(vtkIdTypeArray *)
Set the index array used to as a material mask.
double EvaluateQuadric(double[3])
Evaluate quadric at given point coordinates.
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkDataArray * ZCoordinates
std::vector< vtkIdType > LevelBitsIndexCnt
void SetDimensions(unsigned int, unsigned int, unsigned int)
Set/Get the number of root cells + 1 in each dimension of the grid.
void SetIndexingModeToKJI()
Specify whether indexing mode of grid root cells must be transposed to x-axis first,...
vtkBitArray * DescriptorBits
vtkBitArray * ConvertDescriptorStringToBitArray(const std::string &)
Helpers to convert string descriptors & mask to bit arrays.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdTypeArray * LevelZeroMaterialIndex
vtkHyperTreeGrid * OutputHTG
std::vector< std::string > LevelMasks
std::vector< int > LevelCounters
void SubdivideFromBitsDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeGridNonOrientedCursor *cursor, unsigned int level, int treeIdx, int childIdx, int idx[3], int parentPos)
Subdivide grid from descriptor string when it is to be used.
vtkBitArray * ConvertMaskStringToBitArray(const std::string &)
Helpers to convert string descriptors & mask to bit arrays.
int InitializeFromBitsDescriptor()
Initialize grid from bit array descriptors when it is to be used.
~vtkHyperTreeGridSource() override
void SubdivideFromQuadric(vtkHyperTreeGrid *output, vtkHyperTreeGridNonOrientedCursor *cursor, unsigned int level, int treeIdx, const int idx[3], double origin[3], double size[3])
Subdivide grid from quadric when descriptor is not used.
void SubdivideFromStringDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeGridNonOrientedCursor *cursor, unsigned int level, int treeIdx, int childIdx, int idx[3], int parentPos)
Subdivide grid from descriptor string when it is to be used.
double * GetQuadricCoefficients()
Helpers to set/get the 10 coefficients of the quadric function.
std::map< vtkIdType, vtkIdType > LevelZeroMaterialMap
unsigned int BranchFactor
void InitTreeFromDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeGridNonOrientedCursor *cursor, int treeIdx, int idx[3])
Initialize tree grid from descriptor and call subdivide if needed.
void GetQuadricCoefficients(double[10])
Helpers to set/get the 10 coefficients of the quadric function.
std::vector< std::string > LevelDescriptors
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to process individual trees in the grid.
void SetQuadricCoefficients(double[10])
Helpers to set/get the 10 coefficients of the quadric function.
virtual void SetDescriptorBits(vtkBitArray *)
Set/Get the bitarray used to describe the grid.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
dynamic, self-adjusting array of vtkIdType
abstract interface for implicit functions
a simple class to control print indentation
evaluate implicit quadric function
#define VTK_DEPRECATED_IN_9_0_0(reason)
vtkTypeUInt32 vtkMTimeType