6 #ifndef CNOID_BODY_PLUGIN_WORLD_LOG_FILE_ITEM_H
7 #define CNOID_BODY_PLUGIN_WORLD_LOG_FILE_ITEM_H
10 #include "exportdecl.h"
26 bool setLogFile(
const std::string& filename);
27 const std::string& logFile()
const;
29 void setTimeStampSuffixEnabled(
bool on);
30 bool isTimeStampSuffixEnabled()
const;
32 void setRecordingFrameRate(
double rate);
33 double recordingFrameRate()
const;
36 void beginHeaderOutput();
37 int outputBodyHeader(
const std::string& name);
38 void endHeaderOutput();
39 void beginFrameOutput(
double time);
40 void beginBodyStateOutput();
41 void outputLinkPositions(
SE3* positions,
int size);
42 void outputJointPositions(
double* values,
int size);
43 void beginDeviceStateOutput();
45 void endDeviceStateOutput();
46 void endBodyStateOutput();
47 void endFrameOutput();
49 int numBodies()
const;
50 const std::string& bodyName(
int bodyIndex)
const;
52 bool recallStateAtTime(
double time);
53 void invalidateLastStateConsistency();
55 virtual void notifyUpdate()
override;
58 virtual Item* doDuplicate()
const override;
59 virtual void onTreePathChanged()
override;
61 virtual bool store(
Archive& archive)
override;
62 virtual bool restore(
const Archive& archive)
override;