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