Beispiel #1
0
 def __init__(self, parent, glpane, handleCenter):
     """
     Constructor for class ResizeHandle
     @param parent: The parent object that can be resized using this handle.
                    The parent can be a L{ReferenceGeometry}
     @param handleCenter: The center of the handle. If None, use the handle's
                     I{center} property.
     @type  handleCenter: L{V} or None
     
     """
     self.parent = parent
     #this could be parent.glpane , but pass glpane object explicitely
     #for creating  a handle to avoid any errors
     self.glpane = glpane
     self.center = handleCenter
     # No texture in handles (drawn ResizeHandle object). 
     # Ideally the following value in the drawer.drawPlane method 
     #should be False by default.
     self.textureReady  = False
     self.pickCheckOnly = False        
     self.glname = env.alloc_my_glselect_name(self)        
     self.type   = None      
 def __init__(self, parent, glpane, handleCenter):
     """
     Constructor for class ResizeHandle
     @param parent: The parent object that can be resized using this handle.
                    The parent can be a L{ReferenceGeometry}
     @param handleCenter: The center of the handle. If None, use the handle's
                     I{center} property.
     @type  handleCenter: L{V} or None
     
     """
     self.parent = parent
     #this could be parent.glpane , but pass glpane object explicitely
     #for creating  a handle to avoid any errors
     self.glpane = glpane
     self.center = handleCenter
     # No texture in handles (drawn ResizeHandle object).
     # Ideally the following value in the drawer.drawPlane method
     #should be False by default.
     self.textureReady = False
     self.pickCheckOnly = False
     self.glname = env.alloc_my_glselect_name(self)
     self.type = None
Beispiel #3
0
    def __init__(self, parent, glpane, tailPoint, defaultDirection):
        """
        Creates a direction arrow.

        @param parent: The parent object.
        @type  parent:

        @param glpane: The 3D graphics area object.
        @type  glpane: L{GLPane}

        @param tailPoint: The origin of the arrow.
        @type  tailPoint: V

        @param defaultDirection: The direction of the arrow.
        @type  defaultDirection: 
        """
        self.parent = parent
        self.glpane = glpane
        self.tailPoint = tailPoint  
        self.direction = defaultDirection        
        self.glname = env.alloc_my_glselect_name(self)  
        self.flipDirection = False
        self.drawRequested = False
Beispiel #4
0
 def __init__(self):
     self.glname = env.alloc_my_glselect_name(self)
Beispiel #5
0
 def __init__(self):
     self.glname = env.alloc_my_glselect_name(self)