From 726686c9b378f3a727ded52226b13a760cba1e6c Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Sat, 3 Sep 2016 17:09:24 -0300 Subject: Inductor under implementation Ind motor, sync condenser and load implemented --- Project/Element.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Project/Element.h') diff --git a/Project/Element.h b/Project/Element.h index 7eb90c9..d15fc57 100644 --- a/Project/Element.h +++ b/Project/Element.h @@ -24,6 +24,8 @@ enum ContextMenuID ID_EDIT_TRANSFORMER, ID_EDIT_SYNCGENERATOR, ID_EDIT_INDMOTOR, + ID_EDIT_SYNCMOTOR, + ID_EDIT_LOAD, ID_LINE_ADD_NODE, ID_LINE_REMOVE_NODE, @@ -93,8 +95,10 @@ class Element double offsetY = 0.0) const; virtual bool RotatedRectanglesIntersects(wxRect2DDouble rect1, wxRect2DDouble rect2, double angle1, double angle2) const; virtual void DrawCircle(wxPoint2DDouble position, double radius, int numSegments, GLenum mode = GL_LINE_LOOP) const; + virtual void DrawArc(wxPoint2DDouble position, double radius, double initAngle, double finalAngle, int numSegments, GLenum mode = GL_LINE_LOOP) const; virtual void DrawRectangle(wxPoint2DDouble position, double width, double height, GLenum mode = GL_QUADS) const; virtual void DrawRectangle(wxPoint2DDouble* points, GLenum mode = GL_QUADS) const; + virtual void DrawTriangle(std::vector points, GLenum mode = GL_TRIANGLES) const; virtual void DrawPoint(wxPoint2DDouble position, double size) const; virtual void DrawLine(std::vector points, GLenum mode = GL_LINE_STRIP) const; virtual void DrawPickbox(wxPoint2DDouble position) const; -- cgit