PLearn 0.1
|
#include <MeshMatch.h>
Public Member Functions | |
MeshMatch () | |
Default constructor. | |
virtual | ~MeshMatch () |
Virtual destructor. | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual MeshMatch * | deepCopy (CopiesMap &copies) const |
virtual void | build () |
Post-constructor. | |
virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) |
Transforms a shallow copy into a deep copy. | |
Static Public Member Functions | |
static string | _classname_ () |
static OptionList & | _getOptionList_ () |
static RemoteMethodMap & | _getRemoteMethodMap_ () |
static Object * | _new_instance_for_typemap_ () |
static bool | _isa_ (const Object *o) |
static void | _static_initialize_ () |
static const PPath & | declaringFile () |
static int | compare (const MeshMatch &p, const MeshMatch &q) |
Public Attributes | |
int | id |
int | model_id |
Mat | rot |
Vec | trans |
Vec | angles |
real | error |
Static Public Attributes | |
static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
static void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Private Types | |
typedef Object | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
Definition at line 58 of file MeshMatch.h.
typedef Object PLearn::MeshMatch::inherited [private] |
Reimplemented from PLearn::Object.
Definition at line 63 of file MeshMatch.h.
PLearn::MeshMatch::MeshMatch | ( | ) |
virtual PLearn::MeshMatch::~MeshMatch | ( | ) | [inline, virtual] |
string PLearn::MeshMatch::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
OptionList & PLearn::MeshMatch::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
RemoteMethodMap & PLearn::MeshMatch::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
Object * PLearn::MeshMatch::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
StaticInitializer MeshMatch::_static_initializer_ & PLearn::MeshMatch::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
void PLearn::MeshMatch::build | ( | ) | [virtual] |
Post-constructor.
The normal implementation should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.
Reimplemented from PLearn::Object.
Definition at line 116 of file MeshMatch.cc.
References PLearn::Object::build(), and build_().
{ inherited::build(); build_(); }
void PLearn::MeshMatch::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::Object.
Definition at line 111 of file MeshMatch.cc.
Referenced by build().
{ }
string PLearn::MeshMatch::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
Definition at line 152 of file MeshMatch.cc.
References error.
{ // if( p.correspondences.size() < q.correspondences.size() ) return 1; // if( p.correspondences.size() > q.correspondences.size() ) return -1; if( p.error > q.error ) return 1; if( p.error < q.error ) return -1; return 0; }
void PLearn::MeshMatch::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares this class' options.
Reimplemented from PLearn::Object.
Definition at line 82 of file MeshMatch.cc.
References angles, PLearn::OptionBase::buildoption, PLearn::declareOption(), PLearn::Object::declareOptions(), error, id, model_id, rot, and trans.
{ declareOption(ol, "id", &MeshMatch::id, OptionBase::buildoption, "match identifier"); declareOption(ol, "model_id", &MeshMatch::model_id, OptionBase::buildoption, "identifier of the model we try to match the mesh to"); /* declareOption(ol, "correspondences", &MeshMatch::correspondences, OptionBase::buildoption, "list of point-to-point correspondences of the match"); */ declareOption(ol, "rot", &MeshMatch::rot, OptionBase::buildoption, "rotation matrix of the match"); // maybe learntoption ? declareOption(ol, "trans", &MeshMatch::trans, OptionBase::buildoption, "translation vector of the match"); declareOption(ol, "angles", &MeshMatch::angles, OptionBase::buildoption, "angles of the rotations of the match"); declareOption(ol, "error", &MeshMatch::error, OptionBase::buildoption, "alignment error between the match and the model"); // Now call the parent class' declareOptions inherited::declareOptions(ol); }
static const PPath& PLearn::MeshMatch::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Object.
Definition at line 110 of file MeshMatch.h.
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
OptionList & PLearn::MeshMatch::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
OptionMap & PLearn::MeshMatch::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
RemoteMethodMap & PLearn::MeshMatch::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 80 of file MeshMatch.cc.
void PLearn::MeshMatch::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Object.
Definition at line 122 of file MeshMatch.cc.
References PLearn::Object::makeDeepCopyFromShallowCopy(), and PLERROR.
{ inherited::makeDeepCopyFromShallowCopy(copies); // ### Call deepCopyField on all "pointer-like" fields // ### that you wish to be deepCopied rather than // ### shallow-copied. // ### ex: // deepCopyField(trainvec, copies); // ### Remove this line when you have fully implemented this method. PLERROR("MeshMatch::makeDeepCopyFromShallowCopy not fully (correctly) implemented yet!"); }
Reimplemented from PLearn::Object.
Definition at line 110 of file MeshMatch.h.
Definition at line 76 of file MeshMatch.h.
Referenced by declareOptions().
Definition at line 77 of file MeshMatch.h.
Referenced by compare(), and declareOptions().
Definition at line 71 of file MeshMatch.h.
Referenced by declareOptions().
Definition at line 72 of file MeshMatch.h.
Referenced by declareOptions().
Definition at line 74 of file MeshMatch.h.
Referenced by declareOptions().
Definition at line 75 of file MeshMatch.h.
Referenced by declareOptions().