#include <Stage.h>
Inheritance diagram for Stage:
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) |
Definition at line 29 of file Stage.h.
|
enumerated locations for the stage.
|
|
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. |
|
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. |
|
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. |
|
return stage display mode.
Definition at line 61 of file Stage.h. Referenced by Stage. |
|
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. |
|
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. |
|
set number of panels (must be >= 1).
|
|
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. |
|
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. |
|
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. |
|
set the size of the walls (half of side length).
|
|
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. |