#include <Axes.h>
Inheritance diagram for Axes:
Public Types | |
enum | AxesPos { NO_AXES = 0, AXES_ORIGIN, AXES_LOWERLEFT, AXES_LOWERRIGHT, AXES_UPPERLEFT, AXES_UPPERRIGHT, AXESPOS_TOTAL } |
locations for the axes. More... | |
Public Methods | |
Axes (DisplayDevice *, Displayable *) | |
constructor: the display device to take aspect ratio from. More... | |
virtual | ~Axes (void) |
int | location (int) |
set axes display mode. More... | |
int | location (void) |
return axes display mode. More... | |
char * | loc_description (int) |
return location descripton. More... | |
int | locations (void) |
return number of locations. 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 Axes, when they are selected and the pointer moves, we wish to move the axes as well. More... | |
Protected Methods | |
virtual void | do_color_changed (int) |
Definition at line 31 of file Axes.h.
|
locations for the axes.
|
|
constructor: the display device to take aspect ratio from.
Definition at line 55 of file Axes.C. References Scene::add_color_category, Scene::add_color_item, AXES_LOWERLEFT, AXESOCOL, AXESRODLEN, AXESTCOL, AXESTXTLEN, AXESXCOL, AXESYCOL, AXESZCOL, Displayable::cent_trans_off, do_color_changed, Displayable::glob_trans_off, Displayable::rot_on, Displayable::scale_off, Displayable::scale_on, Displayable::scene, and Displayable::set_scale. |
|
|
|
Reimplemented from Displayable. Definition at line 112 of file Axes.C. References Scene::category_item_value, and Displayable::scene. Referenced by Axes. |
|
return location descripton.
Definition at line 263 of file Axes.C. References axesloc. Referenced by VMDApp::axes_set_location, initaxes, MainFltkMenu::MainFltkMenu, py_get_location, and text_cmd_axes. |
|
return axes display mode.
|
|
set axes display mode.
Definition at line 248 of file Axes.C. References NO_AXES, Displayable::off, and Displayable::on. Referenced by VMDApp::axes_set_location, py_get_location, and text_cmd_axes. |
|
return number of locations.
Definition at line 77 of file Axes.h. References AXESPOS_TOTAL. Referenced by VMDApp::axes_set_location, MainFltkMenu::MainFltkMenu, and text_cmd_axes. |
|
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 Axes, when they are selected and the pointer moves, we wish to move the axes as well.
Reimplemented from Pickable. Definition at line 332 of file Axes.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 271 of file Axes.C. References DisplayDevice::aspect, AXES_LOWERLEFT, AXES_LOWERRIGHT, AXES_UPPERLEFT, AXES_UPPERRIGHT, Displayable::glob_trans_off, Displayable::glob_trans_on, NO_AXES, and Displayable::set_glob_trans. |