vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_ForceDevice Class Reference

#include <vrpn_ForceDevice.h>

Inheritance diagram for vrpn_ForceDevice:
Collaboration diagram for vrpn_ForceDevice:

Public Types

enum  ConstraintGeometry { NO_CONSTRAINT , POINT_CONSTRAINT , LINE_CONSTRAINT , PLANE_CONSTRAINT }
 

Public Member Functions

 vrpn_ForceDevice (const char *name, vrpn_Connection *c)
 
virtual ~vrpn_ForceDevice (void)
 
void print_report (void)
 
void print_plane (void)
 
void setSurfaceKspring (vrpn_float32 k)
 
void setSurfaceKdamping (vrpn_float32 d)
 
void setSurfaceFstatic (vrpn_float32 ks)
 
void setSurfaceFdynamic (vrpn_float32 kd)
 
void setRecoveryTime (int rt)
 
void setSurfaceKadhesionNormal (vrpn_float32 k)
 
void setSurfaceKadhesionLateral (vrpn_float32 k)
 
void setSurfaceBuzzFrequency (vrpn_float32 freq)
 
void setSurfaceBuzzAmplitude (vrpn_float32 amp)
 
void setSurfaceTextureWavelength (vrpn_float32 wl)
 
void setSurfaceTextureAmplitude (vrpn_float32 amp)
 
void setCustomEffect (vrpn_int32 effectId, vrpn_float32 *params=NULL, vrpn_uint32 nbParams=0)
 
void setFF_Origin (vrpn_float32 x, vrpn_float32 y, vrpn_float32 z)
 
void setFF_Origin (vrpn_float32 x[3])
 
void setFF_Force (vrpn_float32 fx, vrpn_float32 fy, vrpn_float32 fz)
 
void setFF_Force (vrpn_float32 f[3])
 
void setFF_Jacobian (vrpn_float32 dfxdx, vrpn_float32 dfxdy, vrpn_float32 dfxdz, vrpn_float32 dfydx, vrpn_float32 dfydy, vrpn_float32 dfydz, vrpn_float32 dfzdx, vrpn_float32 dfzdy, vrpn_float32 dfzdz)
 
void setFF_Radius (vrpn_float32 r)
 
void set_plane (vrpn_float32 *p)
 
void set_plane (vrpn_float32 *p, vrpn_float32 d)
 
void set_plane (vrpn_float32 a, vrpn_float32 b, vrpn_float32 c, vrpn_float32 d)
 
void sendError (int error_code)
 
int getRecoveryTime (void)
 
int connectionAvailable (void)
 
- Public Member Functions inherited from vrpn_BaseClass
 vrpn_BaseClass (const char *name, vrpn_Connection *c=NULL)
 Names the device and assigns or opens connection, calls registration methods.
 
virtual ~vrpn_BaseClass ()
 
virtual void mainloop ()=0
 Called once through each main loop iteration to handle updates. Remote object mainloop() should call client_mainloop() and then call d_connection->mainloop(). Server object mainloop() should service the device and then call server_mainloop(), but should not normally call d_connection->mainloop().
 
- Public Member Functions inherited from vrpn_BaseClassUnique
 vrpn_BaseClassUnique ()
 
virtual ~vrpn_BaseClassUnique ()
 Unregister all of the message handlers that were to be autodeleted.
 
vrpn_ConnectionconnectionPtr ()
 Returns a pointer to the connection this object is using.
 

Protected Member Functions

virtual int register_types (void)
 Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
 
- Protected Member Functions inherited from vrpn_BaseClass
virtual int init (void)
 Initialize things that the constructor can't. Returns 0 on success, -1 on failure.
 
virtual int register_senders (void)
 Register the sender for this device (by default, the name of the device). Return 0 on success, -1 on fail.
 
- Protected Member Functions inherited from vrpn_BaseClassUnique
int register_autodeleted_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER)
 Registers a handler with the connection, and remembers to delete at destruction.
 
int send_text_message (const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0)
 Sends a NULL-terminated text message from the device d_sender_id.
 
SendTextMessageBoundCall send_text_message (vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL)
 Returns an object you can stream into to send a text message from the device like send_text_message(vrpn_TEXT_WARNING) << "Value of i is: " << i; This use requires including vrpn_SendTextMessageStreamProxy.h.
 
void server_mainloop (void)
 Handles functions that all servers should provide in their mainloop() (ping/pong, for example) Should be called by all servers in their mainloop()
 
void client_mainloop (void)
 Handles functions that all clients should provide in their mainloop() (warning of no server, for example) Should be called by all clients in their mainloop()
 

Static Protected Member Functions

static char * encode_custom_effect (vrpn_int32 &len, vrpn_uint32 effectId, const vrpn_float32 *params, vrpn_uint32 nbParams)
 
static char * encode_force (vrpn_int32 &length, const vrpn_float64 *force)
 
static char * encode_scp (vrpn_int32 &length, const vrpn_float64 *pos, const vrpn_float64 *quat)
 
static char * encode_plane (vrpn_int32 &length, const vrpn_float32 *plane, const vrpn_float32 kspring, const vrpn_float32 kdamp, const vrpn_float32 fdyn, const vrpn_float32 fstat, const vrpn_int32 plane_index, const vrpn_int32 n_rec_cycles)
 
static char * encode_surface_effects (vrpn_int32 &len, const vrpn_float32 k_adhesion_norm, const vrpn_float32 k_adhesion_lat, const vrpn_float32 tex_amp, const vrpn_float32 tex_wl, const vrpn_float32 buzz_amp, const vrpn_float32 buzz_freq)
 
static char * encode_vertex (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_int32 vertNum, const vrpn_float32 x, const vrpn_float32 y, const vrpn_float32 z)
 
static char * encode_normal (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_int32 vertNum, const vrpn_float32 x, const vrpn_float32 y, const vrpn_float32 z)
 
static char * encode_triangle (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_int32 triNum, const vrpn_int32 vert0, const vrpn_int32 vert1, const vrpn_int32 vert2, const vrpn_int32 norm0, const vrpn_int32 norm1, const vrpn_int32 norm2)
 
static char * encode_removeTriangle (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_int32 triNum)
 
static char * encode_updateTrimeshChanges (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_float32 kspring, const vrpn_float32 kdamp, const vrpn_float32 fdyn, const vrpn_float32 fstat)
 
static char * encode_setTrimeshType (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_int32 type)
 
static char * encode_trimeshTransform (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_float32 homMatrix[16])
 
static char * encode_addObject (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_int32 ParentNum)
 
static char * encode_addObjectExScene (vrpn_int32 &len, const vrpn_int32 objNum)
 
static char * encode_objectPosition (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_float32 Pos[3])
 
static char * encode_objectOrientation (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_float32 axis[3], const vrpn_float32 angle)
 
static char * encode_objectScale (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_float32 Scale[3])
 
