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

Axes Class Reference

A Displayable object which consisting of a set of axes. More...

#include <Axes.h>

Inheritance diagram for Axes:

Displayable Pickable List of all members.

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)

Detailed Description

A Displayable object which consisting of a set of axes.

Definition at line 31 of file Axes.h.


Member Enumeration Documentation

enum Axes::AxesPos
 

locations for the axes.

Enumeration values:
NO_AXES 
AXES_ORIGIN 
AXES_LOWERLEFT 
AXES_LOWERRIGHT 
AXES_UPPERLEFT 
AXES_UPPERRIGHT 
AXESPOS_TOTAL 

Definition at line 34 of file Axes.h.


Constructor & Destructor Documentation

Axes::Axes DisplayDevice  ,
Displayable  
 

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.

Axes::~Axes void    [virtual]
 

Definition at line 105 of file Axes.C.


Member Function Documentation

void Axes::do_color_changed int    [protected, virtual]
 

Reimplemented from Displayable.

Definition at line 112 of file Axes.C.

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

Referenced by Axes.

char * Axes::loc_description int   
 

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.

int Axes::location void    [inline]
 

return axes display mode.

Definition at line 75 of file Axes.h.

int Axes::location int   
 

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.

int Axes::locations void    [inline]
 

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.

void Axes::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 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.

void Axes::prepare   [virtual]
 

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.


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