29 #ifndef __H3DAPI_DEVICE_LOG_H__
30 #define __H3DAPI_DEVICE_LOG_H__
37 #include <HAPI/DeviceLog.h>
61 class H3DAPI_API OnClose :
public OnNewValueSField < AutoUpdate < SFBool > > {
62 virtual void onNewValue(
const bool &v );
67 Inst< MFString > _url = 0,
68 Inst< SFInt32 > _frequency = 0,
69 Inst< MFInt32 > _deviceIndex = 0,
70 Inst< SFBool > _logBinary = 0,
71 Inst< MFString > _logData = 0,
72 Inst< OnClose > _close = 0 );
166 void createLogForceEffect(
int index );
169 virtual HAPI::DeviceLog* createHAPIDeviceLog (
const std::string& _url );
172 HAPI::DeviceLog::LogTypeVector getLogTypes ();
176 H3DUniquePtr< Field > updateLogForceEffect;
Header file for H3DForceEffect.
Contains the SFBool field class.
Contains the SFInt32 field class.
Header file for X3DUrlObject, X3D scene-graph node.
DeviceLog records haptic device data to a binary data file.
Definition: DeviceLog.h:58
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: DeviceLog.h:158
AutoRefVector< HAPI::DeviceLog > log_force_effect
Internal haptic force effect instance.
Definition: DeviceLog.h:162
H3DUniquePtr< SFInt32 > frequency
The log frequency.
Definition: DeviceLog.h:89
H3DUniquePtr< MFString > logData
Specifies what to log.
Definition: DeviceLog.h:150
H3DUniquePtr< SFBool > logBinary
If true the logging will be done to a binary file.
Definition: DeviceLog.h:128
H3DUniquePtr< OnClose > close
If set to true the log file is closed immediately.
Definition: DeviceLog.h:155
The base class for scenegraph force effects.
Definition: H3DForceEffect.h:39
Template for adding the virtual function onNewValue that can be overridden in subclasses in order to ...
Definition: FieldTemplates.h:79
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
This abstract interface is inherited by all nodes that contain data located on the World Wide Web,...
Definition: X3DUrlObject.h:51
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194