HIDDENGRAPH Class Reference

#include <HiddenGraph.h>

Inheritance diagram for HIDDENGRAPH:

GRAPHICPORT MFCGRAPH List of all members.

Public Member Functions

 HIDDENGRAPH ()
virtual ~HIDDENGRAPH ()
void SetViewPoint (const MOVEMATRIX &M, REAL p, REAL e)
virtual void SetHidden (BOOLEAN)
virtual void NewPicture ()
virtual void DrawLine (const VECTOR &, const VECTOR &, COLOR)
virtual void DrawEdge (const VECTOR &, const VECTOR &, COLOR)
virtual void DrawPolygon (INTEGER, VECTOR *, COLOR)
virtual void EndOfPicture ()
virtual void SetLine (const COORD &, const COORD &, COLOR)=0

Protected Member Functions

VECTOR Transform (const VECTOR &)
COORD Projection (const VECTOR &)

Protected Attributes

MOVEMATRIX MM
REAL Plane
REAL Eye

Private Member Functions

REAL ProjectSection (const VECTOR &, const VECTOR &, REAL)

Private Attributes

LINENODEFirstLine
PLANENODEFirstPlane
BOOLEAN Hidden
BOOLEAN HiddenInMind
INTEGER MaxVertices

Friends

class PLANENODE
class VISIARR

Detailed Description

Definition at line 61 of file HiddenGraph.h.


Constructor & Destructor Documentation

HIDDENGRAPH::HIDDENGRAPH (  ) 

Definition at line 457 of file HiddenGraph.cpp.

References FALSE, FirstLine, FirstPlane, Hidden, and HiddenInMind.

HIDDENGRAPH::~HIDDENGRAPH (  )  [virtual]

Definition at line 465 of file HiddenGraph.cpp.

References FirstLine, FirstPlane, PLANENODE::Next, and LINENODE::Next.


Member Function Documentation

void HIDDENGRAPH::DrawEdge ( const VECTOR ,
const VECTOR ,
COLOR   
) [virtual]

Implements GRAPHICPORT.

Definition at line 550 of file HiddenGraph.cpp.

References DrawLine().

void HIDDENGRAPH::DrawLine ( const VECTOR ,
const VECTOR ,
COLOR   
) [virtual]

Implements GRAPHICPORT.

Definition at line 521 of file HiddenGraph.cpp.

References LINENODE::a, abs(), LINENODE::b, EPSILON, Eye, FirstLine, Hidden, LINENODE::Next, Projection(), SetLine(), Transform(), and VECTOR::z.

Referenced by DrawEdge().

void HIDDENGRAPH::DrawPolygon ( INTEGER  ,
VECTOR ,
COLOR   
) [virtual]

Implements GRAPHICPORT.

Definition at line 555 of file HiddenGraph.cpp.

References FirstPlane, Hidden, max, MaxVertices, PLANENODE::Next, PLANENODE::Ok, and PLANENODE.

void HIDDENGRAPH::EndOfPicture (  )  [virtual]

Implements GRAPHICPORT.

Definition at line 569 of file HiddenGraph.cpp.

References LINENODE::a, VISIARR::AddSection(), LINENODE::b, BOOLEAN, PLANENODE::Bounds, VISIARR::Bounds, VISIARR::c1, VISIARR::c2, LINENODE::Color, PLANENODE::Count, BOUNDINGRECT::DoesIntersect(), VISIARR::Draw(), PLANENODE::EdgeCut(), FirstLine, FirstPlane, PLANENODE::GetRel(), GRAPHIC_COMP_ERROR, Hidden, MaxVertices, VISIARR::Merge(), VISIARR::NewLine(), LINENODE::Next, PLANENODE::Next, VISIARR::normal, VISIARR::OddSects(), VISIARR::p1, VISIARR::p2, VISIARR::PartsLeft(), PBEFORE, PBEHIND, ProjectSection(), GRAPHICPORT::SetError(), and PLANENODE::WhereDoesLineCutPlane().

