contains the information about an object in the SignatureDB, part of the Elem hirarchy More...
#include <Signature.h>
Public Member Functions | |
size_t | CountClasses () const |
size_t | CountElems () const |
virtual Elem * | Duplicate (bool bStaticCopy) |
virtual void | Evaluate (const double eval, const double weight) |
Class * | GetClass (int index) |
Elem * | GetElement (const int &id, const ElemType_t &type) const |
virtual std::string | GetNodeName () const |
virtual ElemType_t | GetType () |
bool | HasClass (Class *classToSet) |
void | RemoveElem (Elem *elemToRemove) |
long | SetClass (Class *classToSet) |
long | SetElem (Elem *elemToSet) |
virtual void | SetPose (RelPose *pose) |
void | Show (Sensor *cam) |
Signature () | |
virtual | ~Signature () |
Protected Member Functions | |
virtual void | SaveTo (XMLTag *tag) |
virtual void | SetData (XMLTag *tag) |
Private Member Functions | |
void | initAttributes () |
Private Attributes | |
std::vector< Class * > | m_class |
std::vector< Elem * > | m_elems |
boost::mutex | m_mutexClasses |
contains the information about an object in the SignatureDB, part of the Elem hirarchy
class Signature
Definition at line 55 of file Signature.h.
Empty Constructor
Definition at line 52 of file Signature.cpp.
Signature::~Signature | ( | ) | [virtual] |
Definition at line 120 of file Signature.cpp.
size_t cop::Signature::CountClasses | ( | ) | const [inline] |
Definition at line 95 of file Signature.h.
size_t cop::Signature::CountElems | ( | ) | const [inline] |
Definition at line 96 of file Signature.h.
Elem * Signature::Duplicate | ( | bool | bStaticCopy | ) | [virtual] |
Duplicates an elem (only possible for elems that can be constructed with ElemFactory or that have overriden this member)
Assign Object member
Assign Elem member
Reimplemented from cop::Elem.
Definition at line 267 of file Signature.cpp.
void Signature::Evaluate | ( | const double | eval, |
const double | weight | ||
) | [virtual] |
Reimplemented from cop::Elem.
Definition at line 399 of file Signature.cpp.
Class * Signature::GetClass | ( | int | index | ) |
Definition at line 167 of file Signature.cpp.
Elem * Signature::GetElement | ( | const int & | index, |
const ElemType_t & | type | ||
) | const |
index | |
type |
index | |
type |
Definition at line 316 of file Signature.cpp.
virtual std::string cop::Signature::GetNodeName | ( | ) | const [inline, virtual] |
returns the name that a will be used in the xml. This should be replaced by any derivative of Elem
Reimplemented from cop::Object.
Definition at line 100 of file Signature.h.
virtual ElemType_t cop::Signature::GetType | ( | ) | [inline, virtual] |
Definition at line 108 of file Signature.h.
bool Signature::HasClass | ( | Class * | classToSet | ) |
Definition at line 177 of file Signature.cpp.
void cop::Signature::initAttributes | ( | ) | [private] |
void Signature::RemoveElem | ( | Elem * | elemToRemove | ) |
Definition at line 368 of file Signature.cpp.
void Signature::SaveTo | ( | XMLTag * | ) | [protected, virtual] |
Overwrite to save additional data, will be called during saving
Reimplemented from cop::Object.
Definition at line 241 of file Signature.cpp.
long Signature::SetClass | ( | Class * | classToSet | ) |
Definition at line 382 of file Signature.cpp.
void Signature::SetData | ( | XMLTag * | tag | ) | [protected, virtual] |
SetData
tag |
char* | with an error message in case of failure |
Reimplemented from cop::Object.
Definition at line 57 of file Signature.cpp.
long Signature::SetElem | ( | Elem * | elemToSet | ) |
void Signature::SetPose | ( | RelPose * | pose | ) | [virtual] |
Reimplemented from cop::Object.
Definition at line 421 of file Signature.cpp.
void Signature::Show | ( | Sensor * | ) | [virtual] |
Shows the current Element relative to the given Camera
Reimplemented from cop::Elem.
Definition at line 194 of file Signature.cpp.
std::vector<Class*> cop::Signature::m_class [private] |
Definition at line 141 of file Signature.h.
std::vector<Elem*> cop::Signature::m_elems [private] |
Definition at line 140 of file Signature.h.
boost::mutex cop::Signature::m_mutexClasses [private] |
Definition at line 144 of file Signature.h.