static char * encode_removeObject (vrpn_int32 &len, const vrpn_int32 objNum)
 
static char * encode_clearTrimesh (vrpn_int32 &len, const vrpn_int32 objNum)
 
static char * encode_moveToParent (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_int32 parentNum)
 
static char * encode_setHapticOrigin (vrpn_int32 &len, const vrpn_float32 Pos[3], const vrpn_float32 axis[3], const vrpn_float32 angle)
 
static char * encode_setSceneOrigin (vrpn_int32 &len, const vrpn_float32 Pos[3], const vrpn_float32 axis[3], const vrpn_float32 angle)
 
static char * encode_setHapticScale (vrpn_int32 &len, const vrpn_float32 Scale)
 
static char * encode_setObjectIsTouchable (vrpn_int32 &len, const vrpn_int32 objNum, const vrpn_bool isTouchable)
 
static char * encode_forcefield (vrpn_int32 &len, const vrpn_float32 origin[3], const vrpn_float32 force[3], const vrpn_float32 jacobian[3][3], const vrpn_float32 radius)
 
static char * encode_error (vrpn_int32 &len, const vrpn_int32 error_code)
 
static vrpn_int32 decode_custom_effect (const char *buffer, const vrpn_int32 len, vrpn_uint32 *effectId, vrpn_float32 **params, vrpn_uint32 *nbParams)
 
static vrpn_int32 decode_force (const char *buffer, const vrpn_int32 len, vrpn_float64 *force)
 
static vrpn_int32 decode_scp (const char *buffer, const vrpn_int32 len, vrpn_float64 *pos, vrpn_float64 *quat)
 
static vrpn_int32 decode_plane (const char *buffer, const vrpn_int32 len, vrpn_float32 *plane, vrpn_float32 *kspring, vrpn_float32 *kdamp, vrpn_float32 *fdyn, vrpn_float32 *fstat, vrpn_int32 *plane_index, vrpn_int32 *n_rec_cycles)
 
static vrpn_int32 decode_surface_effects (const char *buffer, const vrpn_int32 len, vrpn_float32 *k_adhesion_norm, vrpn_float32 *k_adhesion_lat, vrpn_float32 *tex_amp, vrpn_float32 *tex_wl, vrpn_float32 *buzz_amp, vrpn_float32 *buzz_freq)
 
static vrpn_int32 decode_vertex (const char *buffer, const vrpn_int32 len, vrpn_int32 *objNum, vrpn_int32 *vertNum, vrpn_float32 *x, vrpn_float32 *y, vrpn_float32 *z)
 
static vrpn_int32 decode_normal (const char *buffer, const vrpn_int32 len, vrpn_int32 *objNum, vrpn_int32 *vertNum, vrpn_float32 *x, vrpn_float32 *y, vrpn_float32 *z)
 
static vrpn_int32 decode_triangle (const char *buffer, const vrpn_int32 len, vrpn_int32 *objNum, vrpn_int32 *triNum, vrpn_int32 *vert0, vrpn_int32 *vert1, vrpn_int32 *vert2, vrpn_int32 *norm0, vrpn_int32 *norm1, vrpn_int32 *norm2)
 
static vrpn_int32 decode_removeTriangle (const char *buffer, const vrpn_int32 len, vrpn_int32 *objNum, vrpn_int32 *triNum)
 
static vrpn_int32 decode_updateTrimeshChanges (const char *buffer, const vrpn_int32 len, vrpn_int32 *objNum, vrpn_float32 *kspring, vrpn_float32 *kdamp, vrpn_float32 *fdyn, vrpn_float32 *fstat)
 
static vrpn_int32 decode_setTrimeshType (const char *buffer, const vrpn_int32 len, vrpn_int32 *objNum, vrpn_int32 *type)
 
static vrpn_int32 decode_trimeshTransform (const char *buffer, const vrpn_int32 len, vrpn_int32 *objNum, vrpn_float32 homMatrix[16])
 
static vrpn_int32 decode_addObject (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum, vrpn_int32 *ParentNum)
 
static vrpn_int32 decode_addObjectExScene (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum)
 
static vrpn_int32 decode_objectPosition (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum, vrpn_float32 Pos[3])
 
static vrpn_int32 decode_objectOrientation (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum, vrpn_float32 axis[3], vrpn_float32 *angle)
 
static vrpn_int32 decode_objectScale (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum, vrpn_float32 Scale[3])
 
static vrpn_int32 decode_removeObject (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum)
 
static vrpn_int32 decode_clearTrimesh (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum)
 
static vrpn_int32 decode_moveToParent (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum, vrpn_int32 *parentNum)
 
static vrpn_int32 decode_setHapticOrigin (const char *buffer, vrpn_int32 len, vrpn_float32 Pos[3], vrpn_float32 axis[3], vrpn_float32 *angle)
 
static vrpn_int32 decode_setHapticScale (const char *buffer, vrpn_int32 len, vrpn_float32 *Scale)
 
static vrpn_int32 decode_setSceneOrigin (const char *buffer, vrpn_int32 len, vrpn_float32 Pos[3], vrpn_float32 axis[3], vrpn_float32 *angle)
 
static vrpn_int32 decode_setObjectIsTouchable (const char *buffer, vrpn_int32 len, vrpn_int32 *objNum, vrpn_bool *isTouchable)
 
static vrpn_int32 decode_forcefield (const char *buffer, const vrpn_int32 len, vrpn_float32 origin[3], vrpn_float32 force[3], vrpn_float32 jacobian[3][3], vrpn_float32 *radius)
 
static vrpn_int32 decode_error (const char *buffer, const vrpn_int32 len, vrpn_int32 *error_code)
 
static char * encode_enableConstraint (vrpn_int32 &len, vrpn_int32 enable)
 
static vrpn_int32 decode_enableConstraint (const char *buffer, const vrpn_int32 len, vrpn_int32 *enable)
 
static char * encode_setConstraintMode (vrpn_int32 &len, ConstraintGeometry mode)
 
static vrpn_int32 decode_setConstraintMode (const char *buffer, const vrpn_int32 len, ConstraintGeometry *mode)
 
static char * encode_setConstraintPoint (vrpn_int32 &len, vrpn_float32 x, vrpn_float32 y, vrpn_float32 z)
 
static vrpn_int32 decode_setConstraintPoint (const char *buffer, const vrpn_int32 len, vrpn_float32 *x, vrpn_float32 *y, vrpn_float32 *z)
 
static char * encode_setConstraintLinePoint (vrpn_int32 &len, vrpn_float32 x, vrpn_float32 y, vrpn_float32 z)
 
static vrpn_int32 decode_setConstraintLinePoint (const char *buffer, const vrpn_int32 len, vrpn_float32 *x, vrpn_float32 *y, vrpn_float32 *z)
 
