Skip to content

Instantly share code, notes, and snippets.

@rtroe
Created March 7, 2016 11:24
Show Gist options
  • Save rtroe/c0c8fd9ad21e3927a519 to your computer and use it in GitHub Desktop.
Save rtroe/c0c8fd9ad21e3927a519 to your computer and use it in GitHub Desktop.
class wxOCEWindow: public wxScrolledWindow
{
public:
wxOCEWindow(wxWindow *parent, const wxPoint& pos, const wxSize& size, long style);
...
TCollection_ExtendedString a3DName ("Visu3D");
//Create the Global wxPanel too hold the wxOCE Control
ctrl = new wxPanel(this);
//Capture the wxScrollWindows events and send them to the wxPanel
ctrl->SetEventHandler(this);
//Create the Viewer
myViewer = Viewer (ctrl, a3DName.ToExtString(), "", 1000.0, V3d_XposYnegZpos, Standard_True, Standard_True);
//Set Lighting
myViewer->SetDefaultLights();
myViewer->SetLightOn();
//Create Context
myContext = new AIS_InteractiveContext (myViewer);
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment