Object Class Reference

#include <object.h>

Collaboration diagram for Object:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Object (std::string)
 Object (Object const &)
Objectoperator= (Object const &)
void findVertAdj (void)
void boundObject (double *const &) const
void setFF (Face *)
void setFV (Vertex *)
EdgegetFE (void) const
FacegetFF (void) const
VertexgetFV (void) const
std::string const & getName (void) const
int setNumDigits (void) const
void createEdges (void)
void processEdge (Face *const, Vertex *const, Vertex *const, Vertex *const, map_s_ep &, int const &)
void createEdge (Face *const, Vertex *const, Vertex *const, Vertex *const, map_s_ep &, int const &)
EdgefindEdge (Vertex const *const, Vertex const *const, map_s_ep const &, int const &) const
std::string keyPair (int const &a, int const &b, int const &num_digits) const

Public Attributes

vec_v v
vec_f f
vec_e e

Constructor & Destructor Documentation

Object::Object ( std::string   ) 

Object::Object ( Object const &   ) 


Member Function Documentation

Object & Object::operator= ( Object const &   ) 

void Object::findVertAdj ( void   ) 

Record in vertex class adjacent faces to each vertex in this object.

void Object::boundObject ( double *const &  bounding_box  )  const

Compute and return bounding box of this object along principal directions.

Parameters:
[out] bounding_box Bounding box of object as (xmin,xmax,ymin,ymax,zmin,zmax).

void Object::setFF ( Face fptr  ) 

Record pointer to first face in face vector.

Parameters:
[in] fptr Pointer to first face.

void Object::setFV ( Vertex vv  ) 

Record pointer to first vertex in vertex vector.

Parameters:
[in] vv Pointer to first vertex.

Edge * Object::getFE ( void   )  const

Return pointer to recorded first edge in edge vector.

Returns:
Pointer to first edge.

Face * Object::getFF ( void   )  const

Return pointer to recorded first face in face vector.

Returns:
Pointer to first face.

Vertex * Object::getFV ( void   )  const

Return pointer to recorded first vertex in vertex vector.

Returns:
Pointer to first vertex.

std::string const & Object::getName ( void   )  const

Get recorded name of this object.

Returns:
Object name.

int Object::setNumDigits ( void   )  const

Determine the length in digits of largest vertex index.

Returns:
Number of digits required for larget vertex index.

void Object::createEdges ( void   ) 

void Object::processEdge ( Face * const  face,
Vertex * const  va,
Vertex * const  vb,
Vertex * const  vc,
map_s_ep hm,
int const &  num_digits 
)

Record input face edge information as Edge class instance.

Parameters:
[in] face Parent face.
[in] va One vertex of edge from parent face.
[in] vb Other vertex of edge from parent face.
[in] vc Vertex from parent face not on edge.
[in] hm Map for finding existing edges with vertex indices as key.
[in] num_digits Number of digits used in maximum integer value.

void Object::createEdge ( Face * const  face,
Vertex * const  va,
Vertex * const  vb,
Vertex * const  vc,
map_s_ep hm,
int const &  num_digits 
)

Create and record new instance of Edge class.

Parameters:
[in] face Parent face.
[in] va One vertex of edge from parent face.
[in] vb Other vertex of edge from parent face.
[in] vc Vertex from parent face not on edge.
[in] hm Map for finding existing edges with vertex indices as key.
[in] num_digits Number of digits used in maximum integer value.

Edge * Object::findEdge ( Vertex const * const  va,
Vertex const * const  vb,
map_s_ep const &  hm,
int const &  num_digits 
) const

Look for matching recorded edge instance.

Parameters:
[in] va One vertex of edge from parent face.
[in] vb Other vertex of edge from parent face.
[in] hm Map for finding existing edges with vertex indices as key.
[in] num_digits Number of digits used in maximum integer value.
Returns:
Edge pointer if match found; NULL otherwise;

std::string Object::keyPair ( int const &  a,
int const &  b,
int const &  num_digits 
) const

Create a unique string from two input integers.

Parameters:
[in] a First integer.
[in] b Second integer.
[in] num_digits Number of digits used in maximum integer value.
Returns:
Unique string including two input integers.


Member Data Documentation

vec_v Object::v

vec_f Object::f

vec_e Object::e


The documentation for this class was generated from the following files:
Generated on Fri Feb 13 13:58:41 2009 for meshmorph by  doxygen 1.5.1