static char * encode_setConstraintLineDirection (vrpn_int32 &len, vrpn_float32 x, vrpn_float32 y, vrpn_float32 z)
 
static vrpn_int32 decode_setConstraintLineDirection (const char *buffer, const vrpn_int32 len, vrpn_float32 *x, vrpn_float32 *y, vrpn_float32 *z)
 
static char * encode_setConstraintPlanePoint (vrpn_int32 &len, vrpn_float32 x, vrpn_float32 y, vrpn_float32 z)
 
static vrpn_int32 decode_setConstraintPlanePoint (const char *buffer, const vrpn_int32 len, vrpn_float32 *x, vrpn_float32 *y, vrpn_float32 *z)
 
static char * encode_setConstraintPlaneNormal (vrpn_int32 &len, vrpn_float32 x, vrpn_float32 y, vrpn_float32 z)
 
static vrpn_int32 decode_setConstraintPlaneNormal (const char *buffer, const vrpn_int32 len, vrpn_float32 *x, vrpn_float32 *y, vrpn_float32 *z)
 
static char * encode_setConstraintKSpring (vrpn_int32 &len, vrpn_float32 k)
 
static vrpn_int32 decode_setConstraintKSpring (const char *buffer, const vrpn_int32 len, vrpn_float32 *k)
 
static char * encodePoint (vrpn_int32 &len, vrpn_float32 x, vrpn_float32 y, vrpn_float32 z)
 
static vrpn_int32 decodePoint (const char *buffer, const vrpn_int32 len, vrpn_float32 *x, vrpn_float32 *y, vrpn_float32 *z)
 
- Static Protected Member Functions inherited from vrpn_BaseClassUnique
static int encode_text_message_to_buffer (char *buf, vrpn_TEXT_SEVERITY severity, vrpn_uint32 level, const char *msg)
 Encodes the body of the text message into a buffer, preparing for sending.
 
static int decode_text_message_from_buffer (char *msg, vrpn_TEXT_SEVERITY *severity, vrpn_uint32 *level, const char *buf)
 Decodes the body of the text message from a buffer from the connection.
 

Protected Attributes

vrpn_int32 force_message_id
 
vrpn_int32 plane_message_id
 
vrpn_int32 plane_effects_message_id
 
vrpn_int32 forcefield_message_id
 
vrpn_int32 scp_message_id
 
vrpn_int32 enableConstraint_message_id
 
vrpn_int32 setConstraintMode_message_id
 
vrpn_int32 setConstraintPoint_message_id
 
vrpn_int32 setConstraintLinePoint_message_id
 
vrpn_int32 setConstraintLineDirection_message_id
 
vrpn_int32 setConstraintPlanePoint_message_id
 
vrpn_int32 setConstraintPlaneNormal_message_id
 
vrpn_int32 setConstraintKSpring_message_id
 
vrpn_int32 error_message_id
 
vrpn_int32 addObject_message_id
 
vrpn_int32 addObjectExScene_message_id
 
vrpn_int32 moveToParent_message_id
 
vrpn_int32 setObjectPosition_message_id
 
vrpn_int32 setObjectOrientation_message_id
 
vrpn_int32 setObjectScale_message_id
 
vrpn_int32 removeObject_message_id
 
vrpn_int32 setVertex_message_id
 
vrpn_int32 setNormal_message_id
 
vrpn_int32 setTriangle_message_id
 
vrpn_int32 removeTriangle_message_id
 
vrpn_int32 updateTrimeshChanges_message_id
 
vrpn_int32 transformTrimesh_message_id
 
vrpn_int32 setTrimeshType_message_id
 
vrpn_int32 clearTrimesh_message_id
 
vrpn_int32 setHapticOrigin_message_id
 
vrpn_int32 setHapticScale_message_id
 
vrpn_int32 setSceneOrigin_message_id
 
vrpn_int32 getNewObjectID_message_id
 
vrpn_int32 setObjectIsTouchable_message_id
 
vrpn_int32 custom_effect_message_id
 
struct timeval timestamp
 
vrpn_int32 which_plane
 
vrpn_float64 d_force [3]
 d_force isn't used in vrpn_ForceDevice, but seems to be used by derived classes? What's the meaning?
 
vrpn_float64 scp_pos [3]
 
vrpn_float64 scp_quat [4]
 
vrpn_float32 plane [4]
 
vrpn_float32 ff_origin [3]
 
vrpn_float32 ff_force [3]
 
vrpn_float32 ff_jacobian [3][3]
 
vrpn_float32 ff_radius
 
vrpn_float32 SurfaceKspring
 
vrpn_float32 SurfaceKdamping
 
vrpn_float32 SurfaceFstatic
 
vrpn_float32 SurfaceFdynamic
 
vrpn_int32 numRecCycles
 
vrpn_int32 errorCode
 
vrpn_float32 SurfaceKadhesionLateral
 
vrpn_float32 SurfaceKadhesionNormal
 
vrpn_float32 SurfaceBuzzFreq
 
vrpn_float32 SurfaceBuzzAmp
 
vrpn_float32 SurfaceTextureWavelength
 
vrpn_float32 SurfaceTextureAmplitude
 
vrpn_int32 customEffectId
 
vrpn_float32 * customEffectParams
 
vrpn_uint32 nbCustomEffectParams
 
- Protected Attributes inherited from vrpn_BaseClassUnique
vrpn_Connectiond_connection
 Connection that this object talks to.
 
char * d_servicename
 Name of this device, not including the connection part.
 
vrpn_int32 d_sender_id
 Sender ID registered with the connection.
 
vrpn_int32 d_text_message_id
 ID for text messages.
 
vrpn_int32 d_ping_message_id
 Ask the server if they are there.
 
vrpn_int32 d_pong_message_id
 Server telling that it is there.
 

Additional Inherited Members

- Public Attributes inherited from vrpn_BaseClassUnique
bool shutup
 

Detailed Description

Definition at line 39 of file vrpn_ForceDevice.h.

Member Enumeration Documentation

◆ ConstraintGeometry

Enumerator
NO_CONSTRAINT 
POINT_CONSTRAINT 
LINE_CONSTRAINT 
PLANE_CONSTRAINT 

Definition at line 131 of file vrpn_ForceDevice.h.

Constructor & Destructor Documentation

◆ vrpn_ForceDevice()

◆ ~vrpn_ForceDevice()

vrpn_ForceDevice::~vrpn_ForceDevice ( void )
virtual

Definition at line 193 of file vrpn_ForceDevice.C.

References customEffectParams.

Member Function Documentation

◆ connectionAvailable()

int vrpn_ForceDevice::connectionAvailable ( void )
inline

Definition at line 127 of file vrpn_ForceDevice.h.

◆ decode_addObject()

vrpn_int32 vrpn_ForceDevice::decode_addObject ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_int32 * ParentNum )
staticprotected

Definition at line 898 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_addObject_message().

Here is the call graph for this function:

