Go to the documentation of this file.
37 #ifndef vtkGeoTreeNode_h
38 #define vtkGeoTreeNode_h
40 #include "vtkGeovisCoreModule.h"
46 #if !defined(VTK_LEGACY_REMOVE)
60 vtkSetMacro(Id,
unsigned long);
61 vtkGetMacro(Id,
unsigned long);
68 vtkSetMacro(Level,
int);
69 vtkGetMacro(Level,
int);
76 vtkSetVector2Macro(LongitudeRange,
double);
77 vtkGetVector2Macro(LongitudeRange,
double);
78 vtkSetVector2Macro(LatitudeRange,
double);
79 vtkGetVector2Macro(LatitudeRange,
double);
94 { this->Parent = node; }
101 { this->Older = node; }
103 {
return this->Older; }
105 { this->Newer = node; }
107 {
return this->Newer; }
149 {
return this->Children[idx]; }
157 {
return this->Parent; }
184 double LongitudeRange[2];
185 double LatitudeRange[2];
198 #endif //VTK_LEGACY_REMOVE
vtkGeoTreeNode * GetOlder()
void SetOlder(vtkGeoTreeNode *node)
Manage links to older and newer tree nodes.
vtkGeoTreeNode * GetChildTreeNode(int idx)
Get the child as a vtkGeoTreeNode.
bool IsDescendantOf(vtkGeoTreeNode *elder)
This method returns true if this node descends from the elder node.
Stores data for a patch of the globe.
abstract base class for most VTK objects
void SetParent(vtkGeoTreeNode *node)
When we merge children to a lower resolution parent, we need this reference.
vtkGeoTreeNode * GetParentTreeNode()
Get the parent as a vtkGeoTreeNode.
virtual void DeleteData()
Deletes the data associated with the node to make this an "empty" node.
virtual bool HasData()
Returns whether this node has valid data associated with it, or if it is an "empty" node.
vtkGeoTreeNode * GetNewer()
a simple class to control print indentation
void SetChild(vtkGeoTreeNode *node, int idx)
Get a child of this node.
int GetWhichChildAreYou()
Get this nodes child index in node's parent.
void SetStatus(NodeStatus status)
virtual void ShallowCopy(vtkGeoTreeNode *src)
Shallow and Deep copy.
int CreateChildren()
Create children of the same type as parent.
void SetNewer(vtkGeoTreeNode *node)
concrete dataset represents vertices, lines, polygons, and triangle strips
static vtkGeoTreeNode * New()
virtual void DeepCopy(vtkGeoTreeNode *src)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGeoTreeNode() override