Go to the documentation of this file.
16 #ifndef SURGSIM_DEVICES_DEVICEFILTERS_RECORDPOSE_H
17 #define SURGSIM_DEVICES_DEVICEFILTERS_RECORDPOSE_H
29 SURGSIM_STATIC_REGISTRATION(RecordPose);
73 #endif // SURGSIM_DEVICES_DEVICEFILTERS_RECORDPOSE_H
void filterInput(const std::string &device, const DataStructures::DataGroup &dataToFilter, DataStructures::DataGroup *result) override
Filter the input data.
Definition: RecordPose.cpp:71
Timer class, measures execution times.
Definition: Timer.h:30
A device filter can be connected between a device and the InputConsumerInterface (e....
Definition: DeviceFilter.h:37
std::string m_fileName
Filename where the poses will be recorded.
Definition: RecordPose.h:64
Definition: CompoundShapeToGraphics.cpp:29
An input device filter that record the input pose along with the relative time.
Definition: RecordPose.h:33
RecordPose(const std::string &name)
Constructor.
Definition: RecordPose.cpp:30
void initializeInput(const std::string &device, const DataStructures::DataGroup &inputData) override
Set the initial input data group.
Definition: RecordPose.cpp:58
A collection of NamedData objects.
Definition: DataGroup.h:68
std::ofstream m_outputFile
Output stream to the file 'm_fileName', the entire content is replaced at each run.
Definition: RecordPose.h:67
const std::string & getFileName() const
Definition: RecordPose.cpp:53
SURGSIM_CLASSNAME(SurgSim::Devices::RecordPose)
void setFileName(const std::string &fileName)
Definition: RecordPose.cpp:48
~RecordPose()
Desctructor.
Definition: RecordPose.cpp:40
Framework::Timer m_timer
Timer to keep the recording real-time.
Definition: RecordPose.h:58
double m_cumulativeTime
Cumulative time elapsed since the timer started (on creation of the instance, in ctor)
Definition: RecordPose.h:61