@@ -127,7 +127,6 @@ def __init__(self):
127127 self .Viewer = self .GetViewer ()
128128 self .View = self .GetView ()
129129
130- self .OverLayer = None
131130 self .default_drawer = None
132131 self ._struc_mgr = None
133132 self ._is_offscreen = None
@@ -144,11 +143,6 @@ def register_overlay_item(self, overlay_item):
144143 self .View .MustBeResized ()
145144 self .View .Redraw ()
146145
147- def GetOverLayer (self ):
148- """ returns an handle to the current overlayer
149- """
150- return self .OverLayer
151-
152146 def register_select_callback (self , callback ):
153147 """ Adds a callback that will be called each time a shape s selected
154148 """
@@ -170,7 +164,8 @@ def FitAll(self):
170164 self .View .ZFitAll ()
171165 self .View .FitAll ()
172166
173- def Create (self , window_handle = None , parent = None , create_default_lights = True , draw_face_boundaries = True , phong_shading = True ):
167+ def Create (self , window_handle = None , parent = None , create_default_lights = True ,
168+ draw_face_boundaries = True , phong_shading = True , display_glinfo = True ):
174169 self ._window_handle = window_handle
175170 self ._parent = parent
176171
@@ -181,6 +176,10 @@ def Create(self, window_handle=None, parent=None, create_default_lights=True, dr
181176 self .Init (self ._window_handle )
182177 self ._is_offscreen = False
183178
179+ # display OpenGl Information
180+ if display_glinfo :
181+ self .GlInfo ()
182+
184183 if create_default_lights :
185184 self .Viewer .SetDefaultLights ()
186185 self .Viewer .SetLightOn ()
@@ -200,9 +199,6 @@ def Create(self, window_handle=None, parent=None, create_default_lights=True, dr
200199 # gouraud shading by default, prefer phong instead
201200 self .View .SetShadingModel (Graphic3d_TOSM_FRAGMENT )
202201
203- # the selected elements gray by default, better to use orange...
204- # self.Context.SelectionColor(Quantity_NOC_ORANGE)
205-
206202 # necessary for text rendering
207203 self ._struc_mgr = self .Context .MainPrsMgr ().StructureManager ()
208204
0 commit comments