PLearn 0.1
|
#include <MeshGraph.h>
Public Member Functions | |
MeshGraph () | |
Default constructor. | |
virtual | ~MeshGraph () |
Virtual destructor. | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual MeshGraph * | 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 MeshGraph &g, const MeshGraph &h) |
Public Attributes | |
int | id |
real | resolution |
real | size |
TVec< MFace > | faces |
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 60 of file MeshGraph.h.
typedef Object PLearn::MeshGraph::inherited [private] |
Reimplemented from PLearn::Object.
Definition at line 65 of file MeshGraph.h.
PLearn::MeshGraph::MeshGraph | ( | ) |
Default constructor.
Definition at line 49 of file MeshGraph.cc.
: id( 0 ), resolution( 0 ), size( 0 ) {}
virtual PLearn::MeshGraph::~MeshGraph | ( | ) | [inline, virtual] |
string PLearn::MeshGraph::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
OptionList & PLearn::MeshGraph::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
RemoteMethodMap & PLearn::MeshGraph::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
Object * PLearn::MeshGraph::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
StaticInitializer MeshGraph::_static_initializer_ & PLearn::MeshGraph::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
void PLearn::MeshGraph::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 92 of file MeshGraph.cc.
References PLearn::Object::build(), and build_().
{ inherited::build(); build_(); }
void PLearn::MeshGraph::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::Object.
Definition at line 89 of file MeshGraph.cc.
Referenced by build().
{}
string PLearn::MeshGraph::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
void PLearn::MeshGraph::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares this class' options.
Reimplemented from PLearn::Object.
Definition at line 70 of file MeshGraph.cc.
References PLearn::OptionBase::buildoption, PLearn::declareOption(), PLearn::Object::declareOptions(), faces, id, resolution, and size.
{ declareOption(ol, "id", &MeshGraph::id, OptionBase::buildoption, "Graph identifier"); declareOption(ol, "resolution", &MeshGraph::resolution, OptionBase::buildoption, "mesh resolution"); declareOption(ol, "size", &MeshGraph::size, OptionBase::buildoption, "mesh size"); declareOption(ol, "faces", &MeshGraph::faces, OptionBase::buildoption, "MeshFaces of the mesh"); // Now call the parent class' declareOptions inherited::declareOptions(ol); }
static const PPath& PLearn::MeshGraph::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Object.
Definition at line 108 of file MeshGraph.h.
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
OptionList & PLearn::MeshGraph::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
OptionMap & PLearn::MeshGraph::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
RemoteMethodMap & PLearn::MeshGraph::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 68 of file MeshGraph.cc.
void PLearn::MeshGraph::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Object.
Definition at line 98 of file MeshGraph.cc.
References PLearn::deepCopyField(), faces, and PLearn::Object::makeDeepCopyFromShallowCopy().
{ inherited::makeDeepCopyFromShallowCopy(copies); deepCopyField(faces, copies); }
Reimplemented from PLearn::Object.
Definition at line 108 of file MeshGraph.h.
Definition at line 77 of file MeshGraph.h.
Referenced by declareOptions(), and makeDeepCopyFromShallowCopy().
Definition at line 73 of file MeshGraph.h.
Referenced by compare(), and declareOptions().
Definition at line 74 of file MeshGraph.h.
Referenced by declareOptions().
Definition at line 75 of file MeshGraph.h.
Referenced by declareOptions().