Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Stage Class Reference

Displayable subclass implementing a checkered "stage". More...

#include <Stage.h>

Inheritance diagram for Stage:

Displayable Pickable List of all members.

Public Types

enum  StagePos {
  NO_STAGE = 0, STAGE_ORIGIN, STAGE_LOWER, STAGE_UPPER,
  STAGE_LEFT, STAGE_RIGHT, STAGE_BEHIND, STAGEPOS_TOTAL
}
 enumerated locations for the stage. More...


Public Methods

 Stage (Displayable *)
 constructor: the parent displayable. More...

int location (int)
 set stage display mode; return success. More...

int location (void)
 return stage display mode. More...

char * loc_description (int)
 return descripton of location. More...

int locations (void)
 return total number of locations. More...

int panels (void)
 get/set number of panels (must be >= 1). More...

int panels (int newp)
virtual void prepare ()
 prepare for drawing ... do any updates needed right before draw. More...


Protected Methods

virtual void do_color_changed (int)

Detailed Description

Displayable subclass implementing a checkered "stage".

Definition at line 31 of file Stage.h.


Member Enumeration Documentation

enum Stage::StagePos
 

enumerated locations for the stage.

Enumeration values:
NO_STAGE 
STAGE_ORIGIN 
STAGE_LOWER 
STAGE_UPPER 
STAGE_LEFT 
STAGE_RIGHT 
STAGE_BEHIND 
STAGEPOS_TOTAL 

Definition at line 34 of file Stage.h.


Constructor & Destructor Documentation

Stage::Stage Displayable  
 

constructor: the parent displayable.

Definition at line 43 of file Stage.C.

References Scene::add_color_category, Scene::add_color_item, Displayable::cent_trans_off, do_color_changed, Displayable::glob_trans_off, location, NO_STAGE, panels, Displayable::rot_off, Displayable::scale_off, Displayable::scene, STAGE_PANELS, STAGEEVENCOL, STAGEODDCOL, and STAGEPOS_TOTAL.


Member Function Documentation

void Stage::do_color_changed int    [protected, virtual]
 

Reimplemented from Displayable.

Definition at line 67 of file Stage.C.

References Scene::category_item_index, Scene::category_item_value, and Displayable::scene.

Referenced by Stage.

char * Stage::loc_description int   
 

return descripton of location.

Definition at line 142 of file Stage.C.

References stageloc.

Referenced by MainFltkMenu::MainFltkMenu, VMDApp::stage_set_location, and text_cmd_stage.

int Stage::location void    [inline]
 

return stage display mode.

Definition at line 74 of file Stage.h.

Referenced by Stage.

int Stage::location int   
 

set stage display mode; return success.

Definition at line 126 of file Stage.C.

References NO_STAGE, Displayable::off, and Displayable::on.

Referenced by VMDApp::stage_set_location, and text_cmd_stage.

int Stage::locations void    [inline]
 

return total number of locations.

Definition at line 80 of file Stage.h.

References STAGEPOS_TOTAL.

Referenced by MainFltkMenu::MainFltkMenu, VMDApp::stage_set_location, and text_cmd_stage.

int Stage::panels int    newp [inline]
 

Definition at line 84 of file Stage.h.

int Stage::panels void    [inline]
 

get/set number of panels (must be >= 1).

Definition at line 83 of file Stage.h.

Referenced by Stage, VMDApp::stage_set_numpanels, and text_cmd_stage.

void Stage::prepare   [virtual]
 

prepare for drawing ... do any updates needed right before draw.

Reimplemented from Displayable.

Definition at line 148 of file Stage.C.

References Displayable::add_rot, Displayable::glob_trans_off, Displayable::glob_trans_on, NO_STAGE, Displayable::reset_transformation, Displayable::rot_off, Displayable::rot_on, Displayable::set_glob_trans, STAGE_BEHIND, STAGE_LEFT, STAGE_LOWER, STAGE_ORIGIN, STAGE_RIGHT, and STAGE_UPPER.


The documentation for this class was generated from the following files:
Generated on Mon Oct 13 01:28:40 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002