eng::PartitionNode Class Reference

PartitionNode defines a subtree of a Graph that can be disabled. More...

#include <eng_node.hh>

Inheritance diagram for eng::PartitionNode:

eng::Node

List of all members.

Public Types

typedef
SharedPtrNull
< PartitionNode
Ptr

Public Member Functions

 PartitionNode (const Value &value)
 PartitionNode (const PartitionNode &src)
void Accept (Visitor &visitor)
const
PartitionNode::Value
GetValue (void) const
void Enable (const bool enable=true)
const string GetName (void) const
void SetPivotVertex (const LocalVertex &pivotVertex)

Protected Member Functions

Node::Ptr Clone (void) const
TypeId GetTypeId (void) const

Private Attributes

Value mValue
bool mEnabled
 if false, mChildrenSwapped holds children when enabled previously
SortedNodes mChildrenSwapped
 to effectively disable PartitionNode

Friends

class Value
class NodeClones
class Graph
class GraphMaker
class GraphImporter

Classes

class  Value


Detailed Description

PartitionNode defines a subtree of a Graph that can be disabled.

Member Typedef Documentation

typedef SharedPtrNull<PartitionNode> eng::PartitionNode::Ptr

Reimplemented from eng::Node.


Constructor & Destructor Documentation

eng::PartitionNode::PartitionNode ( const Value value  ) 

PartitionNode methods.

eng::PartitionNode::PartitionNode ( const PartitionNode src  ) 


Member Function Documentation

void eng::PartitionNode::Accept ( Visitor visitor  )  [inline, virtual]

Implements eng::Node.

const PartitionNode::Value& eng::PartitionNode::GetValue ( void   )  const [inline, virtual]

Implements eng::Node.

Node::Ptr eng::PartitionNode::Clone ( void   )  const [protected, virtual]

Implements eng::Node.

Node::TypeId eng::PartitionNode::GetTypeId ( void   )  const [protected, virtual]

Implements eng::Node.

void eng::PartitionNode::Enable ( const bool  enable = true  ) 

Enable or disable a PartitionNode. Implemented by swapping mChildren which can prevent traversing downward.

const string eng::PartitionNode::GetName ( void   )  const [inline]

void eng::PartitionNode::SetPivotVertex ( const LocalVertex &  pivotVertex  ) 


Friends And Related Function Documentation

friend class Value [friend]

Reimplemented from eng::Node.

friend class NodeClones [friend]

Reimplemented from eng::Node.

friend class Graph [friend]

Reimplemented from eng::Node.

friend class GraphMaker [friend]

Reimplemented from eng::Node.

friend class GraphImporter [friend]

Reimplemented from eng::Node.


Member Data Documentation

Value eng::PartitionNode::mValue [private]

bool eng::PartitionNode::mEnabled [private]

if false, mChildrenSwapped holds children when enabled previously

SortedNodes eng::PartitionNode::mChildrenSwapped [private]

to effectively disable PartitionNode


The documentation for this class was generated from the following files: Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:23 2007