Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

GroupNode Class Reference

#include <groupnode.h>

Inheritance diagram for GroupNode:

Inheritance graph
[legend]
Collaboration diagram for GroupNode:

Collaboration graph
[legend]

Public Member Functions

 GroupNode (bool cache_br=true)
virtual bool handle_event (Event *)
bool handle_event (RepaintEvent *)
virtual bool handle_message (Message *)
void reserve (long)
void add_child (SceneNode *)
void remove_child (SceneNode *)
void remove_child (int idx)
void remove_all_children (void)
void add_child (GroupNode *)
void remove_child (GroupNode *)
void get_boundrect (double &, double &, double &, double &)
void get_scenerect (double &, double &, double &, double &)
void translate (double dx, double dy)
void rotate (double ax, double ay, double rad)
void move (double newx, double newy)
virtual bool check_event_fitspixels (Event *)
virtual void listen_event (Event *)
void toggle_dynamic (bool)
virtual ~GroupNode ()

Protected Member Functions

void recompute_boundrect (void)
void recompute_scenerect (void)

Protected Attributes

long childcount
long alloccount
double brx1
 Cached boundrect.

double bry1
 Cached boundrect.

double brx2
 Cached boundrect.

double bry2
 Cached boundrect.

double scx1
 Cached scenerect.

double scy1
 Cached scenerect.

double scx2
 Cached scenerect.

double scy2
 Cached scenerect.

BaseSceneNode ** children_arr
BaseSceneNode ** childbuf
bool dynamic_boundrect
bool cache_boundrect

Constructor & Destructor Documentation

GroupNode::GroupNode bool  cache_br = true  ) 
 

Here is the call graph for this function:

GroupNode::~GroupNode  )  [virtual]
 

Here is the call graph for this function:


Member Function Documentation

void GroupNode::recompute_boundrect void   )  [protected]
 

Here is the call graph for this function:

void GroupNode::recompute_scenerect void   )  [protected]
 

Here is the call graph for this function:

bool GroupNode::handle_event Event  )  [virtual]
 

The default Event handler passes all events down to its children

Reimplemented from BaseSceneNode.

Reimplemented in BorderLayer< SP >, ContainerNode, HUDGroupNode, and LayerNode.

Here is the call graph for this function:

bool GroupNode::handle_event RepaintEvent  ) 
 

Here is the call graph for this function:

bool GroupNode::handle_message Message  )  [virtual]
 

The default Message handler just passes the request down to its children in hope that the target is one of them.

Reimplemented from BaseSceneNode.

Here is the call graph for this function:

void GroupNode::reserve long   ) 
 

void GroupNode::add_child SceneNode  ) 
 

Here is the call graph for this function:

void GroupNode::remove_child SceneNode  ) 
 

Here is the call graph for this function:

void GroupNode::remove_child int  idx  ) 
 

Here is the call graph for this function:

void GroupNode::remove_all_children void   ) 
 

Here is the call graph for this function:

void GroupNode::add_child GroupNode  ) 
 

Here is the call graph for this function:

void GroupNode::remove_child GroupNode  ) 
 

Here is the call graph for this function:

void GroupNode::get_boundrect double &  ,
double &  ,
double &  ,
double & 
[virtual]
 

This function should be overloaded in every node to provide for event handling and repaint.

Implements BaseSceneNode.

Reimplemented in BorderLayer< SP >, and HUDGroupNode.

Here is the call graph for this function:

void GroupNode::get_scenerect double &  ,
double &  ,
double &  ,
double & 
[virtual]
 

This function is used to compute scene bounds. Certain types of nodes, e.g. HUDGroups will return an invalid rect here.
get_boundrect() is aliased to get_boundrect in BaseSceneNode and there is normally no need to override it.

Reimplemented from BaseSceneNode.

Reimplemented in HUDGroupNode.

Here is the call graph for this function:

void GroupNode::translate double  dx,
double  dy
[virtual]
 

Reimplemented from BaseSceneNode.

Here is the call graph for this function:

void GroupNode::rotate double  ax,
double  ay,
double  rad
[virtual]
 

Reimplemented from BaseSceneNode.

Here is the call graph for this function:

void GroupNode::move double  newx,
double  newy
[virtual]
 

Reimplemented from BaseSceneNode.

Here is the call graph for this function:

bool GroupNode::check_event_fitspixels Event  )  [virtual]
 

This function should be overloaded in every node to provide for event handling.

Implements BaseSceneNode.

Here is the call graph for this function:

void GroupNode::listen_event Event  )  [virtual]
 

Reimplemented from EventListener.

Reimplemented in HUDGroupNode.

Here is the call graph for this function:

void GroupNode::toggle_dynamic bool   ) 
 

Here is the call graph for this function:


Field Documentation

long GroupNode::childcount [protected]
 

long GroupNode::alloccount [protected]
 

double GroupNode::brx1 [protected]
 

Cached boundrect.

double GroupNode::bry1 [protected]
 

Cached boundrect.

double GroupNode::brx2 [protected]
 

Cached boundrect.

double GroupNode::bry2 [protected]
 

Cached boundrect.

double GroupNode::scx1 [protected]
 

Cached scenerect.

double GroupNode::scy1 [protected]
 

Cached scenerect.

double GroupNode::scx2 [protected]
 

Cached scenerect.

double GroupNode::scy2 [protected]
 

Cached scenerect.

BaseSceneNode** GroupNode::children_arr [protected]
 

BaseSceneNode ** GroupNode::childbuf [protected]
 

bool GroupNode::dynamic_boundrect [protected]
 

recomputing the boundrect at initial loading stage may slow down the app. Turn dynamic_boundrect off when you first load the children, then make sure to turn it back on if you have a dynamic scene. Default is true.

bool GroupNode::cache_boundrect [protected]
 

recomputing the boundrect at initial loading stage may slow down the app. Turn dynamic_boundrect off when you first load the children, then make sure to turn it back on if you have a dynamic scene. Default is true.


The documentation for this class was generated from the following files:
Generated on Wed Jun 23 18:47:34 2004 for cZUI by doxygen 1.3.5