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

LeafNode Class Reference

#include <leafnode.h>

Inheritance diagram for LeafNode:

Inheritance graph
[legend]
Collaboration diagram for LeafNode:

Collaboration graph
[legend]

Public Member Functions

 LeafNode (double, double)
virtual void paint (Camera *)=0
virtual void get_boundrect (double &, double &, double &, double &)=0
virtual void translate (double dx, double dy)
virtual void rotate (double ax, double ay, double rad)
virtual void move (double newx, double newy)
bool handle_message (Message *)
bool handle_event (Event *)
bool handle_event (MouseEvent *)
bool handle_event (RepaintEvent *)

Protected Attributes

double xpos
double ypos

Constructor & Destructor Documentation

LeafNode::LeafNode double  ,
double 
 


Member Function Documentation

virtual void LeafNode::paint Camera  )  [pure virtual]
 

Implemented in ActiveLeaf.

virtual void LeafNode::get_boundrect double &  ,
double &  ,
double &  ,
double & 
[pure virtual]
 

You must override this function to provide an accurate estimation of the bounding rectangle. Make sure the function is as "light" as possible because it will be called very often.

Implements BaseSceneNode.

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

Reimplemented from BaseSceneNode.

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

Reimplemented from BaseSceneNode.

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

Reimplemented from BaseSceneNode.

bool LeafNode::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.

Reimplemented in ActiveLeaf.

Here is the call graph for this function:

bool LeafNode::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 ActiveLeaf.

Here is the call graph for this function:

bool LeafNode::handle_event MouseEvent  ) 
 

bool LeafNode::handle_event RepaintEvent  ) 
 


Field Documentation

double LeafNode::xpos [protected]
 

double LeafNode::ypos [protected]
 


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