◆ decode_addObjectExScene()

vrpn_int32 vrpn_ForceDevice::decode_addObjectExScene ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum )
staticprotected

Definition at line 937 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_addObjectExScene_message().

Here is the call graph for this function:

◆ decode_clearTrimesh()

vrpn_int32 vrpn_ForceDevice::decode_clearTrimesh ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum )
staticprotected

Definition at line 1154 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_clearTrimesh_message().

Here is the call graph for this function:

◆ decode_custom_effect()

vrpn_int32 vrpn_ForceDevice::decode_custom_effect ( const char * buffer,
const vrpn_int32 len,
vrpn_uint32 * effectId,
vrpn_float32 ** params,
vrpn_uint32 * nbParams )
staticprotected

Definition at line 294 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decode_enableConstraint()

vrpn_int32 vrpn_ForceDevice::decode_enableConstraint ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * enable )
staticprotected

Definition at line 1585 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decode_error()

vrpn_int32 vrpn_ForceDevice::decode_error ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * error_code )
staticprotected

Definition at line 1492 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDevice_Remote::handle_error_change_message().

Here is the call graph for this function:

◆ decode_force()

vrpn_int32 vrpn_ForceDevice::decode_force ( const char * buffer,
const vrpn_int32 len,
vrpn_float64 * force )
staticprotected

Definition at line 246 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDevice_Remote::handle_force_change_message().

Here is the call graph for this function:

◆ decode_forcefield()

vrpn_int32 vrpn_ForceDevice::decode_forcefield ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 origin[3],
vrpn_float32 force[3],
vrpn_float32 jacobian[3][3],
vrpn_float32 * radius )
staticprotected

Definition at line 1442 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decode_moveToParent()

vrpn_int32 vrpn_ForceDevice::decode_moveToParent ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_int32 * parentNum )
staticprotected

Definition at line 1193 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_moveToParent_message().

Here is the call graph for this function:

◆ decode_normal()

vrpn_int32 vrpn_ForceDevice::decode_normal ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_int32 * vertNum,
vrpn_float32 * x,
vrpn_float32 * y,
vrpn_float32 * z )
staticprotected

Definition at line 601 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setNormal_message().

Here is the call graph for this function:

◆ decode_objectOrientation()

vrpn_int32 vrpn_ForceDevice::decode_objectOrientation ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_float32 axis[3],
vrpn_float32 * angle )
staticprotected

Definition at line 1026 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setObjectOrientation_message().

Here is the call graph for this function:

◆ decode_objectPosition()

vrpn_int32 vrpn_ForceDevice::decode_objectPosition ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_float32 Pos[3] )
staticprotected

Definition at line 978 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setObjectPosition_message().

Here is the call graph for this function:

◆ decode_objectScale()

vrpn_int32 vrpn_ForceDevice::decode_objectScale ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_float32 Scale[3] )
staticprotected

Definition at line 1075 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setObjectScale_message().

Here is the call graph for this function:

◆ decode_plane()

vrpn_int32 vrpn_ForceDevice::decode_plane ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * plane,
vrpn_float32 * kspring,
vrpn_float32 * kdamp,
vrpn_float32 * fdyn,
vrpn_float32 * fstat,
vrpn_int32 * plane_index,
vrpn_int32 * n_rec_cycles )
staticprotected

Definition at line 433 of file vrpn_ForceDevice.C.

References CHECK, plane, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decode_removeObject()

vrpn_int32 vrpn_ForceDevice::decode_removeObject ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum )
staticprotected

Definition at line 1117 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_removeObject_message().

Here is the call graph for this function:

◆ decode_removeTriangle()

vrpn_int32 vrpn_ForceDevice::decode_removeTriangle ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_int32 * triNum )
staticprotected

Definition at line 710 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_removeTriangle_message().

Here is the call graph for this function:

◆ decode_scp()

vrpn_int32 vrpn_ForceDevice::decode_scp ( const char * buffer,
const vrpn_int32 len,
vrpn_float64 * pos,
vrpn_float64 * quat )
staticprotected

Definition at line 374 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDevice_Remote::handle_scp_change_message().

Here is the call graph for this function:

◆ decode_setConstraintKSpring()

vrpn_int32 vrpn_ForceDevice::decode_setConstraintKSpring ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * k )
staticprotected

Definition at line 1796 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decode_setConstraintLineDirection()

vrpn_int32 vrpn_ForceDevice::decode_setConstraintLineDirection ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * x,
vrpn_float32 * y,
vrpn_float32 * z )
staticprotected

Definition at line 1734 of file vrpn_ForceDevice.C.

References decodePoint().

Here is the call graph for this function:

◆ decode_setConstraintLinePoint()

vrpn_int32 vrpn_ForceDevice::decode_setConstraintLinePoint ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * x,
vrpn_float32 * y,
vrpn_float32 * z )
staticprotected

Definition at line 1715 of file vrpn_ForceDevice.C.

References decodePoint().

Here is the call graph for this function:

◆ decode_setConstraintMode()

vrpn_int32 vrpn_ForceDevice::decode_setConstraintMode ( const char * buffer,
const vrpn_int32 len,
ConstraintGeometry * mode )
staticprotected

Definition at line 1646 of file vrpn_ForceDevice.C.

References CHECK, LINE_CONSTRAINT, NO_CONSTRAINT, PLANE_CONSTRAINT, POINT_CONSTRAINT, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decode_setConstraintPlaneNormal()

vrpn_int32 vrpn_ForceDevice::decode_setConstraintPlaneNormal ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * x,
vrpn_float32 * y,
vrpn_float32 * z )
staticprotected

Definition at line 1768 of file vrpn_ForceDevice.C.

References decodePoint().

Here is the call graph for this function:

◆ decode_setConstraintPlanePoint()

vrpn_int32 vrpn_ForceDevice::decode_setConstraintPlanePoint ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * x,
vrpn_float32 * y,
vrpn_float32 * z )
staticprotected

Definition at line 1751 of file vrpn_ForceDevice.C.

References decodePoint().

Here is the call graph for this function:

◆ decode_setConstraintPoint()

vrpn_int32 vrpn_ForceDevice::decode_setConstraintPoint ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * x,
vrpn_float32 * y,
vrpn_float32 * z )
staticprotected

Definition at line 1696 of file vrpn_ForceDevice.C.

References decodePoint().

Here is the call graph for this function:

◆ decode_setHapticOrigin()

vrpn_int32 vrpn_ForceDevice::decode_setHapticOrigin ( const char * buffer,
vrpn_int32 len,
vrpn_float32 Pos[3],
vrpn_float32 axis[3],
vrpn_float32 * angle )
staticprotected

Definition at line 1243 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setHapticOrigin_message().

Here is the call graph for this function:

◆ decode_setHapticScale()

vrpn_int32 vrpn_ForceDevice::decode_setHapticScale ( const char * buffer,
vrpn_int32 len,
vrpn_float32 * Scale )
staticprotected

