Пример #1
0
    def __init__(self, parent):
        self._init_ctrls(parent)

        self.can = myCanvas(self)
        self.Show()
        self.can.glSetCurrent()
        self.can.set_bg_color([0.0, 0.0, 0.0])
        self.rays = 10
        self.__listsInitialized = False
        self.can.glSetCurrent()
        self.__initializeLists()
Пример #2
0
    def __init__(self, parent):
        self._init_ctrls(parent)

        self.can = myCanvas(self)
        self.Show()
        self.can.glSetCurrent()
        self.can.set_bg_color([0.0, 0.0, 0.0])
        self.rays = 10
        self.__listsInitialized = False
        self.can.glSetCurrent()
        self.__initializeLists()
Пример #3
0
    def __init__(self, parent):
        self._init_ctrls(parent)
        self.can = myCanvas(self)
        self.Show()
        self.can.glSetCurrent()
        self.can.set_bg_color([0.0,0.0,0.0])
        self.rays = 5

        self.can.glSetCurrent()
        self.glRayListStart = glGenLists(self.rays)
        self.rayList = range(self.glRayListStart,self.glRayListStart+self.rays)        
        self.can.set_ray_list(self.rayList)
        
        self.y_ave = 0.0
        self.can.Rotateable(False)
Пример #4
0
    def __init__(self, parent):
        self._init_ctrls(parent)
        self.can = myCanvas(self)
        self.Show()
        self.can.glSetCurrent()
        self.can.set_bg_color([0.0, 0.0, 0.0])

        self.rays = 1000
        self.glRayListStart = glGenLists(self.rays)
        self.rayList = range(self.glRayListStart,
                             self.glRayListStart + self.rays)
        self.can.set_ray_list(self.rayList)

        self.y_ave = 0.0
        self.can.Rotateable(False)
Пример #5
0
 def __init__(self, parent):
     self.__init_ctrls(parent)
     self._frameInit = False        
     #self.gl_list    = []
     self.lens_list = []
     self.ray_list  = []              
     self.color = [0,0,0]
     
     self.Show()    
     self.can = myCanvas(self)
     self.can.centered = False
     self.rows = 40
     self.__listsInitialized = False
     self.can.glSetCurrent()
     self.__initializeLists()