eTempEdge Class Reference

#include <eGrid.h>

Inheritance diagram for eTempEdge:

Inheritance graph
[legend]
Collaboration diagram for eTempEdge:

Collaboration graph
[legend]

List of all members.

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
ePointPoint (int i) const
eFaceFace (int i) const
eHalfEdgeEdge (int i) const
eWallWall () const
void SetWall (eWall *W) const
void CopyIntoGrid (eGrid *grid)

Protected Member Functions

 ~eTempEdge ()

Private Attributes

tControlledPTR< eHalfEdgehalfEdges [2]

Friends

class tReferencable< eTempEdge >


Detailed Description

Definition at line 52 of file eGrid.h.


Constructor & Destructor Documentation

eTempEdge::eTempEdge ( ePoint p1,
ePoint p2,
eWall W = NULL 
)

Definition at line 2233 of file eGrid.cpp.

References halfEdges, and tNEW.

02233                                                   {
02234     halfEdges[0] = tNEW(eHalfEdge(a, b ,w));
02235     halfEdges[1] = halfEdges[0]->Other();
02236 }

eTempEdge::eTempEdge ( const eCoord &  c1,
const eCoord &  c2,
eWall W = NULL 
)

Definition at line 2228 of file eGrid.cpp.

References halfEdges, and tNEW.

02228                                                               {
02229     halfEdges[0] = tNEW(eHalfEdge(tNEW(ePoint)(a),tNEW(ePoint)(b),w));
02230     halfEdges[1] = halfEdges[0]->Other();
02231 }

eTempEdge::~eTempEdge (  )  [protected]

Definition at line 2240 of file eGrid.cpp.

References halfEdges.

02241 {
02242     halfEdges[0]->Unlink();
02243 }


Member Function Documentation

eCoord eTempEdge::Vec (  )  const

eCoord& eTempEdge::Coord ( int  i  )  const

ePoint* eTempEdge::Point ( int  i  )  const

Referenced by CopyIntoGrid().

Here is the caller graph for this function:

eFace* eTempEdge::Face ( int  i  )  const

eHalfEdge* eTempEdge::Edge ( int  i  )  const

Referenced by _wrap_GCycle_edge(), CopyIntoGrid(), and gCycle::Edge().

Here is the caller graph for this function:

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 }

Here is the call graph for this function:


Friends And Related Function Documentation

friend class tReferencable< eTempEdge > [friend]

Definition at line 53 of file eGrid.h.


Member Data Documentation

tControlledPTR< eHalfEdge > eTempEdge::halfEdges[2] [private]

Definition at line 71 of file eGrid.h.

Referenced by eTempEdge(), and ~eTempEdge().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:30:38 2008 for Armagetron Advanced by  doxygen 1.5.4