Definition at line 1289 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setHapticScale_message().

Here is the call graph for this function:

◆ decode_setObjectIsTouchable()

vrpn_int32 vrpn_ForceDevice::decode_setObjectIsTouchable ( const char * buffer,
vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_bool * isTouchable )
staticprotected

Definition at line 1385 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setObjectIsTouchable_message().

Here is the call graph for this function:

◆ decode_setSceneOrigin()

vrpn_int32 vrpn_ForceDevice::decode_setSceneOrigin ( const char * buffer,
vrpn_int32 len,
vrpn_float32 Pos[3],
vrpn_float32 axis[3],
vrpn_float32 * angle )
staticprotected

Definition at line 1336 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setSceneOrigin_message().

Here is the call graph for this function:

◆ decode_setTrimeshType()

vrpn_int32 vrpn_ForceDevice::decode_setTrimeshType ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_int32 * type )
staticprotected

Definition at line 808 of file vrpn_ForceDevice.C.

References CHECK, vrpn_BaseClassUnique::type, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setTrimeshType_message().

Here is the call graph for this function:

◆ decode_surface_effects()

vrpn_int32 vrpn_ForceDevice::decode_surface_effects ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * k_adhesion_norm,
vrpn_float32 * k_adhesion_lat,
vrpn_float32 * tex_amp,
vrpn_float32 * tex_wl,
vrpn_float32 * buzz_amp,
vrpn_float32 * buzz_freq )
staticprotected

Definition at line 492 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Here is the call graph for this function:

◆ decode_triangle()

vrpn_int32 vrpn_ForceDevice::decode_triangle ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_int32 * triNum,
vrpn_int32 * vert0,
vrpn_int32 * vert1,
vrpn_int32 * vert2,
vrpn_int32 * norm0,
vrpn_int32 * norm1,
vrpn_int32 * norm2 )
staticprotected

Definition at line 659 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setTriangle_message().

Here is the call graph for this function:

◆ decode_trimeshTransform()

vrpn_int32 vrpn_ForceDevice::decode_trimeshTransform ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_float32 homMatrix[16] )
staticprotected

Definition at line 854 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_transformTrimesh_message().

Here is the call graph for this function:

◆ decode_updateTrimeshChanges()

vrpn_int32 vrpn_ForceDevice::decode_updateTrimeshChanges ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_float32 * kspring,
vrpn_float32 * kdamp,
vrpn_float32 * fdyn,
vrpn_float32 * fstat )
staticprotected

Definition at line 759 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_updateTrimeshChanges_message().

Here is the call graph for this function:

◆ decode_vertex()

vrpn_int32 vrpn_ForceDevice::decode_vertex ( const char * buffer,
const vrpn_int32 len,
vrpn_int32 * objNum,
vrpn_int32 * vertNum,
vrpn_float32 * x,
vrpn_float32 * y,
vrpn_float32 * z )
staticprotected

Definition at line 547 of file vrpn_ForceDevice.C.

References CHECK, and vrpn_unbuffer().

Referenced by vrpn_ForceDeviceServer::handle_setVertex_message().

Here is the call graph for this function:

◆ decodePoint()

vrpn_int32 vrpn_ForceDevice::decodePoint ( const char * buffer,
const vrpn_int32 len,
vrpn_float32 * x,
vrpn_float32 * y,
vrpn_float32 * z )
staticprotected

◆ encode_addObject()

char * vrpn_ForceDevice::encode_addObject ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_int32 ParentNum )
staticprotected

Definition at line 877 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::addObject().

Here is the call graph for this function:

◆ encode_addObjectExScene()

char * vrpn_ForceDevice::encode_addObjectExScene ( vrpn_int32 & len,
const vrpn_int32 objNum )
staticprotected

Definition at line 918 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::addObjectExScene().

Here is the call graph for this function:

◆ encode_clearTrimesh()

char * vrpn_ForceDevice::encode_clearTrimesh ( vrpn_int32 & len,
const vrpn_int32 objNum )
staticprotected

Definition at line 1135 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::clearObjectTrimesh().

Here is the call graph for this function:

◆ encode_custom_effect()

char * vrpn_ForceDevice::encode_custom_effect ( vrpn_int32 & len,
vrpn_uint32 effectId,
const vrpn_float32 * params,
vrpn_uint32 nbParams )
staticprotected

Definition at line 267 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::startEffect(), and vrpn_ForceDevice_Remote::stopEffect().

Here is the call graph for this function:

◆ encode_enableConstraint()

char * vrpn_ForceDevice::encode_enableConstraint ( vrpn_int32 & len,
vrpn_int32 enable )
staticprotected

Definition at line 1565 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Here is the call graph for this function:

◆ encode_error()

char * vrpn_ForceDevice::encode_error ( vrpn_int32 & len,
const vrpn_int32 error_code )
staticprotected

Definition at line 1472 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by sendError().

Here is the call graph for this function:

◆ encode_force()

char * vrpn_ForceDevice::encode_force ( vrpn_int32 & length,
const vrpn_float64 * force )
staticprotected

Definition at line 219 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Here is the call graph for this function:

◆ encode_forcefield()

char * vrpn_ForceDevice::encode_forcefield ( vrpn_int32 & len,
const vrpn_float32 origin[3],
const vrpn_float32 force[3],
const vrpn_float32 jacobian[3][3],
const vrpn_float32 radius )
staticprotected

Definition at line 1408 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::sendForceField(), and vrpn_ForceDevice_Remote::stopForceField().

Here is the call graph for this function:

◆ encode_moveToParent()

char * vrpn_ForceDevice::encode_moveToParent ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_int32 parentNum )
staticprotected

Definition at line 1172 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::moveToParent().

Here is the call graph for this function:

◆ encode_normal()

char * vrpn_ForceDevice::encode_normal ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_int32 vertNum,
const vrpn_float32 x,
const vrpn_float32 y,
const vrpn_float32 z )
staticprotected

Definition at line 573 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setObjectNormal().

Here is the call graph for this function:

◆ encode_objectOrientation()

char * vrpn_ForceDevice::encode_objectOrientation ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_float32 axis[3],
const vrpn_float32 angle )
staticprotected

Definition at line 1001 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setObjectOrientation().

Here is the call graph for this function:

◆ encode_objectPosition()

char * vrpn_ForceDevice::encode_objectPosition ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_float32 Pos[3] )
staticprotected

Definition at line 955 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setObjectPosition().

Here is the call graph for this function:

◆ encode_objectScale()

char * vrpn_ForceDevice::encode_objectScale ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_float32 Scale[3] )
staticprotected

Definition at line 1052 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setObjectScale().

Here is the call graph for this function:

◆ encode_plane()

