Created by ICR::ObjectLoader; Holds the name of the loaded object and a ICR::ContactPointList describing the object. More...
#include <target_object.h>
Public Member Functions | |
void | addContactPoint (ContactPoint const &point) |
ContactPoint const * | getContactPoint (uint id) const |
std::string const | getName () const |
uint | getNumCp () const |
TargetObject & | operator= (TargetObject const &src) |
void | reserveCpList (uint num_cp) |
void | scaleObject (double scale) |
Multiplies each ICR::ContactPoint::vertex_ of the contact points contained in ICR::TargetObject::contact_points_ with scale. | |
void | setName (std::string const &name) |
TargetObject () | |
TargetObject (std::string const &name) | |
TargetObject (TargetObject const &src) | |
~TargetObject () | |
Private Attributes | |
ContactPointList | contact_points_ |
std::string | name_ |
uint | num_cp_ |
Friends | |
class | ObjectLoader |
std::ostream & | operator<< (std::ostream &stream, TargetObject const &obj) |
Created by ICR::ObjectLoader; Holds the name of the loaded object and a ICR::ContactPointList describing the object.
This class has ICR::ObjectLoader as a friend in order to allow the object loader to have direct access to ICR::TargetObject::contact_points_ when building the object. This saves some computation time opposed to using the public interface of the target object.
Definition at line 21 of file target_object.h.
Definition at line 10 of file target_object.cpp.
ICR::TargetObject::TargetObject | ( | std::string const & | name | ) |
Definition at line 12 of file target_object.cpp.
ICR::TargetObject::TargetObject | ( | TargetObject const & | src | ) |
Definition at line 14 of file target_object.cpp.
Definition at line 37 of file target_object.cpp.
void ICR::TargetObject::addContactPoint | ( | ContactPoint const & | point | ) |
Definition at line 62 of file target_object.cpp.
ContactPoint const * ICR::TargetObject::getContactPoint | ( | uint | id | ) | const |
Definition at line 77 of file target_object.cpp.
std::string const ICR::TargetObject::getName | ( | ) | const |
Definition at line 43 of file target_object.cpp.
uint ICR::TargetObject::getNumCp | ( | ) | const |
Definition at line 60 of file target_object.cpp.
TargetObject & ICR::TargetObject::operator= | ( | TargetObject const & | src | ) |
Definition at line 17 of file target_object.cpp.
void ICR::TargetObject::reserveCpList | ( | uint | num_cp | ) |
Definition at line 47 of file target_object.cpp.
void ICR::TargetObject::scaleObject | ( | double | scale | ) |
Multiplies each ICR::ContactPoint::vertex_ of the contact points contained in ICR::TargetObject::contact_points_ with scale.
Definition at line 71 of file target_object.cpp.
void ICR::TargetObject::setName | ( | std::string const & | name | ) |
Definition at line 45 of file target_object.cpp.
friend class ObjectLoader [friend] |
Definition at line 34 of file target_object.h.
std::ostream& operator<< | ( | std::ostream & | stream, |
TargetObject const & | obj | ||
) | [friend] |
Definition at line 28 of file target_object.cpp.
Definition at line 28 of file target_object.h.
std::string ICR::TargetObject::name_ [private] |
Definition at line 26 of file target_object.h.
uint ICR::TargetObject::num_cp_ [private] |
Definition at line 27 of file target_object.h.