#include <HiddenGraph.h>
Inheritance diagram for HIDDENGRAPH:
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 | |
LINENODE * | FirstLine |
PLANENODE * | FirstPlane |
BOOLEAN | Hidden |
BOOLEAN | HiddenInMind |
INTEGER | MaxVertices |
Friends | |
class | PLANENODE |
class | VISIARR |
Definition at line 61 of file HiddenGraph.h.
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.
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().
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().
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().
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().
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().
Definition at line 480 of file HiddenGraph.cpp.
References MM.
Referenced by DrawLine(), and PLANENODE::PLANENODE().
friend class PLANENODE [friend] |
friend class VISIARR [friend] |
Definition at line 64 of file HiddenGraph.h.
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] |
REAL HIDDENGRAPH::Plane [protected] |