char * vrpn_ForceDevice::encode_plane ( vrpn_int32 & length,
const vrpn_float32 * plane,
const vrpn_float32 kspring,
const vrpn_float32 kdamp,
const vrpn_float32 fdyn,
const vrpn_float32 fstat,
const vrpn_int32 plane_index,
const vrpn_int32 n_rec_cycles )
staticprotected

Definition at line 398 of file vrpn_ForceDevice.C.

References plane, and vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::sendSurface(), vrpn_ForceDevice_Remote::startSurface(), and vrpn_ForceDevice_Remote::stopSurface().

Here is the call graph for this function:

◆ encode_removeObject()

char * vrpn_ForceDevice::encode_removeObject ( vrpn_int32 & len,
const vrpn_int32 objNum )
staticprotected

Definition at line 1098 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::removeObject().

Here is the call graph for this function:

◆ encode_removeTriangle()

char * vrpn_ForceDevice::encode_removeTriangle ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_int32 triNum )
staticprotected

Definition at line 687 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::removeObjectTriangle().

Here is the call graph for this function:

◆ encode_scp()

char * vrpn_ForceDevice::encode_scp ( vrpn_int32 & length,
const vrpn_float64 * pos,
const vrpn_float64 * quat )
staticprotected

Definition at line 348 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Here is the call graph for this function:

◆ encode_setConstraintKSpring()

char * vrpn_ForceDevice::encode_setConstraintKSpring ( vrpn_int32 & len,
vrpn_float32 k )
staticprotected

Definition at line 1776 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Here is the call graph for this function:

◆ encode_setConstraintLineDirection()

char * vrpn_ForceDevice::encode_setConstraintLineDirection ( vrpn_int32 & len,
vrpn_float32 x,
vrpn_float32 y,
vrpn_float32 z )
staticprotected

Definition at line 1725 of file vrpn_ForceDevice.C.

References encodePoint().

Here is the call graph for this function:

◆ encode_setConstraintLinePoint()

char * vrpn_ForceDevice::encode_setConstraintLinePoint ( vrpn_int32 & len,
vrpn_float32 x,
vrpn_float32 y,
vrpn_float32 z )
staticprotected

Definition at line 1706 of file vrpn_ForceDevice.C.

References encodePoint().

Here is the call graph for this function:

◆ encode_setConstraintMode()

char * vrpn_ForceDevice::encode_setConstraintMode ( vrpn_int32 & len,
ConstraintGeometry mode )
staticprotected

Definition at line 1605 of file vrpn_ForceDevice.C.

References LINE_CONSTRAINT, NO_CONSTRAINT, PLANE_CONSTRAINT, POINT_CONSTRAINT, and vrpn_buffer().

Here is the call graph for this function:

◆ encode_setConstraintPlaneNormal()

char * vrpn_ForceDevice::encode_setConstraintPlaneNormal ( vrpn_int32 & len,
vrpn_float32 x,
vrpn_float32 y,
vrpn_float32 z )
staticprotected

Definition at line 1759 of file vrpn_ForceDevice.C.

References encodePoint().

Here is the call graph for this function:

◆ encode_setConstraintPlanePoint()

char * vrpn_ForceDevice::encode_setConstraintPlanePoint ( vrpn_int32 & len,
vrpn_float32 x,
vrpn_float32 y,
vrpn_float32 z )
staticprotected

Definition at line 1742 of file vrpn_ForceDevice.C.

References encodePoint().

Here is the call graph for this function:

◆ encode_setConstraintPoint()

char * vrpn_ForceDevice::encode_setConstraintPoint ( vrpn_int32 & len,
vrpn_float32 x,
vrpn_float32 y,
vrpn_float32 z )
staticprotected

Definition at line 1687 of file vrpn_ForceDevice.C.

References encodePoint().

Here is the call graph for this function:

◆ encode_setHapticOrigin()

char * vrpn_ForceDevice::encode_setHapticOrigin ( vrpn_int32 & len,
const vrpn_float32 Pos[3],
const vrpn_float32 axis[3],
const vrpn_float32 angle )
staticprotected

Definition at line 1215 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setHapticOrigin().

Here is the call graph for this function:

◆ encode_setHapticScale()

char * vrpn_ForceDevice::encode_setHapticScale ( vrpn_int32 & len,
const vrpn_float32 Scale )
staticprotected

Definition at line 1270 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setHapticScale().

Here is the call graph for this function:

◆ encode_setObjectIsTouchable()

char * vrpn_ForceDevice::encode_setObjectIsTouchable ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_bool isTouchable )
staticprotected

Definition at line 1364 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setObjectIsTouchable().

Here is the call graph for this function:

◆ encode_setSceneOrigin()

char * vrpn_ForceDevice::encode_setSceneOrigin ( vrpn_int32 & len,
const vrpn_float32 Pos[3],
const vrpn_float32 axis[3],
const vrpn_float32 angle )
staticprotected

Definition at line 1308 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setSceneOrigin().

Here is the call graph for this function:

◆ encode_setTrimeshType()

char * vrpn_ForceDevice::encode_setTrimeshType ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_int32 type )
staticprotected

Definition at line 785 of file vrpn_ForceDevice.C.

References vrpn_BaseClassUnique::type, and vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::useGhost(), and vrpn_ForceDevice_Remote::useHcollide().

Here is the call graph for this function:

◆ encode_surface_effects()

char * vrpn_ForceDevice::encode_surface_effects ( vrpn_int32 & len,
const vrpn_float32 k_adhesion_norm,
const vrpn_float32 k_adhesion_lat,
const vrpn_float32 tex_amp,
const vrpn_float32 tex_wl,
const vrpn_float32 buzz_amp,
const vrpn_float32 buzz_freq )
staticprotected

Definition at line 462 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::sendSurface().

Here is the call graph for this function:

◆ encode_triangle()

char * vrpn_ForceDevice::encode_triangle ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_int32 triNum,
const vrpn_int32 vert0,
const vrpn_int32 vert1,
const vrpn_int32 vert2,
const vrpn_int32 norm0,
const vrpn_int32 norm1,
const vrpn_int32 norm2 )
staticprotected

Definition at line 630 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setObjectTriangle().

Here is the call graph for this function:

◆ encode_trimeshTransform()

char * vrpn_ForceDevice::encode_trimeshTransform ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_float32 homMatrix[16] )
staticprotected

Definition at line 831 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setObjectTrimeshTransform().

Here is the call graph for this function:

◆ encode_updateTrimeshChanges()

char * vrpn_ForceDevice::encode_updateTrimeshChanges ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_float32 kspring,
const vrpn_float32 kdamp,
const vrpn_float32 fdyn,
const vrpn_float32 fstat )
staticprotected

Definition at line 733 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::updateObjectTrimeshChanges().

Here is the call graph for this function:

◆ encode_vertex()

char * vrpn_ForceDevice::encode_vertex ( vrpn_int32 & len,
const vrpn_int32 objNum,
const vrpn_int32 vertNum,
const vrpn_float32 x,
const vrpn_float32 y,
const vrpn_float32 z )
staticprotected

