In file NsgTransformCmd.hxx:

class NsgTransformCmd : public NsgCmd

This command class derived from NsgCmd handles the transformation related commands for a dcs node

Inheritance:


Public Methods

NsgTransformCmd (NsgInterface* cmdInterface)
Constructor that calls with NsgCmd with its identifier string("NSGTRANSFORM") and the NsgInterface
virtual ~NsgTransformCmd ()
destructor
virtual int parseStream ( const char *cmdString )
called by NsgInterpreter
virtual void execute ()
Calls the doTransform command of NsgInterface
virtual void toStream ( ostrstream& obuf )
Serialises this transform command by putting the command name, dcs identifier and the 16 float transform into the given stream
inline void setDCS (const char* dcsName)
Sets the dcs identifier
inline void setTransform (float* xform)
Sets the transform matrix

Inherited from NsgCmd:

Public Methods

inline string getToken()

Documentation

This command class derived from NsgCmd handles the transformation related commands for a dcs node. It stores the dcs node identifier and the associated transformation as an array of 16 floats.
virtual int parseStream( const char *cmdString )
called by NsgInterpreter. Double checks that its correct command and parses the input string for the dcs name and the 16 floats for the transform returns 1 if succesful, if its the wrong command returns 0
Parameters:
cmdString - string of the form "NSGTRANSFORM dcsid m[0] ... m[15]"

virtual void toStream( ostrstream& obuf )
Serialises this transform command by putting the command name, dcs identifier and the 16 float transform into the given stream
Parameters:
obuf - output string stream

inline void setDCS(const char* dcsName)
Sets the dcs identifier
Parameters:
dcsName - string that identifies the dcs

inline void setTransform(float* xform)
Sets the transform matrix
Parameters:
xform - array of 16 floats (dangerous!)


This class has no child classes.
Author:
Chris Scharver, Shalini Venkataraman

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de