Referenced by CSimulatorObjectViewerDlgBar::DoDraw().

void HIDDENGRAPH::NewPicture (  )  [virtual]

Implements GRAPHICPORT.

Definition at line 515 of file HiddenGraph.cpp.

References Hidden, HiddenInMind, and MaxVertices.

Referenced by CSimulatorObjectViewerDlgBar::DoDraw().

COORD HIDDENGRAPH::Projection ( const VECTOR  )  [protected]

Definition at line 485 of file HiddenGraph.cpp.

References COORD, Eye, Plane, VECTOR::x, VECTOR::y, and VECTOR::z.

Referenced by DrawLine(), VISIARR::NewLine(), and PLANENODE::PLANENODE().

REAL HIDDENGRAPH::ProjectSection ( const VECTOR ,
const VECTOR ,
REAL   
) [private]

Definition at line 491 of file HiddenGraph.cpp.

References Eye, and VECTOR::z.

Referenced by EndOfPicture().

void HIDDENGRAPH::SetHidden ( BOOLEAN   )  [virtual]

Definition at line 510 of file HiddenGraph.cpp.

References HiddenInMind.

Referenced by CSimulatorObjectViewerDlgBar::DoDraw().

virtual void HIDDENGRAPH::SetLine ( const COORD ,
const COORD ,
COLOR   
) [pure virtual]

Implemented in MFCGRAPH.

Referenced by VISIARR::Draw(), and DrawLine().

void HIDDENGRAPH::SetViewPoint ( const MOVEMATRIX M,
REAL  p,
REAL  e 
)

Definition at line 503 of file HiddenGraph.cpp.

References Eye, MM, and Plane.

Referenced by CSimulatorObjectViewerDlgBar::DoDraw().

VECTOR HIDDENGRAPH::Transform ( const VECTOR  )  [protected]

Definition at line 480 of file HiddenGraph.cpp.

References MM.

Referenced by DrawLine(), and PLANENODE::PLANENODE().


Friends And Related Function Documentation

friend class PLANENODE [friend]

Definition at line 63 of file HiddenGraph.h.

Referenced by DrawPolygon().

friend class VISIARR [friend]

Definition at line 64 of file HiddenGraph.h.


Member Data Documentation

REAL HIDDENGRAPH::Eye [protected]

Definition at line 74 of file HiddenGraph.h.

Referenced by DrawLine(), PLANENODE::PLANENODE(), Projection(), ProjectSection(), and SetViewPoint().

LINENODE* HIDDENGRAPH::FirstLine [private]

Definition at line 66 of file HiddenGraph.h.

Referenced by DrawLine(), EndOfPicture(), HIDDENGRAPH(), and ~HIDDENGRAPH().

PLANENODE* HIDDENGRAPH::FirstPlane [private]

Definition at line 67 of file HiddenGraph.h.

Referenced by DrawPolygon(), EndOfPicture(), HIDDENGRAPH(), and ~HIDDENGRAPH().

BOOLEAN HIDDENGRAPH::Hidden [private]

Definition at line 68 of file HiddenGraph.h.

Referenced by DrawLine(), DrawPolygon(), EndOfPicture(), HIDDENGRAPH(), and NewPicture().

BOOLEAN HIDDENGRAPH::HiddenInMind [private]

Definition at line 68 of file HiddenGraph.h.

Referenced by HIDDENGRAPH(), NewPicture(), and SetHidden().

INTEGER HIDDENGRAPH::MaxVertices [private]

Definition at line 69 of file HiddenGraph.h.

Referenced by DrawPolygon(), EndOfPicture(), and NewPicture().

MOVEMATRIX HIDDENGRAPH::MM [protected]

Definition at line 72 of file HiddenGraph.h.

Referenced by SetViewPoint(), and Transform().

REAL HIDDENGRAPH::Plane [protected]

Definition at line 73 of file HiddenGraph.h.

Referenced by Projection(), and SetViewPoint().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:37:13 2006 for DT2005.panorama by  doxygen 1.4.7