Created
March 7, 2016 11:24
-
-
Save rtroe/c0c8fd9ad21e3927a519 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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