In file pfNetDCS.hxx:

class pfNetDCS : public pfDCS, public CAVERNdb_sharedState_c

Networked dynamic coordinate system class

Inheritance:


Public Methods

pfNetDCS ( CAVERNdb_client_c *dbclient, const char *dbpath, const char *name )
Class constructor creates the DCS and its shared state
virtual ~pfNetDCS ()
Class destructor.
char* getPath () const
Return the database path string for this node
char* getName () const
Return the database key name string for this node
void netMat ( pfMatrix &m )
Set the transformation matrix for the coordinate system across the network.
void netRot ( const float &h, const float &p, const float &r )
Set a rotation across the network
void netTrans ( const float &x, const float &y, const float &z )
Set a translation across the network
void netScale ( const float &s )
Set a scalar transformation across the network.
void netScale ( const float &xs, const float &ys, const float &zs )
Set a scalar transformation across the network

Protected Fields

int MATRIX_DATASIZE
run-time determined size of 16 floating point values

Documentation

Networked dynamic coordinate system class. Dynamic coordinate systems are vital elements of manipulative elements of virtual environments. Modifying the coordinate system allows for easy methods to program changes in position, rotation, scaling, or appling other transformations. When used in a collaborative environment, a coordiante system should share its transformation state between connected users.

This networked coordinate system class derives its transformation information from the pfDCS class and its sharing information from the CAVERN database shared state class. The matrix is transmitted to all connected clients whenever there is a modification.

Note that any local changes will need to explicitly call the pfDCS methods, as otherwise the overloaded methods will take precedent.

pfNetDCS( CAVERNdb_client_c *dbclient, const char *dbpath, const char *name )
Class constructor creates the DCS and its shared state. The constructor calls the constructor for the parent shared state class, then it continues to associate this DCS with the database by settings its name to that of the keyname. Also sets the internal MATRIX_DATASIZE value, which is the size (determined at run-time) of 16 floating point values.

void netRot( const float &h, const float &p, const float &r )
Set a rotation across the network
Parameters:
h - heading (rotation about z)
p - pitch (rotation about x)
r - roll (rotation about y)

void netTrans( const float &x, const float &y, const float &z )
Set a translation across the network
Parameters:
x - lateral translation
y - depth translation
z - vertical translation

void netScale( const float &xs, const float &ys, const float &zs )
Set a scalar transformation across the network
Parameters:
xs - x scaling
ys - y scaling
zs - z scaling


This class has no child classes.
Author:
Chris Scharver, Electronic Visualization Laboratory

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