%include _ogldefs.i
-%extern oglbasic.i
+%import oglbasic.i
%pragma(python) code = "import wx"
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
-class wxDiagram {
+class wxDiagram : public wxObject {
public:
wxDiagram();
- ~wxDiagram();
+ //~wxDiagram();
- void AddShape(wxPyShape*shape, wxPyShape *addAfter = NULL);
+ void AddShape(wxPyShape* shape, wxPyShape *addAfter = NULL);
void Clear(wxDC& dc);
void DeleteAllShapes();
void DrawOutline(wxDC& dc, double x1, double y1, double x2, double y2);
void SetQuickEditMode(bool mode);
void SetSnapToGrid(bool snap);
void ShowAll(bool show);
- void Snap(double *OUTPUT, double *OUTPUT);
+ void Snap(double *INOUT, double *INOUT);
};
void Redraw(wxDC& dc);
void RemoveShape(wxPyShape *shape);
void SetDiagram(wxDiagram *diagram);
- void Snap(double *OUTPUT, double *OUTPUT);
+ void Snap(double *INOUT, double *INOUT);
};