PLearn 0.1
|
#include <MeshVertex.h>
Public Member Functions | |
MeshVertex () | |
Default constructor. | |
virtual | ~MeshVertex () |
Virtual destructor. | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual MeshVertex * | 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 MeshVertex &p, const MeshVertex &q) |
static real | dist3D (const MeshVertex &p, const MeshVertex &q) |
Public Attributes | |
int | region |
int | bf |
Vec | coord |
Vec | norm |
real | error |
Vec | features |
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 56 of file MeshVertex.h.
typedef Object PLearn::MeshVertex::inherited [private] |
Reimplemented from PLearn::Object.
Definition at line 61 of file MeshVertex.h.
PLearn::MeshVertex::MeshVertex | ( | ) |
virtual PLearn::MeshVertex::~MeshVertex | ( | ) | [inline, virtual] |
string PLearn::MeshVertex::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
OptionList & PLearn::MeshVertex::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
RemoteMethodMap & PLearn::MeshVertex::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
Object * PLearn::MeshVertex::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
StaticInitializer MeshVertex::_static_initializer_ & PLearn::MeshVertex::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
void PLearn::MeshVertex::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 100 of file MeshVertex.cc.
References PLearn::Object::build(), and build_().
{ inherited::build(); build_(); }
void PLearn::MeshVertex::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::Object.
Definition at line 97 of file MeshVertex.cc.
Referenced by build().
{}
string PLearn::MeshVertex::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
int PLearn::MeshVertex::compare | ( | const MeshVertex & | p, |
const MeshVertex & | q | ||
) | [static] |
Definition at line 127 of file MeshVertex.cc.
References error.
{ int answer; if( p.error > q.error ) { answer = -1; } else if( p.error < q.error ) { answer = 1; } else { answer = 0; } return answer; }
void PLearn::MeshVertex::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares this class' options.
Reimplemented from PLearn::Object.
Definition at line 73 of file MeshVertex.cc.
References bf, PLearn::OptionBase::buildoption, coord, PLearn::declareOption(), PLearn::Object::declareOptions(), error, features, norm, and region.
{ declareOption(ol, "region", &MeshVertex::region, OptionBase::buildoption, "region the point belongs to"); declareOption(ol, "bf", &MeshVertex::bf, OptionBase::buildoption, "boundary flag"); declareOption(ol, "coord", &MeshVertex::coord, OptionBase::buildoption, "(3D) coordinates of the point"); declareOption(ol, "norm", &MeshVertex::norm, OptionBase::buildoption, "(3D) coordinates of the normal vector at the point"); declareOption(ol, "error", &MeshVertex::error, OptionBase::buildoption, "dunno, sure it has something to do with an error measure..."); declareOption(ol, "features", &MeshVertex::features, OptionBase::buildoption, "Vector containing the (chemical) features of this vertex"); // Now call the parent class' declareOptions inherited::declareOptions(ol); }
static const PPath& PLearn::MeshVertex::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Object.
Definition at line 105 of file MeshVertex.h.
MeshVertex * PLearn::MeshVertex::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
static real PLearn::MeshVertex::dist3D | ( | const MeshVertex & | p, |
const MeshVertex & | q | ||
) | [static] |
OptionList & PLearn::MeshVertex::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
OptionMap & PLearn::MeshVertex::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
RemoteMethodMap & PLearn::MeshVertex::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshVertex.cc.
void PLearn::MeshVertex::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Object.
Definition at line 106 of file MeshVertex.cc.
References coord, PLearn::deepCopyField(), features, PLearn::Object::makeDeepCopyFromShallowCopy(), and norm.
{ inherited::makeDeepCopyFromShallowCopy(copies); deepCopyField(coord, copies); deepCopyField(norm, copies); deepCopyField(features, copies); }
Reimplemented from PLearn::Object.
Definition at line 105 of file MeshVertex.h.
Definition at line 70 of file MeshVertex.h.
Referenced by declareOptions().
Definition at line 71 of file MeshVertex.h.
Referenced by declareOptions(), PLearn::dist3D(), and makeDeepCopyFromShallowCopy().
Definition at line 73 of file MeshVertex.h.
Referenced by compare(), and declareOptions().
Definition at line 74 of file MeshVertex.h.
Referenced by declareOptions(), and makeDeepCopyFromShallowCopy().
Definition at line 72 of file MeshVertex.h.
Referenced by declareOptions(), and makeDeepCopyFromShallowCopy().
Definition at line 69 of file MeshVertex.h.
Referenced by declareOptions().