Ejemplo n.º 1
0
 def getEditor(self, parent):
     if not NurbsPatchEditor: return None
     editor = NurbsPatchEditor(parent)
     editor.camera().setPosition(Vec(1, 0, 0.5))
     editor.camera().setUpVector(Vec(0, 0, 1))
     editor.camera().setViewDirection(Vec(-1, 0, 0))
     editor.camera().fitSphere(Vec(0, 0, 0.5), 0.8)
     return editor
Ejemplo n.º 2
0
 def getEditor(self,parent):
     editor = NurbsPatchEditor(parent)
     editor.camera().setPosition(Vec(1,0,0.5))
     editor.camera().setUpVector(Vec(0,0,1))
     editor.camera().setViewDirection(Vec(-1,0,0))
     editor.camera().fitSphere(Vec(0,0,0.5),0.8)
     return editor
Ejemplo n.º 3
0
 def __init__(self, node, parent):
     """
     """
     NurbsPatchEditor.__init__(self, parent)
     NodeWidget.__init__(self, node)
     
     self.notify(node, ('input_modified',))
     
     self.connect(self, QtCore.SIGNAL("valueChanged()"), \
                  self.valueChanged)
     
     self.window().setWindowTitle(node.get_caption())
Ejemplo n.º 4
0
 def __init__(self, node, parent):
     """
     """
     NurbsPatchEditor.__init__(self, parent)
     NodeWidget.__init__(self, node)
     
     self.notify(node, ('input_modified',))
     
     self.connect(self, QtCore.SIGNAL("valueChanged()"), \
                  self.valueChanged)
     
     self.window().setWindowTitle(node.get_caption())
Ejemplo n.º 5
0
 def __init__(self):
     AbstractQtControlWidget.__init__(self)
     NurbsPatchEditor.__init__(self, parent=None)
     self.value_changed_signal = 'valueChanged()'
Ejemplo n.º 6
0
 def __init__(self):
     AbstractQtControlWidget.__init__(self)
     NurbsPatchEditor.__init__(self, parent=None)
     self.value_changed_signal = 'valueChanged()'