PLearn 0.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Member Functions | Private Types | Private Member Functions
PLearn::MeshFace Class Reference

#include <MeshFace.h>

Inheritance diagram for PLearn::MeshFace:
Inheritance graph
[legend]
Collaboration diagram for PLearn::MeshFace:
Collaboration graph
[legend]

List of all members.

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 OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual MeshFacedeepCopy (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 PPathdeclaringFile ()

Public Attributes

TVec< vertex_descriptorpts
TVec< edge_descriptoredges
TVec< intadj_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.

Detailed Description

Definition at line 66 of file MeshFace.h.


Member Typedef Documentation

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.

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.


Constructor & Destructor Documentation

PLearn::MeshFace::MeshFace ( )

Default constructor.

Definition at line 49 of file MeshFace.cc.

                   :
//  id( 0 ),
  pts( 3 ),
  edges( 3 ),
  adj_faces( 3, -1 ),
  face_norm( 3 )
{}
virtual PLearn::MeshFace::~MeshFace ( ) [inline, virtual]

Virtual destructor.

Definition at line 104 of file MeshFace.h.

{}

Member Function Documentation

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.

bool PLearn::MeshFace::_isa_ ( const Object o) [static]

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_().

Here is the call graph for this function:

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().

{}

Here is the caller graph for this function:

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);
}

Here is the call graph for this function:

static const PPath& PLearn::MeshFace::declaringFile ( ) [inline, static]

Reimplemented from PLearn::Object.

Definition at line 121 of file MeshFace.h.

MeshFace * PLearn::MeshFace::deepCopy ( CopiesMap copies) const [virtual]

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);
}

Here is the call graph for this function:


Member Data Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines