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

CmdTranslate Class Reference

translate the current scene. More...

#include <CmdTrans.h>

Inheritance diagram for CmdTranslate:

Command List of all members.

Public Types

enum  { BY, TO }

Public Methods

 CmdTranslate (float nx, float ny, float nz, int by_or_to)

Public Attributes

float x
float y
float z
 amount to translate. More...

int byOrTo
 set, or add to, translation? 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

translate the current scene.

Definition at line 68 of file CmdTrans.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
BY 
TO 

Definition at line 70 of file CmdTrans.h.


Constructor & Destructor Documentation

CmdTranslate::CmdTranslate float    nx,
float    ny,
float    nz,
int    by_or_to
 

Definition at line 117 of file CmdTrans.C.

References byOrTo, x, y, and z.


Member Function Documentation

void CmdTranslate::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 111 of file CmdTrans.C.

References BY, byOrTo, Command::cmdText, x, y, and z.


Member Data Documentation

int CmdTranslate::byOrTo
 

set, or add to, translation?

Definition at line 72 of file CmdTrans.h.

Referenced by CmdTranslate, and create_text.

float CmdTranslate::x
 

Definition at line 71 of file CmdTrans.h.

Referenced by CmdTranslate, and create_text.

float CmdTranslate::y
 

Definition at line 71 of file CmdTrans.h.

Referenced by CmdTranslate, and create_text.

float CmdTranslate::z
 

amount to translate.

Definition at line 71 of file CmdTrans.h.

Referenced by CmdTranslate, and create_text.


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