#include <object.h>
Collaboration diagram for Object:
Public Member Functions | |
Object (std::string) | |
Object (Object const &) | |
Object & | operator= (Object const &) |
void | findVertAdj (void) |
void | boundObject (double *const &) const |
void | setFF (Face *) |
void | setFV (Vertex *) |
Edge * | getFE (void) const |
Face * | getFF (void) const |
Vertex * | getFV (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 &) |
Edge * | findEdge (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 |
Object::Object | ( | std::string | ) |
Object::Object | ( | 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.
[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.
[in] | fptr | Pointer to first face. |
void Object::setFV | ( | Vertex * | vv | ) |
Record pointer to first vertex in vertex vector.
[in] | vv | Pointer to first vertex. |
Edge * Object::getFE | ( | void | ) | const |
Return pointer to recorded first edge in edge vector.
Face * Object::getFF | ( | void | ) | const |
Return pointer to recorded first face in face vector.
Vertex * Object::getFV | ( | void | ) | const |
Return pointer to recorded first vertex in vertex vector.
std::string const & Object::getName | ( | void | ) | const |
Get recorded name of this object.
int Object::setNumDigits | ( | void | ) | const |
Determine the length in digits of largest 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.
[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.
[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.
[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. |
std::string Object::keyPair | ( | int const & | a, | |
int const & | b, | |||
int const & | num_digits | |||
) | const |
Create a unique string from two input integers.
[in] | a | First integer. |
[in] | b | Second integer. |
[in] | num_digits | Number of digits used in maximum integer value. |