VTreeData Class Reference

#include <VWorldTree.h>

Inherits wxTreeItemData.

Collaboration diagram for VTreeData:

Collaboration graph
[legend]
List of all members.

Public Types

enum  DataType {
  LIGHTING, LIGHT, CAMERA, OBJECT,
  BODY, GEOMETRY, JOINT
}

Public Member Functions

 VTreeData (DataType type, TLMDataIF *data)
DataType type () const
const TLMDataIFdata () const
TLMDataIFdata ()

Protected Attributes

DataType myType
 The type of data that I contain.
TLMDataIFmyData
 Optional pointer to the data itself.

Detailed Description

Data that is associated with a leaf on the VWorldTree. This object knows what type of data it contains and has a pointer to the data referenced by the leaf.

Definition at line 75 of file VWorldTree.h.


Member Enumeration Documentation

enum VTreeData::DataType
 

The allowed data types. Some of these types are references to global data and don't have a myData pointer. These types are:

  • AMBIENT_LIGHT
  • LIGHT_SETTINGS
  • CAMERA The other types have a myData pointer that points to the object being refered to by this node. These types are:
  • LIGHT : VLight
  • OBJECT : MObject
  • BODY : MBody
  • GEOMETRY : VGeometry
  • JOINT : MJoint
Enumerator:
LIGHTING 
LIGHT 
CAMERA 
OBJECT 
BODY 
GEOMETRY 
JOINT 

Definition at line 92 of file VWorldTree.h.


Constructor & Destructor Documentation

VTreeData::VTreeData DataType  type,
TLMDataIF data
 


Member Function Documentation

TLMDataIF* VTreeData::data  )  [inline]
 

Definition at line 99 of file VWorldTree.h.

References myData.

const TLMDataIF* VTreeData::data  )  const [inline]
 

Definition at line 98 of file VWorldTree.h.

References myData.

DataType VTreeData::type  )  const [inline]
 

Definition at line 97 of file VWorldTree.h.

References myType.


Member Data Documentation

TLMDataIF* VTreeData::myData [protected]
 

Optional pointer to the data itself.

Definition at line 102 of file VWorldTree.h.

Referenced by data().

DataType VTreeData::myType [protected]
 

The type of data that I contain.

Definition at line 101 of file VWorldTree.h.

Referenced by type().


The documentation for this class was generated from the following file:
Generated on Sat Dec 3 10:48:32 2005 for Robotics by  doxygen 1.4.5