PLearn 0.1
|
#include <MeshFace.h>
Public Types | |
typedef adjacency_list_traits < listS, listS, undirectedS > | g_traits |
typedef g_traits::vertex_descriptor | vertex_descriptor |
typedef g_traits::edge_descriptor | edge_descriptor |
Public Member Functions | |
MeshFace () | |
Default constructor. | |
virtual | ~MeshFace () |
Virtual destructor. | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual MeshFace * | 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 () |
Public Attributes | |
TVec< vertex_descriptor > | pts |
TVec< edge_descriptor > | edges |
TVec< int > | adj_faces |
Vec | face_norm |
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 66 of file MeshFace.h.
typedef g_traits::edge_descriptor PLearn::MeshFace::edge_descriptor |
Definition at line 84 of file MeshFace.h.
typedef adjacency_list_traits< listS, listS, undirectedS > PLearn::MeshFace::g_traits |
Definition at line 82 of file MeshFace.h.
typedef Object PLearn::MeshFace::inherited [private] |
Reimplemented from PLearn::Object.
Definition at line 71 of file MeshFace.h.
typedef g_traits::vertex_descriptor PLearn::MeshFace::vertex_descriptor |
Definition at line 83 of file MeshFace.h.
PLearn::MeshFace::MeshFace | ( | ) |
virtual PLearn::MeshFace::~MeshFace | ( | ) | [inline, virtual] |
string PLearn::MeshFace::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
OptionList & PLearn::MeshFace::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
RemoteMethodMap & PLearn::MeshFace::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
Object * PLearn::MeshFace::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
StaticInitializer MeshFace::_static_initializer_ & PLearn::MeshFace::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
void PLearn::MeshFace::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 101 of file MeshFace.cc.
References PLearn::Object::build(), and build_().
{ inherited::build(); build_(); }
void PLearn::MeshFace::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::Object.
Definition at line 98 of file MeshFace.cc.
Referenced by build().
{}
string PLearn::MeshFace::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
void PLearn::MeshFace::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares this class' options.
Reimplemented from PLearn::Object.
Definition at line 77 of file MeshFace.cc.
References adj_faces, PLearn::OptionBase::buildoption, PLearn::declareOption(), PLearn::Object::declareOptions(), and face_norm.
{ /* declareOption(ol, "id", &MeshFace::id, OptionBase::buildoption, "face identifier"); declareOption(ol, "pts", &MeshFace::pts, OptionBase::buildoption, "identifier of the 3 adjacent points"); declareOption(ol, "edges", &MeshFace::edges, OptionBase::buildoption, "identifier of the 3 adjacent edges"); */ declareOption(ol, "adj_faces", &MeshFace::adj_faces, OptionBase::buildoption, "identifier of the 3 adjacent faces"); declareOption(ol, "face_norm", &MeshFace::face_norm, OptionBase::buildoption, "face normal"); // Now call the parent class' declareOptions inherited::declareOptions(ol); }
static const PPath& PLearn::MeshFace::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Object.
Definition at line 121 of file MeshFace.h.
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
OptionList & PLearn::MeshFace::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
OptionMap & PLearn::MeshFace::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
RemoteMethodMap & PLearn::MeshFace::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 75 of file MeshFace.cc.
void PLearn::MeshFace::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Object.
Definition at line 107 of file MeshFace.cc.
References adj_faces, PLearn::TVec< T >::copy(), PLearn::deepCopyField(), edges, face_norm, PLearn::Object::makeDeepCopyFromShallowCopy(), and pts.
{ inherited::makeDeepCopyFromShallowCopy(copies); /* "`void*' is not a pointer-to-object type" */ // deepCopyField(pts, copies); pts = pts.copy(); // deepCopyField(edges, copies); edges = edges.copy(); deepCopyField(adj_faces, copies); deepCopyField(face_norm, copies); }
Reimplemented from PLearn::Object.
Definition at line 121 of file MeshFace.h.
Definition at line 87 of file MeshFace.h.
Referenced by declareOptions(), and makeDeepCopyFromShallowCopy().
Definition at line 86 of file MeshFace.h.
Referenced by makeDeepCopyFromShallowCopy().
Definition at line 89 of file MeshFace.h.
Referenced by declareOptions(), and makeDeepCopyFromShallowCopy().
Definition at line 85 of file MeshFace.h.
Referenced by makeDeepCopyFromShallowCopy().