Go to the documentation of this file.
47 #ifndef vtkHyperTreeGridSource_h
48 #define vtkHyperTreeGridSource_h
50 #include "vtkFiltersSourcesModule.h"
91 vtkSetVector3Macro(Origin,
double);
92 vtkGetVector3Macro(Origin,
double);
99 vtkSetVector3Macro(GridScale,
double);
100 vtkGetVector3Macro(GridScale,
double);
107 vtkSetVector3Macro(GridSize,
unsigned int);
108 vtkGetVector3Macro(GridSize,
unsigned int);
116 vtkSetMacro(TransposedRootIndexing,
bool);
117 vtkGetMacro(TransposedRootIndexing,
bool);
126 vtkSetClampMacro(Dimension,
unsigned int, 1, 3);
127 vtkGetMacro(Dimension,
unsigned int);
135 vtkGetMacro(Orientation,
unsigned int);
142 vtkSetClampMacro(BranchFactor,
unsigned int, 2, 3);
143 vtkGetMacro(BranchFactor,
unsigned int);
152 vtkSetMacro(UseDescriptor,
bool);
153 vtkGetMacro(UseDescriptor,
bool);
154 vtkBooleanMacro(UseDescriptor,
bool);
163 vtkSetMacro(UseMaterialMask,
bool);
164 vtkGetMacro(UseMaterialMask,
bool);
165 vtkBooleanMacro(UseMaterialMask,
bool);
174 vtkSetMacro(GenerateInterfaceFields,
bool);
175 vtkGetMacro(GenerateInterfaceFields,
bool);
176 vtkBooleanMacro(GenerateInterfaceFields,
bool);
183 vtkSetStringMacro(Descriptor);
184 vtkGetStringMacro(Descriptor);
191 vtkSetStringMacro(MaterialMask);
192 vtkGetStringMacro(MaterialMask);
326 unsigned int GridSize[3];
vtkDataArray * ZCoordinates
virtual void SetDescriptorBits(vtkBitArray *)
Set/Get the bitarray used to describe the grid.
static vtkHyperTreeGridSource * New()
std::map< vtkIdType, vtkIdType > LevelZeroMaterialMap
vtkHyperTreeGrid * OutputHTG
unsigned int MaximumLevel
std::vector< std::string > LevelDescriptors
Create a synthetic grid of hypertrees.
int InitializeFromStringDescriptor(int *extent)
Initialize grid from descriptor string when it is to be used.
vtkIdTypeArray * LevelZeroMaterialIndex
void SubdivideFromStringDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeCursor *cursor, unsigned int level, int treeIdx, int childIdx, int idx[3], int parentPos)
Subdivide grid from descriptor string when it is to be used.
abstract superclass for arrays of numeric data
unsigned int BranchFactor
bool TransposedRootIndexing
evaluate implicit quadric function
vtkBitArray * DescriptorBits
std::vector< vtkIdType > LevelBitsIndex
abstract interface for implicit functions
vtkDataArray * XCoordinates
int InitializeFromBitsDescriptor()
Initialize grid from bit array descriptors when it is to be used.
double EvaluateQuadric(double[3])
Evaluate quadric at given point coordinates.
void SetIndexingModeToIJK()
void InitTreeFromDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeCursor *cursor, int treeIdx, int idx[3])
Initialize tree grid from descriptor and call subdivide if needed.
void SetMaximumLevel(unsigned int levels)
Set the maximum number of levels of the hypertrees.
vtkBitArray * ConvertDescriptorStringToBitArray(const std::string &)
Helpers to convert string descriptors & mask to bit arrays.
Objects for depth-first traversal HyperTrees.
a simple class to control print indentation
void SubdivideFromQuadric(vtkHyperTreeGrid *output, vtkHyperTreeCursor *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.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkDataArray * YCoordinates
~vtkHyperTreeGridSource() override
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to process individual trees in the grid.
unsigned int GetMaximumLevel()
Return the maximum number of levels of the hypertree.
virtual void SetLevelZeroMaterialIndex(vtkIdTypeArray *)
Set the index array used to as a material mask.
vtkBitArray * ConvertMaterialMaskStringToBitArray(const std::string &)
bool GenerateInterfaceFields
virtual void SetMaterialMaskBits(vtkBitArray *)
Set/Get the bitarray used as a material mask.
std::vector< int > LevelCounters
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetQuadricCoefficients(double[10])
Helpers to set/get the 10 coefficients of the quadric function.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
dynamic, self-adjusting array of vtkIdType
std::vector< std::string > LevelMaterialMasks
void GetQuadricCoefficients(double[10])
std::vector< vtkIdType > LevelBitsIndexCnt
vtkBitArray * MaterialMaskBits
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetQuadric(vtkQuadric *)
Set/Get the quadric function.
dynamic, self-adjusting array of bits
void SetIndexingModeToKJI()
general representation of visualization data
Superclass for algorithms that produce a hyper tree grid as output.
vtkMTimeType GetMTime() override
Override GetMTime because we delegate to a vtkQuadric.
double * GetQuadricCoefficients()
virtual void SetOrientation(unsigned int)
Set/Get the orientation of the grid (in 1D and 2D)
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
vtkTypeUInt32 vtkMTimeType
void SubdivideFromBitsDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeCursor *cursor, unsigned int level, int treeIdx, int childIdx, int idx[3], int parentPos)
Subdivide grid from descriptor string when it is to be used.