7 #include "fwMedData/NavigationSeries.hpp" 9 #include <fwData/Exception.hpp> 10 #include <fwData/registry/macros.hpp> 32 NavigationSeries::csptr other = NavigationSeries::dynamicConstCast(_source);
34 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
39 m_position = other->m_position;
40 m_move = other->m_move;
41 m_lookAt = other->m_lookAt;
48 NavigationSeries::csptr other = NavigationSeries::dynamicConstCast(_source);
50 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
55 m_position = other->m_position;
56 m_move = other->m_move;
57 m_lookAt = other->m_lookAt;
64 m_position[time] = pos;
78 m_lookAt[time] = point;
85 m_position.erase(time);
FWMEDDATA_API void erasePosition(TimestampType time)
Removes the position (if one exists) associate with the specified timestamp.
FWMEDDATA_API void addMove(TimestampType time, const CoordinateType &dir)
Adds a move direction associate with the specified timestamp.
FWMEDDATA_API const ContainerType & getPositionMap() const
Returns positions map container.
FWMEDDATA_API void cachedDeepCopy(const ::fwData::Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
virtual FWMEDDATA_API ~NavigationSeries()
Destructor.
FWMEDDATA_API void addLookAt(TimestampType time, const CoordinateType &point)
Adds a lookAt point associate with the specified timestamp.
FWMEDDATA_API void shallowCopy(const ::fwData::Object::csptr &_source) override
Defines shallow copy.
Namespace containing medical data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
FWMEDDATA_API NavigationSeries(::fwData::Object::Key key)
Constructor.
FWMEDDATA_API void cachedDeepCopy(const ::fwData::Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
FWMEDDATA_API void clearMove()
Clear all move directions.
FWMEDDATA_API void addPosition(TimestampType time, const CoordinateType &pos)
Adds a position associate with the specified timestamp.
Holds navigation information.
FWMEDDATA_API void clearLookAt()
Clear all lookAt points.
FWMEDDATA_API const ContainerType & getMoveMap() const
Returns move map container.
FWMEDDATA_API void eraseLookAt(TimestampType time)
Removes the lookAt point (if one exists) associate with the specified timestamp.
FWMEDDATA_API void clearPosition()
Clear all positions.
FWMEDDATA_API const ContainerType & getLookAtMap() const
Returns lokAt map container.
FWMEDDATA_API void shallowCopy(const ::fwData::Object::csptr &_source) override
Defines shallow copy.
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
Holds series information.
FWMEDDATA_API void eraseMove(TimestampType time)
Removes the move direction (if one exists) associate with the specified timestamp.