Tetra Class Reference

#include <tetra.h>

Collaboration diagram for Tetra:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Tetra ()
 ~Tetra ()
void init (NodeArray *nodearray_p_in, EdgeArray *edgearray_p_in, FaceArray *facearray_p_in, TetraArray *tetraarray_p_in, int i0, int i1, int i2, int i3)
void init (NodeArray *nodearray_p_in, EdgeArray *edgearray_p_in, FaceArray *facearray_p_in, TetraArray *tetraarray_p_in, Node *n0, Node *n1, Node *n2, Node *n3)
void init ()
int getIndex (void)
TetraArraygetTetraArray ()
BoundingSphereLeafgetBoundingSphere ()
void setBoundingSphere (BoundingSphereLeaf *sphere)
int hasNodeLink (Node *node)
NodegetNodeLink (int which)
NodegetOtherNode (Node *n0, Node *n1, Node *n2)
void deleteNodeLink (Node *n)
int hasEdgeLink (Edge *edge)
EdgegetEdgeLink (int which)
void deleteEdgeLink (Edge *e)
EdgegetEdge (int n0, int n1)
int getEdgeIndex (Edge *e)
int hasFaceLink (Face *face)
FacegetFaceLink (int which)
void deleteFaceLink (Face *f)
void unlink ()
int isAdjacent (Tetra *t)
void draw (int do_texture)
void drawlabel (float offset)
void drawnormals ()
void drawMarker ()
void setMarker (int value)
int getMarker (void)
Point3D getCenter ()
double getRadius ()
double getAveRadius ()
double getVolume ()
void computenormals ()
int isFacingInwards (Face *f)
int intersectsFace (Face *f, Point3D *intPt)
int intersectsEdge (Edge *e, Point3D *intPt)
int SanityCheck (TetraArray *real_fa_p)

Static Public Attributes

static const char * rcsid
static int debug = 0

Friends

ostream & operator<< (ostream &os, const Tetra &f)


Detailed Description

Definition at line 27 of file tetra.h.


Constructor & Destructor Documentation

Tetra::Tetra (  ) 

Definition at line 24 of file tetra.cpp.

Tetra::~Tetra (  ) 

Definition at line 40 of file tetra.cpp.


Member Function Documentation

void Tetra::init ( NodeArray nodearray_p_in,
EdgeArray edgearray_p_in,
FaceArray facearray_p_in,
TetraArray tetraarray_p_in,
int  i0,
int  i1,
int  i2,
int  i3 
)

Definition at line 53 of file tetra.cpp.

void Tetra::init ( NodeArray nodearray_p_in,
EdgeArray edgearray_p_in,
FaceArray facearray_p_in,
TetraArray tetraarray_p_in,
Node n0,
Node n1,
Node n2,
Node n3 
)

Definition at line 71 of file tetra.cpp.

void Tetra::init (  ) 

Definition at line 140 of file tetra.cpp.

int Tetra::getIndex ( void   ) 

Definition at line 203 of file tetra.cpp.

TetraArray * Tetra::getTetraArray (  )  [inline]

Definition at line 184 of file tetra.h.

BoundingSphereLeaf * Tetra::getBoundingSphere (  )  [inline]

Definition at line 108 of file tetra.h.

void Tetra::setBoundingSphere ( BoundingSphereLeaf sphere  )  [inline]

Definition at line 111 of file tetra.h.

int Tetra::hasNodeLink ( Node node  ) 

Definition at line 153 of file tetra.cpp.

Node * Tetra::getNodeLink ( int  which  )  [inline]

Definition at line 114 of file tetra.h.

Node * Tetra::getOtherNode ( Node n0,
Node n1,
Node n2 
)

Definition at line 357 of file tetra.cpp.

void Tetra::deleteNodeLink ( Node n  )  [inline]

Definition at line 119 of file tetra.h.

int Tetra::hasEdgeLink ( Edge edge  ) 

Definition at line 171 of file tetra.cpp.

Edge * Tetra::getEdgeLink ( int  which  )  [inline]

Definition at line 125 of file tetra.h.

void Tetra::deleteEdgeLink ( Edge e  )  [inline]

Definition at line 130 of file tetra.h.

Edge * Tetra::getEdge ( int  n0,
int  n1 
)

Definition at line 161 of file tetra.cpp.

int Tetra::getEdgeIndex ( Edge e  )  [inline]

Definition at line 136 of file tetra.h.

int Tetra::hasFaceLink ( Face face  ) 

Definition at line 179 of file tetra.cpp.

Face * Tetra::getFaceLink ( int  which  )  [inline]

Definition at line 143 of file tetra.h.

void Tetra::deleteFaceLink ( Face f  )  [inline]

Definition at line 148 of file tetra.h.

void Tetra::unlink (  ) 

Definition at line 187 of file tetra.cpp.

int Tetra::isAdjacent ( Tetra t  )  [inline]

Definition at line 176 of file tetra.h.

void Tetra::draw ( int  do_texture  ) 

Definition at line 207 of file tetra.cpp.

void Tetra::drawlabel ( float  offset  ) 

Definition at line 217 of file tetra.cpp.

void Tetra::drawnormals (  ) 

Definition at line 253 of file tetra.cpp.

void Tetra::drawMarker (  ) 

Definition at line 261 of file tetra.cpp.

void Tetra::setMarker ( int  value  )  [inline]

Definition at line 187 of file tetra.h.

int Tetra::getMarker ( void   )  [inline]

Definition at line 190 of file tetra.h.

Point3D Tetra::getCenter (  )  [inline]

Definition at line 193 of file tetra.h.

double Tetra::getRadius (  )  [inline]

Definition at line 154 of file tetra.h.

double Tetra::getAveRadius (  )  [inline]

Definition at line 165 of file tetra.h.

double Tetra::getVolume (  ) 

Definition at line 393 of file tetra.cpp.

void Tetra::computenormals (  ) 

Definition at line 233 of file tetra.cpp.

int Tetra::isFacingInwards ( Face f  ) 

Definition at line 365 of file tetra.cpp.

int Tetra::intersectsFace ( Face f,
Point3D intPt 
)

Definition at line 348 of file tetra.cpp.

int Tetra::intersectsEdge ( Edge e,
Point3D intPt 
)

Definition at line 339 of file tetra.cpp.

int Tetra::SanityCheck ( TetraArray real_fa_p  ) 

Definition at line 272 of file tetra.cpp.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
const Tetra f 
) [friend]

Definition at line 377 of file tetra.cpp.


Member Data Documentation

const char* Tetra::rcsid [static]

Definition at line 43 of file tetra.h.

int Tetra::debug = 0 [static]

Definition at line 44 of file tetra.h.


The documentation for this class was generated from the following files:
Generated on Thu Aug 30 11:05:11 2007 for SPRING Mac by  doxygen 1.5.3