Public Member Functions | Private Attributes | Friends
ICR::TargetObject Class Reference

Created by ICR::ObjectLoader; Holds the name of the loaded object and a ICR::ContactPointList describing the object. More...

#include <target_object.h>

List of all members.

Public Member Functions

void addContactPoint (ContactPoint const &point)
ContactPoint const * getContactPoint (uint id) const
std::string const getName () const
uint getNumCp () const
TargetObjectoperator= (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)

Detailed Description

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.


Constructor & Destructor Documentation

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.

Definition at line 14 of file target_object.cpp.

Definition at line 37 of file target_object.cpp.


Member Function Documentation

Definition at line 62 of file target_object.cpp.

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.

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.

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.


Friends And Related Function Documentation

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.


Member Data Documentation

Definition at line 28 of file target_object.h.

std::string ICR::TargetObject::name_ [private]

Definition at line 26 of file target_object.h.

Definition at line 27 of file target_object.h.


The documentation for this class was generated from the following files:


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:34:32