VTK
|
hierarchical dataset of vtkUniformGrids More...
#include <vtkOverlappingAMR.h>
Public Types | |
typedef vtkUniformGridAMR | Superclass |
Public Types inherited from vtkUniformGridAMR | |
typedef vtkCompositeDataSet | Superclass |
Public Types inherited from vtkCompositeDataSet | |
typedef vtkDataObject | Superclass |
Public Types inherited from vtkDataObject | |
typedef vtkObject | Superclass |
enum | FieldAssociations { FIELD_ASSOCIATION_POINTS, FIELD_ASSOCIATION_CELLS, FIELD_ASSOCIATION_NONE, FIELD_ASSOCIATION_POINTS_THEN_CELLS, FIELD_ASSOCIATION_VERTICES, FIELD_ASSOCIATION_EDGES, FIELD_ASSOCIATION_ROWS, NUMBER_OF_ASSOCIATIONS } |
enum | AttributeTypes { POINT, CELL, FIELD, POINT_THEN_CELL, VERTEX, EDGE, ROW, NUMBER_OF_ATTRIBUTE_TYPES } |
enum | FieldOperations { FIELD_OPERATION_PRESERVED, FIELD_OPERATION_REINTERPOLATED, FIELD_OPERATION_MODIFIED, FIELD_OPERATION_REMOVED } |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | GetDataObjectType () |
virtual int | IsA (const char *type) |
vtkOverlappingAMR * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkCompositeDataIterator * | NewIterator () |
void | GetBounds (unsigned int level, unsigned int id, double *bb) |
void | GetOrigin (unsigned int level, unsigned int id, double origin[3]) |
void | SetRefinementRatio (unsigned int level, int refRatio) |
int | GetRefinementRatio (unsigned int level) |
int | GetRefinementRatio (vtkCompositeDataIterator *iter) |
bool | HasChildrenInformation () |
void | GenerateParentChildInformation () |
unsigned int * | GetParents (unsigned int level, unsigned int index, unsigned int &numParents) |
unsigned int * | GetChildren (unsigned int level, unsigned int index, unsigned int &numChildren) |
void | PrintParentChildInfo (unsigned int level, unsigned int index) |
void | GetBounds (double b[6]) |
bool | FindGrid (double q[3], unsigned int &level, unsigned int &gridId) |
void | SetOrigin (const double *) |
double * | GetOrigin () |
void | SetSpacing (unsigned int level, const double spacing[3]) |
void | GetSpacing (unsigned int level, double spacing[3]) |
void | SetAMRBox (unsigned int level, unsigned int id, const vtkAMRBox &box) |
const vtkAMRBox & | GetAMRBox (unsigned int level, unsigned int id) |
void | SetAMRBlockSourceIndex (unsigned int level, unsigned int id, int sourceId) |
int | GetAMRBlockSourceIndex (unsigned int level, unsigned int id) |
vtkAMRInformation * | GetAMRInfo () |
virtual void | SetAMRInfo (vtkAMRInformation *info) |
Public Member Functions inherited from vtkUniformGridAMR | |
vtkUniformGridAMR * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Initialize () |
virtual void | Initialize (int numLevels, const int *blocksPerLevel) |
void | SetGridDescription (int gridDescription) |
int | GetGridDescription () |
unsigned int | GetNumberOfLevels () |
virtual unsigned int | GetTotalNumberOfBlocks () |
unsigned int | GetNumberOfDataSets (const unsigned int level) |
void | GetBounds (double bounds[6]) |
const double * | GetBounds () |
void | GetMin (double min[3]) |
void | GetMax (double max[3]) |
virtual void | SetDataSet (vtkCompositeDataIterator *iter, vtkDataObject *dataObj) |
virtual void | SetDataSet (unsigned int level, unsigned int idx, vtkUniformGrid *grid) |
vtkDataObject * | GetDataSet (vtkCompositeDataIterator *iter) |
vtkUniformGrid * | GetDataSet (unsigned int level, unsigned int idx) |
int | GetCompositeIndex (const unsigned int level, const unsigned int index) |
void | GetLevelAndIndex (const unsigned int compositeIdx, unsigned int &level, unsigned int &idx) |
virtual void | ShallowCopy (vtkDataObject *src) |
virtual void | DeepCopy (vtkDataObject *src) |
virtual void | CopyStructure (vtkCompositeDataSet *src) |
Public Member Functions inherited from vtkCompositeDataSet | |
vtkCompositeDataSet * | NewInstance () const |
virtual unsigned long | GetActualMemorySize () |
virtual vtkIdType | GetNumberOfPoints () |
Public Member Functions inherited from vtkDataObject | |
vtkDataObject * | NewInstance () const |
unsigned long int | GetMTime () |
void | ReleaseData () |
unsigned long | GetUpdateTime () |
virtual void | CopyInformationToPipeline (vtkInformation *vtkNotUsed(info)) |
void | DataHasBeenGenerated () |
virtual void | PrepareForNewData () |
virtual int | GetExtentType () |
virtual void | Crop (const int *updateExtent) |
virtual vtkDataSetAttributes * | GetAttributes (int type) |
virtual vtkFieldData * | GetAttributesAsFieldData (int type) |
virtual int | GetAttributeTypeForArray (vtkAbstractArray *arr) |
virtual vtkIdType | GetNumberOfElements (int type) |
virtual vtkInformation * | GetInformation () |
virtual void | SetInformation (vtkInformation *) |
virtual int | GetDataReleased () |
virtual void | SetFieldData (vtkFieldData *) |
virtual vtkFieldData * | GetFieldData () |
virtual void | CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info)) |
void | GlobalReleaseDataFlagOn () |
void | GlobalReleaseDataFlagOff () |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
Protected Member Functions inherited from vtkUniformGridAMR | |
vtkUniformGridAMR () | |
virtual | ~vtkUniformGridAMR () |
virtual vtkAMRDataInternals * | GetAMRData () |
Protected Member Functions inherited from vtkCompositeDataSet | |
vtkCompositeDataSet () | |
virtual | ~vtkCompositeDataSet () |
Protected Member Functions inherited from vtkDataObject | |
vtkDataObject () | |
~vtkDataObject () | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
void | Audit () |
vtkOverlappingAMR () | |
virtual | ~vtkOverlappingAMR () |
Additional Inherited Members | |
Protected Attributes inherited from vtkUniformGridAMR | |
vtkAMRInformation * | AMRInfo |
vtkAMRDataInternals * | AMRData |
double | Bounds [6] |
Protected Attributes inherited from vtkDataObject | |
vtkFieldData * | FieldData |
int | DataReleased |
vtkTimeStamp | UpdateTime |
vtkInformation * | Information |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
hierarchical dataset of vtkUniformGrids
vtkOverlappingAMR extends vtkUniformGridAMR by exposing access to the amr meta data, which stores all structural information represented by an vtkAMRInformation object
Definition at line 45 of file vtkOverlappingAMR.h.
Definition at line 53 of file vtkOverlappingAMR.h.
|
protected |
Check whether the data set is internally consistent, e.g. whether the meta data and acutal data blocks match. Incorrectness will be reported as error messages
|
protectedvirtual |
Check whether the data set is internally consistent, e.g. whether the meta data and acutal data blocks match. Incorrectness will be reported as error messages
|
static |
|
inlinevirtual |
Return class name of data type (see vtkType.h for definitions).
Reimplemented from vtkUniformGridAMR.
Reimplemented in vtkHierarchicalBoxDataSet.
Definition at line 51 of file vtkOverlappingAMR.h.
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkUniformGridAMR.
Reimplemented in vtkHierarchicalBoxDataSet.
|
static |
|
protectedvirtual |
Reimplemented from vtkUniformGridAMR.
Reimplemented in vtkHierarchicalBoxDataSet.
vtkOverlappingAMR* vtkOverlappingAMR::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkCompositeDataSet.
|
virtual |
Return a new iterator (the iterator has to be deleted by the user).
Reimplemented from vtkUniformGridAMR.
Reimplemented in vtkHierarchicalBoxDataSet.
void vtkOverlappingAMR::SetOrigin | ( | const double * | ) |
Get/Set the global origin of the amr data set
double* vtkOverlappingAMR::GetOrigin | ( | ) |
Get/Set the global origin of the amr data set
Get/Set the grid spacing at a given level
Get/Set the grid spacing at a given level
Set/Get the AMRBox for a given block
Set/Get the AMRBox for a given block
Returns the bounding information of a data set.
Returns the origin of an AMR block
|
static |
|
inlinestatic |
Retrieve an instance of this class from an information object.
Definition at line 89 of file vtkOverlappingAMR.h.
|
inlinestatic |
Retrieve an instance of this class from an information object.
Definition at line 91 of file vtkOverlappingAMR.h.
Sets the refinement of a given level. The spacing at level level+1 is defined as spacing(level+1) = spacing(level)/refRatio(level). Note that currently, this is not enforced by this class however some algorithms might not function properly if the spacing in the blocks (vtkUniformGrid) does not match the one described by the refinement ratio.
Returns the refinement of a given level.
void vtkOverlappingAMR::SetAMRBlockSourceIndex | ( | unsigned int | level, |
unsigned int | id, | ||
int | sourceId | ||
) |
Set/Get the source id of a block. The source id is produced by an AMR source, e.g. a file reader might set this to be a file block id
Set/Get the source id of a block. The source id is produced by an AMR source, e.g. a file reader might set this to be a file block id
int vtkOverlappingAMR::GetRefinementRatio | ( | vtkCompositeDataIterator * | iter | ) |
Returns the refinement ratio for the position pointed by the iterator.
bool vtkOverlappingAMR::HasChildrenInformation | ( | ) |
Return whether parent child information has been generated
void vtkOverlappingAMR::GenerateParentChildInformation | ( | ) |
Generate the parent/child relationships - needed to be called before GetParents or GetChildren can be used!
unsigned int* vtkOverlappingAMR::GetParents | ( | unsigned int | level, |
unsigned int | index, | ||
unsigned int & | numParents | ||
) |
Return a pointer to Parents of a block. The first entry is the number of parents the block has followed by its parent ids in level-1. If none exits it returns NULL.
unsigned int* vtkOverlappingAMR::GetChildren | ( | unsigned int | level, |
unsigned int | index, | ||
unsigned int & | numChildren | ||
) |
Return a pointer to Children of a block. The first entry is the number of children the block has followed by its childern ids in level+1. If none exits it returns NULL.
Prints the parents and children of a requested block (Debug Routine)
|
inline |
Definition at line 139 of file vtkOverlappingAMR.h.
Given a point q, find the highest level grid that contains it.
|
inlinevirtual |
Get/Set the interal representation of amr meta meta data
Reimplemented from vtkUniformGridAMR.
Definition at line 146 of file vtkOverlappingAMR.h.
|
inlinevirtual |
Get/Set the interal representation of amr meta meta data
Reimplemented from vtkUniformGridAMR.
Definition at line 147 of file vtkOverlappingAMR.h.
void vtkOverlappingAMR::Audit | ( | ) |
Check whether the data set is internally consistent, e.g. whether the meta data and acutal data blocks match. Incorrectness will be reported as error messages