#include <eGrid.h>
Public Member Functions | |
eTempEdge (ePoint *p1, ePoint *p2, eWall *W=NULL) | |
eTempEdge (const eCoord &c1, const eCoord &c2, eWall *W=NULL) | |
eCoord | Vec () const |
eCoord & | Coord (int i) const |
ePoint * | Point (int i) const |
eFace * | Face (int i) const |
eHalfEdge * | Edge (int i) const |
eWall * | Wall () const |
void | SetWall (eWall *W) const |
void | CopyIntoGrid (eGrid *grid) |
Protected Member Functions | |
~eTempEdge () | |
Private Attributes | |
tControlledPTR< eHalfEdge > | halfEdges [2] |
Friends | |
class | tReferencable< eTempEdge > |
Definition at line 52 of file eGrid.h.
eTempEdge::eTempEdge | ( | const eCoord & | c1, | |
const eCoord & | c2, | |||
eWall * | W = NULL | |||
) |
eTempEdge::~eTempEdge | ( | ) | [protected] |
eCoord eTempEdge::Vec | ( | ) | const |
eCoord& eTempEdge::Coord | ( | int | i | ) | const |
ePoint* eTempEdge::Point | ( | int | i | ) | const |
eFace* eTempEdge::Face | ( | int | i | ) | const |
eHalfEdge* eTempEdge::Edge | ( | int | i | ) | const |
Referenced by _wrap_GCycle_edge(), CopyIntoGrid(), and gCycle::Edge().
eWall* eTempEdge::Wall | ( | ) | const |
void eTempEdge::SetWall | ( | eWall * | W | ) | const |
void eTempEdge::CopyIntoGrid | ( | eGrid * | grid | ) |
Definition at line 2213 of file eGrid.cpp.
References eGrid::DrawLine(), Edge(), eWallHolder::GetWall(), eWall::Insert(), eGrid::Insert(), Point(), eWall::Splittable(), and tASSERT.
02214 { 02215 if (Point(0) != Point(1)){ 02216 ePoint *newp = grid->Insert(*Point(0)); 02217 tASSERT( newp ); 02218 eWall *w = Edge(0)->GetWall(); 02219 w->Insert(); 02220 tASSERT(w->Splittable()); 02221 // Edge(0)->GetWall() = NULL; 02222 // w->edge = NULL; 02223 // Edge(0)->SetWall(NULL); 02224 grid->DrawLine(newp, *Point(1), w); 02225 } 02226 }
friend class tReferencable< eTempEdge > [friend] |
tControlledPTR< eHalfEdge > eTempEdge::halfEdges[2] [private] |