Definition at line 518 of file vrpn_ForceDevice.C.

References vrpn_buffer().

Referenced by vrpn_ForceDevice_Remote::setObjectVertex().

Here is the call graph for this function:

◆ encodePoint()

char * vrpn_ForceDevice::encodePoint ( vrpn_int32 & len,
vrpn_float32 x,
vrpn_float32 y,
vrpn_float32 z )
staticprotected

◆ getRecoveryTime()

int vrpn_ForceDevice::getRecoveryTime ( void )
inline

Definition at line 126 of file vrpn_ForceDevice.h.

◆ print_plane()

void vrpn_ForceDevice::print_plane ( void )

Definition at line 205 of file vrpn_ForceDevice.C.

References plane.

◆ print_report()

void vrpn_ForceDevice::print_report ( void )

Definition at line 210 of file vrpn_ForceDevice.C.

References timestamp.

◆ register_types()

◆ sendError()

void vrpn_ForceDevice::sendError ( int error_code)

◆ set_plane() [1/3]

void vrpn_ForceDevice::set_plane ( vrpn_float32 * p)

Definition at line 1511 of file vrpn_ForceDevice.C.

References plane.

Referenced by vrpn_ForceDevice_Remote::stopSurface().

◆ set_plane() [2/3]

void vrpn_ForceDevice::set_plane ( vrpn_float32 * p,
vrpn_float32 d )

Definition at line 1527 of file vrpn_ForceDevice.C.

References plane.

◆ set_plane() [3/3]

void vrpn_ForceDevice::set_plane ( vrpn_float32 a,
vrpn_float32 b,
vrpn_float32 c,
vrpn_float32 d )

Definition at line 1518 of file vrpn_ForceDevice.C.

References plane.

◆ setCustomEffect()

void vrpn_ForceDevice::setCustomEffect ( vrpn_int32 effectId,
vrpn_float32 * params = NULL,
vrpn_uint32 nbParams = 0 )

◆ setFF_Force() [1/2]

void vrpn_ForceDevice::setFF_Force ( vrpn_float32 f[3])
inline

Definition at line 95 of file vrpn_ForceDevice.h.

◆ setFF_Force() [2/2]

void vrpn_ForceDevice::setFF_Force ( vrpn_float32 fx,
vrpn_float32 fy,
vrpn_float32 fz )
inline

Definition at line 89 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::constraintToForceField().

◆ setFF_Jacobian()

void vrpn_ForceDevice::setFF_Jacobian ( vrpn_float32 dfxdx,
vrpn_float32 dfxdy,
vrpn_float32 dfxdz,
vrpn_float32 dfydx,
vrpn_float32 dfydy,
vrpn_float32 dfydz,
vrpn_float32 dfzdx,
vrpn_float32 dfzdy,
vrpn_float32 dfzdz )
inline

Definition at line 101 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::constraintToForceField().

◆ setFF_Origin() [1/2]

void vrpn_ForceDevice::setFF_Origin ( vrpn_float32 x,
vrpn_float32 y,
vrpn_float32 z )
inline

Definition at line 77 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::constraintToForceField().

◆ setFF_Origin() [2/2]

void vrpn_ForceDevice::setFF_Origin ( vrpn_float32 x[3])
inline

Definition at line 83 of file vrpn_ForceDevice.h.

◆ setFF_Radius()

void vrpn_ForceDevice::setFF_Radius ( vrpn_float32 r)
inline

Definition at line 117 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::constraintToForceField().

◆ setRecoveryTime()

void vrpn_ForceDevice::setRecoveryTime ( int rt)
inline

Definition at line 52 of file vrpn_ForceDevice.h.

◆ setSurfaceBuzzAmplitude()

void vrpn_ForceDevice::setSurfaceBuzzAmplitude ( vrpn_float32 amp)
inline

Definition at line 64 of file vrpn_ForceDevice.h.

◆ setSurfaceBuzzFrequency()

void vrpn_ForceDevice::setSurfaceBuzzFrequency ( vrpn_float32 freq)
inline

Definition at line 63 of file vrpn_ForceDevice.h.

◆ setSurfaceFdynamic()

void vrpn_ForceDevice::setSurfaceFdynamic ( vrpn_float32 kd)
inline

Definition at line 51 of file vrpn_ForceDevice.h.

◆ setSurfaceFstatic()

void vrpn_ForceDevice::setSurfaceFstatic ( vrpn_float32 ks)
inline

Definition at line 50 of file vrpn_ForceDevice.h.

◆ setSurfaceKadhesionLateral()

void vrpn_ForceDevice::setSurfaceKadhesionLateral ( vrpn_float32 k)
inline

Definition at line 59 of file vrpn_ForceDevice.h.

◆ setSurfaceKadhesionNormal()

void vrpn_ForceDevice::setSurfaceKadhesionNormal ( vrpn_float32 k)
inline

Definition at line 55 of file vrpn_ForceDevice.h.

◆ setSurfaceKdamping()

void vrpn_ForceDevice::setSurfaceKdamping ( vrpn_float32 d)
inline

Definition at line 49 of file vrpn_ForceDevice.h.

◆ setSurfaceKspring()

void vrpn_ForceDevice::setSurfaceKspring ( vrpn_float32 k)
inline

Definition at line 48 of file vrpn_ForceDevice.h.

◆ setSurfaceTextureAmplitude()

void vrpn_ForceDevice::setSurfaceTextureAmplitude ( vrpn_float32 amp)
inline

Definition at line 69 of file vrpn_ForceDevice.h.

◆ setSurfaceTextureWavelength()

void vrpn_ForceDevice::setSurfaceTextureWavelength ( vrpn_float32 wl)
inline

Definition at line 65 of file vrpn_ForceDevice.h.

Member Data Documentation

◆ addObject_message_id

vrpn_int32 vrpn_ForceDevice::addObject_message_id
protected

◆ addObjectExScene_message_id

vrpn_int32 vrpn_ForceDevice::addObjectExScene_message_id
protected

◆ clearTrimesh_message_id

vrpn_int32 vrpn_ForceDevice::clearTrimesh_message_id
protected

◆ custom_effect_message_id

vrpn_int32 vrpn_ForceDevice::custom_effect_message_id
protected

◆ customEffectId

vrpn_int32 vrpn_ForceDevice::customEffectId
protected

◆ customEffectParams

vrpn_float32* vrpn_ForceDevice::customEffectParams
protected

◆ d_force

vrpn_float64 vrpn_ForceDevice::d_force[3]
protected

d_force isn't used in vrpn_ForceDevice, but seems to be used by derived classes? What's the meaning?

Definition at line 453 of file vrpn_ForceDevice.h.

◆ enableConstraint_message_id

vrpn_int32 vrpn_ForceDevice::enableConstraint_message_id
protected

