#include <vtkGeoTreeNode.h>
Definition at line 35 of file vtkGeoTreeNode.h.
Public Types | |
enum | NodeStatus { NONE, PROCESSING } |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetChild (vtkGeoTreeNode *node, int idx) |
void | SetParent (vtkGeoTreeNode *node) |
int | GetWhichChildAreYou () |
bool | IsDescendantOf (vtkGeoTreeNode *elder) |
int | CreateChildren () |
NodeStatus | GetStatus () |
void | SetStatus (NodeStatus status) |
virtual void | SetId (unsigned long) |
virtual unsigned long | GetId () |
virtual void | SetLevel (int) |
virtual int | GetLevel () |
virtual void | SetLongitudeRange (double, double) |
void | SetLongitudeRange (double[2]) |
virtual double * | GetLongitudeRange () |
virtual void | GetLongitudeRange (double &, double &) |
virtual void | GetLongitudeRange (double[2]) |
virtual void | SetLatitudeRange (double, double) |
void | SetLatitudeRange (double[2]) |
virtual double * | GetLatitudeRange () |
virtual void | GetLatitudeRange (double &, double &) |
virtual void | GetLatitudeRange (double[2]) |
virtual void | ShallowCopy (vtkGeoTreeNode *src) |
virtual void | DeepCopy (vtkGeoTreeNode *src) |
Static Public Member Functions | |
static vtkGeoTreeNode * | New () |
static int | IsTypeOf (const char *type) |
static vtkGeoTreeNode * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkGeoTreeNode () | |
~vtkGeoTreeNode () | |
Protected Attributes | |
int | Level |
unsigned long | Id |
double | LongitudeRange [2] |
double | LatitudeRange [2] |
vtkSmartPointer< vtkGeoTreeNode > | Children [4] |
vtkGeoTreeNode * | Parent |
NodeStatus | Status |
typedef vtkObject vtkGeoTreeNode::Superclass |
Reimplemented from vtkObject.
Reimplemented in vtkGeoImageNode, and vtkGeoTerrainNode.
Definition at line 39 of file vtkGeoTreeNode.h.
vtkGeoTreeNode::vtkGeoTreeNode | ( | ) | [protected] |
vtkGeoTreeNode::~vtkGeoTreeNode | ( | ) | [protected] |
static vtkGeoTreeNode* vtkGeoTreeNode::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
Reimplemented in vtkGeoImageNode, and vtkGeoTerrainNode.
virtual const char* vtkGeoTreeNode::GetClassName | ( | ) | [virtual] |
static int vtkGeoTreeNode::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
Reimplemented in vtkGeoImageNode, and vtkGeoTerrainNode.
virtual int vtkGeoTreeNode::IsA | ( | const char * | name | ) | [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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
Reimplemented in vtkGeoImageNode, and vtkGeoTerrainNode.
static vtkGeoTreeNode* vtkGeoTreeNode::SafeDownCast | ( | vtkObject * | o | ) | [static] |
void vtkGeoTreeNode::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [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 vtkObject.
Reimplemented in vtkGeoImageNode, and vtkGeoTerrainNode.
virtual void vtkGeoTreeNode::SetId | ( | unsigned | long | ) | [virtual] |
The id uniquely specified this node. For this implementation I am going to store the branch path in the bits.
virtual unsigned long vtkGeoTreeNode::GetId | ( | ) | [virtual] |
The id uniquely specified this node. For this implementation I am going to store the branch path in the bits.
virtual void vtkGeoTreeNode::SetLevel | ( | int | ) | [virtual] |
Knowing the level simplifies encoding the branch trace in the Id.
virtual int vtkGeoTreeNode::GetLevel | ( | ) | [virtual] |
Knowing the level simplifies encoding the branch trace in the Id.
virtual void vtkGeoTreeNode::SetLongitudeRange | ( | double | , | |
double | ||||
) | [virtual] |
Longitude and latitude range of the terrain model.
void vtkGeoTreeNode::SetLongitudeRange | ( | double | [2] | ) |
Longitude and latitude range of the terrain model.
virtual double* vtkGeoTreeNode::GetLongitudeRange | ( | ) | [virtual] |
Longitude and latitude range of the terrain model.
virtual void vtkGeoTreeNode::GetLongitudeRange | ( | double & | , | |
double & | ||||
) | [virtual] |
Longitude and latitude range of the terrain model.
virtual void vtkGeoTreeNode::GetLongitudeRange | ( | double | [2] | ) | [virtual] |
Longitude and latitude range of the terrain model.
virtual void vtkGeoTreeNode::SetLatitudeRange | ( | double | , | |
double | ||||
) | [virtual] |
Longitude and latitude range of the terrain model.
void vtkGeoTreeNode::SetLatitudeRange | ( | double | [2] | ) |
Longitude and latitude range of the terrain model.
virtual double* vtkGeoTreeNode::GetLatitudeRange | ( | ) | [virtual] |
Longitude and latitude range of the terrain model.
virtual void vtkGeoTreeNode::GetLatitudeRange | ( | double & | , | |
double & | ||||
) | [virtual] |
Longitude and latitude range of the terrain model.
virtual void vtkGeoTreeNode::GetLatitudeRange | ( | double | [2] | ) | [virtual] |
Longitude and latitude range of the terrain model.
void vtkGeoTreeNode::SetChild | ( | vtkGeoTreeNode * | node, | |
int | idx | |||
) |
Get a child of this node. If one is set, then they all should set. No not mix subclasses.
void vtkGeoTreeNode::SetParent | ( | vtkGeoTreeNode * | node | ) | [inline] |
When we merge children to a lower resolution parent, we need this reference. It is not referenced counted to avoid reference loops. A child should never exist when the parent is destructed anyway.
Definition at line 70 of file vtkGeoTreeNode.h.
int vtkGeoTreeNode::GetWhichChildAreYou | ( | ) |
Get this nodes child index in node's parent.
bool vtkGeoTreeNode::IsDescendantOf | ( | vtkGeoTreeNode * | elder | ) |
This method returns true if this node descends from the elder node. The descision is made from the node ids, so the nodes do not have to be in the same tree!
int vtkGeoTreeNode::CreateChildren | ( | ) |
Create children of the same type as parent. Id, level and Latitude-Longitude ranges are set. Returns VTK_ERROR if level gets too deep to create children.
NodeStatus vtkGeoTreeNode::GetStatus | ( | ) |
void vtkGeoTreeNode::SetStatus | ( | NodeStatus | status | ) |
virtual void vtkGeoTreeNode::ShallowCopy | ( | vtkGeoTreeNode * | src | ) | [virtual] |
Shallow and Deep copy. Deep copy performs a shallow copy of the Child nodes.
Reimplemented in vtkGeoImageNode, and vtkGeoTerrainNode.
virtual void vtkGeoTreeNode::DeepCopy | ( | vtkGeoTreeNode * | src | ) | [virtual] |
Shallow and Deep copy. Deep copy performs a shallow copy of the Child nodes.
Reimplemented in vtkGeoImageNode, and vtkGeoTerrainNode.
int vtkGeoTreeNode::Level [protected] |
Definition at line 107 of file vtkGeoTreeNode.h.
unsigned long vtkGeoTreeNode::Id [protected] |
Definition at line 108 of file vtkGeoTreeNode.h.
double vtkGeoTreeNode::LongitudeRange[2] [protected] |
Definition at line 110 of file vtkGeoTreeNode.h.
double vtkGeoTreeNode::LatitudeRange[2] [protected] |
Definition at line 111 of file vtkGeoTreeNode.h.
vtkSmartPointer<vtkGeoTreeNode> vtkGeoTreeNode::Children[4] [protected] |
Definition at line 114 of file vtkGeoTreeNode.h.
vtkGeoTreeNode* vtkGeoTreeNode::Parent [protected] |
Definition at line 115 of file vtkGeoTreeNode.h.
NodeStatus vtkGeoTreeNode::Status [protected] |
Definition at line 116 of file vtkGeoTreeNode.h.