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

hudgroupnode.h

Go to the documentation of this file.
00001 //--- < HUDGROUPNODE.H > --------| ViewGraph - A Flexible Graph view Framework |
00002 //
00003 // HUDGroupNode implements a Heads-Up-Display group
00004 // that makes all the nodes beneath it 'sticky'. 
00005 // Thus, scroll and zoom events will not affect 
00006 // the visual position and appearance of the nodes
00007 // beneath a HUDGroupNode.
00008 // 
00009 // $Author: botik32 $
00010 // $Revision: 1.4 $
00011 // $Date: 2004/06/02 08:03:55 $
00012 //-----------------------------------------------------------------------------/
00013 
00014 #ifndef HUDGROUPNODE_H
00015 #define HUDGROUPNODE_H
00016 
00017 #include <cZUI/groupnode.h>
00018 
00019 class HUDGroupNode : public GroupNode
00020 {
00021 protected:
00022         double lx, ly;
00023         Camera *camera;
00024         bool HUDmode;
00025 
00026         void enter_HUDmode( void );
00027         void leave_HUDmode( void );
00028                 
00029 public:
00030         bool handle_event( Event * );
00031         void listen_event( Event * );
00032         void get_boundrect( double&, double&, double&, double& );
00033         void get_scenerect( double&, double&, double&, double& );
00034         HUDGroupNode( Camera* );
00035 };
00036 
00037 #endif
00038 
00039 /// $Log: hudgroupnode.h,v $
00040 /// Revision 1.4  2004/06/02 08:03:55  botik32
00041 /// Removed fitsall bool from GroupNode
00042 /// Added get_scenerect() to BaseSceneNode
00043 /// Added get_scenerect() to HUDGroupNode
00044 /// Added recompute_scenerect() to GroupNode
00045 /// Changed GroupNode's recompute_boundrect behaviour to
00046 /// accept FitAllRect bounds again
00047 ///
00048 /// Revision 1.3  2004/05/14 18:35:08  botik32
00049 /// Fixed a bug related to HUDGroups and a few that I do not
00050 /// remember now.
00051 ///
00052 /// Revision 1.2  2004/04/20 08:55:51  botik32
00053 /// Major interface change.
00054 /// Added HUDView in Camera; switch_to_HUDmode for Camera
00055 /// BaseSceneNode: internal implementation changes;
00056 /// Major changes in HUDGroup behaviour
00057 ///
00058 /// Revision 1.1.1.1  2004/03/26 10:50:26  botik32
00059 /// Initial release
00060 ///
00061 /// Revision 1.1.1.1  2004/03/26 08:53:33  botik
00062 /// initial import
00063 ///
00064 ///
00065 /// Revision 1.3  2004/03/17 13:16:19  botik
00066 /// Fixed the HUDGroup to treat CameraCenter events properly
00067 ///
00068 /// Revision 1.2  2003/11/18 10:17:24  botik
00069 /// Got HUDGroup to partially work
00070 /// Fixed a typo in leafnode that caused invalid
00071 /// movement on scroll
00072 ///
00073 /// Revision 1.1  2003/11/17 23:42:12  botik
00074 /// Initial check-in
00075 ///

Generated on Wed Jun 23 18:47:21 2004 for cZUI by doxygen 1.3.5