#include <leafnode.h>
Inheritance diagram for LeafNode:
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 |
|
|
|
Implemented in ActiveLeaf. |
|
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. |
|
Reimplemented from BaseSceneNode. |
|
Reimplemented from BaseSceneNode. |
|
Reimplemented from BaseSceneNode. |
|
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:
|
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:
|
|
|
|
|
|
|
|