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