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

SceneNode Class Reference

#include <scenenode.h>

Inheritance diagram for SceneNode:

Inheritance graph
[legend]
Collaboration diagram for SceneNode:

Collaboration graph
[legend]

Public Member Functions

BaseSceneNodeget_child (void)
virtual bool handle_event (Event *)
virtual bool handle_message (Message *)
void get_boundrect (double &, double &, double &, double &)
virtual bool check_event_fitspixels (Event *)
virtual void register_event_listener (const char *, EventListener *)
virtual void unregister_event_listener (const char *, EventListener *)
void translate (double dx, double dy)
void rotate (double ax, double ay, double rad)
void move (double newx, double newy)
 SceneNode ()
 SceneNode (BaseSceneNode *)
void add_child (BaseSceneNode *)

Protected Attributes

BaseSceneNodechild

Constructor & Destructor Documentation

SceneNode::SceneNode  ) 
 

SceneNode::SceneNode BaseSceneNode  ) 
 


Member Function Documentation

BaseSceneNode * SceneNode::get_child void   )  [virtual]
 

this one always returns NULL for BaseSceneNode. SceneNode and GroupNode override this function.

Reimplemented from BaseSceneNode.

bool SceneNode::handle_event Event  )  [virtual]
 

call the base event handler in all nodes because it provides checks for node visibility and mouse event fitting into bounding rectangle.

Reimplemented from BaseSceneNode.

Reimplemented in CursorPolicyNode, EventFilter, AreaFilter, and ZoomSceneNode< ZP, maxzoom >.

Here is the call graph for this function:

bool SceneNode::handle_message Message  )  [virtual]
 

messages are intended to a certain node but can be processed by nodes directly higher up (i.e. decorator nodes). Beware that this can be slow for large graphs but using smart group nodes can help.

Reimplemented from BaseSceneNode.

Here is the call graph for this function:

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

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

Implements BaseSceneNode.

Here is the call graph for this function:

bool SceneNode::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 SceneNode::register_event_listener const char *  ,
EventListener
[virtual]
 

Reimplemented from EventHub.

Here is the call graph for this function:

void SceneNode::unregister_event_listener const char *  ,
EventListener
[virtual]
 

Reimplemented from EventHub.

Here is the call graph for this function:

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

Reimplemented from BaseSceneNode.

Here is the call graph for this function:

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

Reimplemented from BaseSceneNode.

Here is the call graph for this function:

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

Reimplemented from BaseSceneNode.

Here is the call graph for this function:

void SceneNode::add_child BaseSceneNode  ) 
 


Field Documentation

BaseSceneNode* SceneNode::child [protected]
 


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