7 #ifndef __FWMEDDATA_NAVIGATIONSERIES_HPP__ 8 #define __FWMEDDATA_NAVIGATIONSERIES_HPP__ 10 #include "fwMedData/config.hpp" 11 #include "fwMedData/Series.hpp" 13 #include <fwData/factory/new.hpp> 18 fwCampAutoDeclareDataMacro((
fwMedData)(NavigationSeries), FWMEDDATA_API);
34 ::fwData::factory::New< NavigationSeries >);
38 typedef std::array<double, 3> CoordinateType;
39 typedef double TimestampType;
40 typedef std::map<TimestampType, CoordinateType> ContainerType;
52 FWMEDDATA_API
void shallowCopy( const ::fwData::Object::csptr& _source )
override;
55 FWMEDDATA_API
void cachedDeepCopy( const ::fwData::Object::csptr& _source, DeepCopyCacheType& cache )
override;
58 FWMEDDATA_API
void addPosition(TimestampType time,
const CoordinateType& pos);
61 FWMEDDATA_API
void addMove(TimestampType time,
const CoordinateType& dir);
64 FWMEDDATA_API
void addLookAt(TimestampType time,
const CoordinateType&
point);
67 FWMEDDATA_API
void erasePosition(TimestampType time);
70 FWMEDDATA_API
void eraseMove(TimestampType time);
73 FWMEDDATA_API
void eraseLookAt(TimestampType time);
76 FWMEDDATA_API
void clearPosition();
79 FWMEDDATA_API
void clearMove();
82 FWMEDDATA_API
void clearLookAt();
85 FWMEDDATA_API
const ContainerType& getPositionMap()
const;
88 FWMEDDATA_API
const ContainerType& getMoveMap()
const;
91 FWMEDDATA_API
const ContainerType& getLookAtMap()
const;
95 ContainerType m_position;
97 ContainerType m_lookAt;
102 #endif // __FWMEDDATA_NAVIGATIONSERIES_HPP__ Namespace containing medical data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Holds navigation information.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Holds series information.