-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
836 additions
and
814 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# | ||
# OpenAlea.Visualea: OpenAlea graphical user interface | ||
# | ||
# Copyright 2006-2008 INRIA - CIRAD - INRA | ||
# Copyright 2006-2024 INRIA - CIRAD - INRAE | ||
# | ||
# File author(s): Samuel Dufour-Kowalski <[email protected]> | ||
# Christophe Pradal <[email protected]> | ||
|
@@ -24,8 +24,8 @@ | |
from openalea.core.interface import * #IGNORE:W0614,W0401 | ||
from openalea.core.observer import lock_notify | ||
from openalea.visualea.node_widget import NodeWidget | ||
from openalea.plantgl.gui.curve2deditor import Curve2DEditor, Curve2DConstraint, FuncConstraint | ||
from openalea.plantgl.gui.nurbspatcheditor import NurbsPatchEditor | ||
from openalea.plantgl.gui.curve2deditor import Curve2DEditorView, Curve2DConstraint, FuncConstraint | ||
from openalea.plantgl.gui.nurbspatcheditor import NurbsPatch3DEditorView | ||
from openalea.plantgl.scenegraph import NurbsCurve2D | ||
from .pgl_interface import ICurve2D, INurbsPatch | ||
from pickle import loads | ||
|
@@ -76,7 +76,7 @@ def notify(self, sender, event): | |
''' | ||
|
||
|
||
class Curve2DWidget(NodeWidget, Curve2DEditor): | ||
class Curve2DWidget(NodeWidget, Curve2DEditorView): | ||
""" | ||
Curve2D widget | ||
""" | ||
|
@@ -89,7 +89,7 @@ def isDefault(crv): | |
def __init__(self, node, parent): | ||
""" | ||
""" | ||
Curve2DEditor.__init__(self, parent) | ||
Curve2DEditorView.__init__(self, parent) | ||
NodeWidget.__init__(self, node) | ||
|
||
self.notify(node, ('input_modified',)) | ||
|
@@ -176,7 +176,7 @@ def notify(self, sender, event): | |
''' | ||
|
||
|
||
class NurbsPatchWidget(NodeWidget, NurbsPatchEditor): | ||
class NurbsPatchWidget(NodeWidget, NurbsPatch3DEditorView): | ||
""" | ||
NurbsPatchEditor widget | ||
""" | ||
|
@@ -185,7 +185,7 @@ class NurbsPatchWidget(NodeWidget, NurbsPatchEditor): | |
def __init__(self, node, parent): | ||
""" | ||
""" | ||
NurbsPatchEditor.__init__(self, parent) | ||
NurbsPatch3DEditorView.__init__(self, parent) | ||
NodeWidget.__init__(self, node) | ||
|
||
self.notify(node, ('input_modified',)) | ||
|
@@ -198,7 +198,7 @@ def __init__(self, node, parent): | |
@lock_notify | ||
def valueChanged(self): | ||
""" update value """ | ||
patch = self.getNurbsPatch() | ||
patch = self.getNurbsObject() | ||
self.node.set_input(0, patch) | ||
|
||
def notify(self, sender, event): | ||
|
Oops, something went wrong.