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

#include <MeshVertex.h>

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

List of all members.

Public Member Functions

 MeshVertex ()
 Default constructor.
virtual ~MeshVertex ()
 Virtual destructor.
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual MeshVertexdeepCopy (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 ()
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.

Detailed Description

Definition at line 56 of file MeshVertex.h.


Member Typedef Documentation

Reimplemented from PLearn::Object.

Definition at line 61 of file MeshVertex.h.


Constructor & Destructor Documentation

PLearn::MeshVertex::MeshVertex ( )

Default constructor.

Definition at line 49 of file MeshVertex.cc.

                       :
  region( 0 ),
  bf( 0 ),
  coord( 3 ),
  norm( 3 ),
  error( 0 )
{}
virtual PLearn::MeshVertex::~MeshVertex ( ) [inline, virtual]

Virtual destructor.

Definition at line 89 of file MeshVertex.h.

{}

Member Function Documentation

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.

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

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

Here is the call graph for this function:

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

{}

Here is the caller graph for this function:

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

Here is the call graph for this function:

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.

Here is the call graph for this function:


Member Data Documentation

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


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