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

Camera Class Reference

#include <camera.h>

Inheritance diagram for Camera:

Inheritance graph
[legend]
Collaboration diagram for Camera:

Collaboration graph
[legend]

Public Member Functions

 Camera (const char *, ZoomableView *, ZoomableView *)
void assign_parent (BaseGraphWindow *)
BaseGraphWindow * get_parent (void)
const char * get_name (void)
virtual ZoomableView * get_view (void)
void add_selection_handler (SelectionGroupNode *)
SelectionGroupNode * remove_selection_handler (void)
virtual void add_layer (LayerNode *)
 Adds new layer to the front.

virtual void add_layer_first (LayerNode *)
virtual void add_layer_last (LayerNode *)
virtual void insert_layer (LayerNode *, LayerNode *)
virtual void disable_layer (LayerNode *)
virtual void enable_layer (LayerNode *)
virtual bool handle_event (Event *)
virtual bool handle_event (CameraFocusEvent *)
virtual bool handle_event (CameraBlurEvent *)
virtual bool handle_message (Message *)
virtual void listen_event (Event *)
virtual bool accepts_mouse_events (void)
void scroll_camera (int xmov, int ymov)
void invalidate_rect (double, double, double, double)
void repaint_rect (double, double, double, double)
void repaint_screenrect (double, double, double, double)
void register_mouse_owner (BaseSceneNode *)
bool mousefits (int, int)
void get_screenrect (double &, double &, double &, double &)
void screen2scenerect (double &, double &, double &, double &)
void screen2scenepos (double &, double &)
Context * get_window_context (void)
Context * get_scene_context (void)
void switch_to_HUD (void)
void switch_to_view (void)
bool HUD_status (void)
void HUD2scenepos (double &, double &)
void screen2HUDpos (double &, double &)
void get_visible_area (double &x1, double &y1, double &x2, double &y2)
bool needs_repaint (void)
 ~Camera ()

Protected Member Functions

void recompute_visible_area (void)

Protected Attributes

char * name
bool need_repaint
BaseGraphWindow * parent
Scene * scene
ZoomableView * view
ZoomableView * hudview
bool HUDmode_on
std::list< LayerNode * > layers
SelectionGroupNode * selection_handler
CameraEvent * status
BaseSceneNode * mouse_owner
double rx1
double ry1
double rx2
double ry2
bool valid_bounds

Constructor & Destructor Documentation

Camera::Camera (  const char *  ,
ZoomableView *  ,
ZoomableView * 
) 
 

Camera::~Camera (   ) 
 


Member Function Documentation

void Camera::recompute_visible_area (  void   )  [protected]
 

Here is the call graph for this function:

void Camera::assign_parent (  BaseGraphWindow *   ) 
 

BaseGraphWindow * Camera::get_parent (  void   ) 
 

const char * Camera::get_name (  void   ) 
 

ZoomableView * Camera::get_view (  void   )  [virtual]
 

Reimplemented in ObjectCamera.

void Camera::add_selection_handler (  SelectionGroupNode *   ) 
 

SelectionGroupNode * Camera::remove_selection_handler (  void   ) 
 

void Camera::add_layer (  LayerNode *   )  [virtual]
 

Adds new layer to the front.

Here is the call graph for this function:

void Camera::add_layer_first (  LayerNode *   )  [virtual]
 

Here is the call graph for this function:

void Camera::add_layer_last (  LayerNode *   )  [virtual]
 

Here is the call graph for this function:

void Camera::insert_layer (  LayerNode *  ,
LayerNode * 
)  [virtual]
 

Here is the call graph for this function:

void Camera::disable_layer (  LayerNode *   )  [virtual]
 

Here is the call graph for this function:

void Camera::enable_layer (  LayerNode *   )  [virtual]
 

Here is the call graph for this function:

bool Camera::handle_event (  Event *   )  [virtual]
 

Here is the call graph for this function:

bool Camera::handle_event (  CameraFocusEvent *   )  [virtual]
 

bool Camera::handle_event (  CameraBlurEvent *   )  [virtual]
 

bool Camera::handle_message (  Message *   )  [virtual]
 

Here is the call graph for this function:

void Camera::listen_event (  Event *   )  [virtual]
 

Reimplemented from EventListener.

Here is the call graph for this function:

bool Camera::accepts_mouse_events (  void   )  [virtual]
 

Here is the call graph for this function:

void Camera::scroll_camera (  int  xmov,
int  ymov
) 
 

Here is the call graph for this function:

void Camera::invalidate_rect (  double  ,
double  ,
double  ,
double 
) 
 

Here is the call graph for this function:

void Camera::repaint_rect (  double  ,
double  ,
double  ,
double 
) 
 

Here is the call graph for this function:

void Camera::repaint_screenrect (  double  ,
double  ,
double  ,
double 
) 
 

Here is the call graph for this function:

void Camera::register_mouse_owner (  BaseSceneNode *   ) 
 

Here is the call graph for this function:

bool Camera::mousefits (  int  ,
int 
) 
 

Here is the call graph for this function:

void Camera::get_screenrect (  double &  ,
double &  ,
double &  ,
double & 
) 
 

Here is the call graph for this function:

void Camera::screen2scenerect (  double &  ,
double &  ,
double &  ,
double & 
) 
 

Here is the call graph for this function:

void Camera::screen2scenepos (  double &  ,
double & 
) 
 

Here is the call graph for this function:

Context * Camera::get_window_context (  void   ) 
 

Context * Camera::get_scene_context (  void   ) 
 

Here is the call graph for this function:

void Camera::switch_to_HUD (  void   ) 
 

void Camera::switch_to_view (  void   ) 
 

bool Camera::HUD_status (  void   )  [inline]
 

void Camera::HUD2scenepos (  double &  ,
double & 
) 
 

Here is the call graph for this function:

void Camera::screen2HUDpos (  double &  ,
double & 
) 
 

Here is the call graph for this function:

void Camera::get_visible_area (  double &  x1,
double &  y1,
double &  x2,
double &  y2
) 
 

bool Camera::needs_repaint (  void   )  [inline]
 


Field Documentation

char* Camera::name [protected]
 

bool Camera::need_repaint [protected]
 

BaseGraphWindow* Camera::parent [protected]
 

Scene* Camera::scene [protected]
 

ZoomableView* Camera::view [protected]
 

Reimplemented in ObjectCamera.

ZoomableView* Camera::hudview [protected]
 

bool Camera::HUDmode_on [protected]
 

std::list<LayerNode*> Camera::layers [protected]
 

SelectionGroupNode* Camera::selection_handler [protected]
 

CameraEvent* Camera::status [protected]
 

BaseSceneNode* Camera::mouse_owner [protected]
 

double Camera::rx1 [protected]
 

double Camera::ry1 [protected]
 

double Camera::rx2 [protected]
 

double Camera::ry2 [protected]
 

bool Camera::valid_bounds [protected]
 


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