Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   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 number of panels (must be >= 1). More...

int panels (int newp)
 set number of panels (must be >= 1). More...

float size (void)
 return the size of the walls (half of side length). More...

float size (float newsize)
 set the size of the walls (half of side length). More...

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

virtual void pick_move (PickMode *, DisplayDevice *, int, int, const float *)
 called when a pick moves: args = display to use, obj picked, button, mode, tag, dim, pos For 2D version: x & y are 0 ... 1, represent 'relative, scaled' coords. For 3D version: x,y,z are transformed position of pointer For the stage, when they are selected and the pointer moves, we wish to move the stage as well. More...


Protected Methods

virtual void do_color_changed (int)

Detailed Description

Displayable subclass implementing a checkered "stage".

Definition at line 29 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 32 of file Stage.h.


Constructor & Destructor Documentation

Stage::Stage Displayable  
 

constructor: the parent displayable.

Definition at line 45 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 70 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 166 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 61 of file Stage.h.

Referenced by Stage.

int Stage::location int   
 

set stage display mode; return success.

Definition at line 148 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 67 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]
 

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

Definition at line 73 of file Stage.h.

int Stage::panels void    [inline]
 

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

Definition at line 70 of file Stage.h.

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

void Stage::pick_move PickMode  ,
DisplayDevice  ,
int   ,
int   ,
const float *   
[virtual]
 

called when a pick moves: args = display to use, obj picked, button, mode, tag, dim, pos For 2D version: x & y are 0 ... 1, represent 'relative, scaled' coords. For 3D version: x,y,z are transformed position of pointer For the stage, when they are selected and the pointer moves, we wish to move the stage as well.

Reimplemented from Pickable.

Definition at line 254 of file Stage.C.

References DisplayDevice::find_3D_from_2D, Displayable::glob_trans_off, Displayable::glob_trans_on, Matrix4::multpoint3d, Displayable::set_glob_trans, and Displayable::tm.

void Stage::prepare   [virtual]
 

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

Reimplemented from Displayable.

Definition at line 172 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.

float Stage::size float    newsize [inline]
 

set the size of the walls (half of side length).

Definition at line 89 of file Stage.h.

float Stage::size void    [inline]
 

return the size of the walls (half of side length).

Definition at line 86 of file Stage.h.

Referenced by VMDApp::stage_set_size, and text_cmd_stage.


The documentation for this class was generated from the following files:
Generated on Fri Apr 19 02:47:11 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002