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

CmdRotate Class Reference

rotate the current scene. More...

#include <CmdTrans.h>

Inheritance diagram for CmdRotate:

Command List of all members.

Public Types

enum  { BY, TO }

Public Methods

 CmdRotate (float a, char ax, int by_or_to)
 first constructor: a single rotation, no smooth transition. More...

 CmdRotate (float a, char ax, int by_or_to, float inc)
 second constructor: a smooth rotation in given increments ... only useful for "by" rotations. If "to" is given to this constructor, a single-step rotation is done. More...


Public Attributes

char axis
 axis to rotate. More...

float deg
 amount to rotate. More...

int byOrTo
 set, or add to, rotation? More...

int steps
 steps to rotate through; by default this is 1. More...


Protected Methods

virtual void create_text (void)
 virtual function which is called when a text version of the command must be created to be printed to the console or a log file. More...


Detailed Description

rotate the current scene.

Definition at line 45 of file CmdTrans.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
BY 
TO 

Definition at line 47 of file CmdTrans.h.


Constructor & Destructor Documentation

CmdRotate::CmdRotate float    a,
char    ax,
int    by_or_to
 

first constructor: a single rotation, no smooth transition.

Definition at line 54 of file CmdTrans.C.

References BY, byOrTo, deg, and steps.

CmdRotate::CmdRotate float    a,
char    ax,
int    by_or_to,
float    inc
 

second constructor: a smooth rotation in given increments ... only useful for "by" rotations. If "to" is given to this constructor, a single-step rotation is done.

Definition at line 75 of file CmdTrans.C.

References BY, byOrTo, deg, steps, and TO.


Member Function Documentation

void CmdRotate::create_text void    [protected, virtual]
 

virtual function which is called when a text version of the command must be created to be printed to the console or a log file.

Reimplemented from Command.

Definition at line 44 of file CmdTrans.C.

References BY, byOrTo, Command::cmdText, deg, and steps.


Member Data Documentation

char CmdRotate::axis
 

axis to rotate.

Definition at line 48 of file CmdTrans.h.

int CmdRotate::byOrTo
 

set, or add to, rotation?

Definition at line 50 of file CmdTrans.h.

Referenced by CmdRotate, and create_text.

float CmdRotate::deg
 

amount to rotate.

Definition at line 49 of file CmdTrans.h.

Referenced by CmdRotate, and create_text.

int CmdRotate::steps
 

steps to rotate through; by default this is 1.

Definition at line 51 of file CmdTrans.h.

Referenced by CmdRotate, and create_text.


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