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

ZoomDecorator< ZP, maxzoom > Class Template Reference

Inheritance diagram for ZoomDecorator< ZP, maxzoom >:

Inheritance graph
[legend]
Collaboration diagram for ZoomDecorator< ZP, maxzoom >:

Collaboration graph
[legend]

Detailed Description

template<class ZP, int maxzoom>
class ZoomDecorator< ZP, maxzoom >

ZoomDecorator draws the zoom rectangle and performs the zoom at mouseUp.
Zoom behaviour may be customized via the use of various ZoomPolicy classes.


Public Member Functions

void get_boundrect (double &, double &, double &, double &)
bool check_event_fitspixels (Event *)
bool handle_event (Event *)
void set_parent (SceneNode *)
void listen_event (Event *e)
void appear (Event *e)
 ZoomDecorator (LayerNode *)

Protected Attributes

LayerNodedecoratorlayer
SceneNodeparent
double rx1
double ry1
double rx2
double ry2
double ox1
double oy1
double ox2
double oy2
double bx1
double by1
double bx2
double by2
double lastxpos
double lastypos
double adj
bool justentered
bool dirpos
bool gone


Constructor & Destructor Documentation

template<class ZP, int maxzoom>
ZoomDecorator< ZP, maxzoom >::ZoomDecorator LayerNode  ) 
 


Member Function Documentation

template<class ZP, int maxzoom>
void ZoomDecorator< ZP, maxzoom >::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:

template<class ZP, int maxzoom>
bool ZoomDecorator< ZP, maxzoom >::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:

template<class ZP, int maxzoom>
bool ZoomDecorator< ZP, maxzoom >::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.

Here is the call graph for this function:

template<class ZP, int maxzoom>
void ZoomDecorator< ZP, maxzoom >::set_parent SceneNode  ) 
 

template<class ZP, int maxzoom>
void ZoomDecorator< ZP, maxzoom >::listen_event Event e  )  [virtual]
 

Reimplemented from EventListener.

Here is the call graph for this function:

template<class ZP, int maxzoom>
void ZoomDecorator< ZP, maxzoom >::appear Event e  ) 
 

Here is the call graph for this function:


Field Documentation

template<class ZP, int maxzoom>
LayerNode* ZoomDecorator< ZP, maxzoom >::decoratorlayer [protected]
 

template<class ZP, int maxzoom>
SceneNode* ZoomDecorator< ZP, maxzoom >::parent [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::rx1 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::ry1 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::rx2 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::ry2 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::ox1 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::oy1 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::ox2 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::oy2 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::bx1 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::by1 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::bx2 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::by2 [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::lastxpos [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::lastypos [protected]
 

template<class ZP, int maxzoom>
double ZoomDecorator< ZP, maxzoom >::adj [protected]
 

template<class ZP, int maxzoom>
bool ZoomDecorator< ZP, maxzoom >::justentered [protected]
 

template<class ZP, int maxzoom>
bool ZoomDecorator< ZP, maxzoom >::dirpos [protected]
 

template<class ZP, int maxzoom>
bool ZoomDecorator< ZP, maxzoom >::gone [protected]
 


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