// Description: declaration of graphics facilities // Revision history: 4/7/1999/LY #ifndef OVERLAY_WINDOW #define OVERLAY_WINDOW #include "decl.h" #include #include "dcel.h" class OverlayWindow : public GraphWin // inherit from LEDA graphics window class { public: OverlayWindow(double x = DEFAULT_WIDTH, double y = DEFAULT_HEIGHT, const char* label = "Map overlay"); // redefinition of init in derived class in order to provide default arguments void init(double xmin = DEFAULT_XMIN, double xmax = DEFAULT_XMAX, double ymin = DEFAULT_YMIN) { GraphWin::win_init(xmin,xmax,ymin); } void draw_D_CEL(); // used in redraw operation (requires earlier call to second version of function) void draw_D_CEL(const D_CEL& d_cel, double x = DEFAULT_X_OFFSET, double y = DEFAULT_Y_OFFSET); private: void draw_D_CEL_vertex(Vertex* v_ptr); void draw_D_CEL_half_edge(HalfEdge* he_ptr); void draw_D_CEL_face(Face* f_ptr); double calc_x(double); double calc_y(double); D_CEL* d_cel_ptr; vector nodes; }; #endif