|
Solar
|
This abstract class defines the generic trackable datastructure. More...
#include <Trackable.h>

Public Member Functions | |
| Trackable ()=default | |
| Trackable default constructor. | |
| Trackable (const std::string &url) | |
| Trackable constructor with url. | |
| virtual | ~Trackable () |
| Trackable destructor. | |
| virtual TrackableType | getType () const =0 |
| Returns the type of the Trackable object. More... | |
| std::string | getURL () const |
| Returns the url of the trackable object. More... | |
| void | setURL (const std::string &url) |
| Sets the url of the trackable object. More... | |
| datastructure::Transform3Df | getTransform3D () const |
| Returns the 3D transform from the trackable object to the world coordinates system. More... | |
| void | setTransform3D (const datastructure::Transform3Df &transform3D) |
| Sets the 3D transform to the world coordinates system. More... | |
| template<typename Archive > | |
| void | serialize (Archive &ar, ATTRIBUTE(maybe_unused) const unsigned int version) |
Protected Attributes | |
| std::string | m_url |
| datastructure::Transform3Df | m_transform3D = Transform3Df::Identity() |
Friends | |
| class | boost::serialization::access |
This abstract class defines the generic trackable datastructure.
| datastructure::Transform3Df SolAR::datastructure::Trackable::getTransform3D | ( | ) | const |
Returns the 3D transform from the trackable object to the world coordinates system.
|
pure virtual |
Returns the type of the Trackable object.
Implemented in SolAR::datastructure::FiducialMarker, SolAR::datastructure::ImageMarker, and SolAR::datastructure::QRCode.
| std::string SolAR::datastructure::Trackable::getURL | ( | ) | const |
Returns the url of the trackable object.
| void SolAR::datastructure::Trackable::setTransform3D | ( | const datastructure::Transform3Df & | transform3D | ) |
Sets the 3D transform to the world coordinates system.
| [in] | transform3D | the 3D transform to the world coordinates system |
| void SolAR::datastructure::Trackable::setURL | ( | const std::string & | url | ) |
Sets the url of the trackable object.
| [in] | url | the url |