Definition at line 149 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ error_message_id

vrpn_int32 vrpn_ForceDevice::error_message_id
protected

◆ errorCode

vrpn_int32 vrpn_ForceDevice::errorCode
protected

Definition at line 471 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice().

◆ ff_force

vrpn_float32 vrpn_ForceDevice::ff_force[3]
protected

Definition at line 462 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendForceField().

◆ ff_jacobian

vrpn_float32 vrpn_ForceDevice::ff_jacobian[3][3]
protected

Definition at line 463 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendForceField().

◆ ff_origin

vrpn_float32 vrpn_ForceDevice::ff_origin[3]
protected

Definition at line 461 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendForceField().

◆ ff_radius

vrpn_float32 vrpn_ForceDevice::ff_radius
protected

Definition at line 464 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendForceField().

◆ force_message_id

vrpn_int32 vrpn_ForceDevice::force_message_id
protected

◆ forcefield_message_id

vrpn_int32 vrpn_ForceDevice::forcefield_message_id
protected

◆ getNewObjectID_message_id

vrpn_int32 vrpn_ForceDevice::getNewObjectID_message_id
protected

Definition at line 186 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ moveToParent_message_id

vrpn_int32 vrpn_ForceDevice::moveToParent_message_id
protected

◆ nbCustomEffectParams

vrpn_uint32 vrpn_ForceDevice::nbCustomEffectParams
protected

◆ numRecCycles

vrpn_int32 vrpn_ForceDevice::numRecCycles
protected

◆ plane

◆ plane_effects_message_id

vrpn_int32 vrpn_ForceDevice::plane_effects_message_id
protected

Definition at line 143 of file vrpn_ForceDevice.h.

Referenced by register_types(), and vrpn_ForceDevice_Remote::sendSurface().

◆ plane_message_id

vrpn_int32 vrpn_ForceDevice::plane_message_id
protected

◆ removeObject_message_id

vrpn_int32 vrpn_ForceDevice::removeObject_message_id
protected

◆ removeTriangle_message_id

vrpn_int32 vrpn_ForceDevice::removeTriangle_message_id
protected

◆ scp_message_id

vrpn_int32 vrpn_ForceDevice::scp_message_id
protected

◆ scp_pos

vrpn_float64 vrpn_ForceDevice::scp_pos[3]
protected

Definition at line 457 of file vrpn_ForceDevice.h.

◆ scp_quat

vrpn_float64 vrpn_ForceDevice::scp_quat[4]
protected

Definition at line 458 of file vrpn_ForceDevice.h.

◆ setConstraintKSpring_message_id

vrpn_int32 vrpn_ForceDevice::setConstraintKSpring_message_id
protected

Definition at line 156 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ setConstraintLineDirection_message_id

vrpn_int32 vrpn_ForceDevice::setConstraintLineDirection_message_id
protected

Definition at line 153 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ setConstraintLinePoint_message_id

vrpn_int32 vrpn_ForceDevice::setConstraintLinePoint_message_id
protected

Definition at line 152 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ setConstraintMode_message_id

vrpn_int32 vrpn_ForceDevice::setConstraintMode_message_id
protected

Definition at line 150 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ setConstraintPlaneNormal_message_id

vrpn_int32 vrpn_ForceDevice::setConstraintPlaneNormal_message_id
protected

Definition at line 155 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ setConstraintPlanePoint_message_id

vrpn_int32 vrpn_ForceDevice::setConstraintPlanePoint_message_id
protected

Definition at line 154 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ setConstraintPoint_message_id

vrpn_int32 vrpn_ForceDevice::setConstraintPoint_message_id
protected

Definition at line 151 of file vrpn_ForceDevice.h.

Referenced by register_types().

◆ setHapticOrigin_message_id

vrpn_int32 vrpn_ForceDevice::setHapticOrigin_message_id
protected

◆ setHapticScale_message_id

vrpn_int32 vrpn_ForceDevice::setHapticScale_message_id
protected

◆ setNormal_message_id

vrpn_int32 vrpn_ForceDevice::setNormal_message_id
protected

◆ setObjectIsTouchable_message_id

vrpn_int32 vrpn_ForceDevice::setObjectIsTouchable_message_id
protected

◆ setObjectOrientation_message_id

vrpn_int32 vrpn_ForceDevice::setObjectOrientation_message_id
protected

◆ setObjectPosition_message_id

vrpn_int32 vrpn_ForceDevice::setObjectPosition_message_id
protected

◆ setObjectScale_message_id

vrpn_int32 vrpn_ForceDevice::setObjectScale_message_id
protected

◆ setSceneOrigin_message_id

vrpn_int32 vrpn_ForceDevice::setSceneOrigin_message_id
protected

◆ setTriangle_message_id

vrpn_int32 vrpn_ForceDevice::setTriangle_message_id
protected

◆ setTrimeshType_message_id

vrpn_int32 vrpn_ForceDevice::setTrimeshType_message_id
protected

◆ setVertex_message_id

vrpn_int32 vrpn_ForceDevice::setVertex_message_id
protected

◆ SurfaceBuzzAmp

vrpn_float32 vrpn_ForceDevice::SurfaceBuzzAmp
protected

Definition at line 476 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendSurface(), and vrpn_ForceDevice().

◆ SurfaceBuzzFreq

vrpn_float32 vrpn_ForceDevice::SurfaceBuzzFreq
protected

Definition at line 475 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendSurface(), and vrpn_ForceDevice().

◆ SurfaceFdynamic

◆ SurfaceFstatic

◆ SurfaceKadhesionLateral

vrpn_float32 vrpn_ForceDevice::SurfaceKadhesionLateral
protected

Definition at line 473 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendSurface(), and vrpn_ForceDevice().

◆ SurfaceKadhesionNormal

vrpn_float32 vrpn_ForceDevice::SurfaceKadhesionNormal
protected

Definition at line 474 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendSurface(), and vrpn_ForceDevice().

◆ SurfaceKdamping

◆ SurfaceKspring

◆ SurfaceTextureAmplitude

vrpn_float32 vrpn_ForceDevice::SurfaceTextureAmplitude
protected

Definition at line 478 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendSurface(), and vrpn_ForceDevice().

◆ SurfaceTextureWavelength

vrpn_float32 vrpn_ForceDevice::SurfaceTextureWavelength
protected

Definition at line 477 of file vrpn_ForceDevice.h.

Referenced by vrpn_ForceDevice_Remote::sendSurface(), and vrpn_ForceDevice().

◆ timestamp

◆ transformTrimesh_message_id

vrpn_int32 vrpn_ForceDevice::transformTrimesh_message_id
protected

◆ updateTrimeshChanges_message_id

vrpn_int32 vrpn_ForceDevice::updateTrimeshChanges_message_id
protected

◆ which_plane


The documentation for this class was generated from the following files: