33#ifndef DART_DYNAMICS_ARROWSHAPE_HPP_
34#define DART_DYNAMICS_ARROWSHAPE_HPP_
55 double _radius = 0.01,
56 double _headRadiusScale = 2.0,
57 double _headLengthScale = 0.15,
58 double _minHeadLength = 0,
59 double _maxHeadLength = INFINITY,
60 bool _doubleArrow =
false);
76 const Eigen::Vector3d& _tail,
77 const Eigen::Vector3d& _head,
79 const Eigen::Vector4d& _color = Eigen::Vector4d(0.5, 0.5, 1.0, 1.0),
80 std::size_t _resolution = 10);
84 void setPositions(
const Eigen::Vector3d& _tail,
const Eigen::Vector3d& _head);
87 const Eigen::Vector3d&
getTail()
const;
90 const Eigen::Vector3d&
getHead()
const;
102 const Eigen::Vector3d& _tail,
103 const Eigen::Vector3d& _head,
Definition ArrowShape.hpp:42
void notifyColorUpdated(const Eigen::Vector4d &_color) override
Set the color of this arrow.
Definition ArrowShape.cpp:104
void setProperties(const Properties &_properties)
Set the properties of this arrow.
Definition ArrowShape.cpp:98
const Eigen::Vector3d & getTail() const
Get the location of the tail of this arrow.
Definition ArrowShape.cpp:86
Properties mProperties
Definition ArrowShape.hpp:115
const Eigen::Vector3d & getHead() const
Get the location of the head of this arrow.
Definition ArrowShape.cpp:92
const Properties & getProperties() const
Get the properties of this arrow.
Definition ArrowShape.cpp:118
Eigen::Vector3d mTail
Definition ArrowShape.hpp:112
ArrowShape()
Empty constructor (for copying)
Definition ArrowShape.cpp:58
Eigen::Vector3d mHead
Definition ArrowShape.hpp:113
void instantiate(std::size_t resolution)
Definition ArrowShape.cpp:283
ShapePtr clone() const override
Deep copy shape.
Definition ArrowShape.cpp:260
void configureArrow(const Eigen::Vector3d &_tail, const Eigen::Vector3d &_head, const Properties &_properties)
Definition ArrowShape.cpp:179
void setPositions(const Eigen::Vector3d &_tail, const Eigen::Vector3d &_head)
Set the positions of the tail and head of the arrow without changing any settings.
Definition ArrowShape.cpp:79
Definition MeshShape.hpp:47
std::shared_ptr< Shape > ShapePtr
Definition SmartPointer.hpp:81
Definition BulletCollisionDetector.cpp:60
Definition ArrowShape.hpp:45
double mMaxHeadLength
Definition ArrowShape.hpp:66
double mRadius
Definition ArrowShape.hpp:62
double mHeadLengthScale
Definition ArrowShape.hpp:64
bool mDoubleArrow
Definition ArrowShape.hpp:67
double mMinHeadLength
Definition ArrowShape.hpp:65
double mHeadRadiusScale
Definition ArrowShape.hpp:63