Skip to content

Instantly share code, notes, and snippets.

@rtroe
Last active March 7, 2016 11:21
Show Gist options
  • Save rtroe/83b60b2230e9d587f903 to your computer and use it in GitHub Desktop.
Save rtroe/83b60b2230e9d587f903 to your computer and use it in GitHub Desktop.
//////////////////////////// VARIABLES /////////////////////////////
//The OCE Window
Handle(Xw_Window) wind;
//The Panel which holds the OCE Window
wxPanel* ctrl ;
//Used for connecting too the Graphics Card
Handle(Aspect_DisplayConnection) aDisplayConnection;
//OpenCascade Context (Used for adding Shapes)
Handle(AIS_InteractiveContext) myContext;
//The OCE View
Handle(V3d_View) mView;
Handle(V3d_Viewer) myViewer;
//////////////////////////// FUNCTIONS /////////////////////////////
//A Helper Function to create the
Handle(V3d_Viewer) Viewer (wxWindow* panel,
const Standard_ExtString theName,
const Standard_CString theDomain,
const Standard_Real theViewSize,
const V3d_TypeOfOrientation theViewProj,
const Standard_Boolean theComputedMode,
const Standard_Boolean theDefaultComputedMode );
//Catched the resizing of the wxScrolledWindow
void OnSize(wxSizeEvent& event);
//Redraw the Control
void OnIdle(wxIdleEvent& event);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment