diff --git a/src/openalea/plantgl/ext/pgl_utils.py b/src/openalea/plantgl/ext/pgl_utils.py index 555c0502..c91a043b 100644 --- a/src/openalea/plantgl/ext/pgl_utils.py +++ b/src/openalea/plantgl/ext/pgl_utils.py @@ -24,7 +24,7 @@ """ import math import random as rdm -from scipy import array, arange +from numpy import array, arange from copy import deepcopy import openalea.plantgl.all as pgl diff --git a/src/openalea/plantgl/wralea/demos/__wralea__.py b/src/openalea/plantgl/wralea/demos/__wralea__.py index a40977cc..909822bd 100644 --- a/src/openalea/plantgl/wralea/demos/__wralea__.py +++ b/src/openalea/plantgl/wralea/demos/__wralea__.py @@ -4,14 +4,15 @@ from openalea.core import * -__name__ = 'vplants.plantgl.demos' +__name__ = 'openalea.plantgl.demos' +__alias__ = ["vplants.plantgl.demos"] __editable__ = True __description__ = 'Demos of plantgl nodes' __license__ = 'CECILL-C' -__url__ = 'http://openalea.gforge.inria.fr/doc/vplants/plantgl/doc/_build/html/contents.html' +__url__ = 'http://openalea.rtfd.io/' __alias__ = [] -__version__ = '0.8.0' +__version__ = '0.9.0' __authors__ = 'Thomas Cokelaer' __institutes__ = 'INRIA/CIRAD' __icon__ = 'hull.png' @@ -27,15 +28,15 @@ doc='', inputs=[], outputs=[], - elt_factory={ 2: ('vplants.plantgl.objects', 'Box'), + elt_factory={ 2: ('openalea.plantgl.objects', 'Box'), 3: ('openalea.flow control', 'annotation'), 4: ('openalea.flow control', 'annotation'), - 5: ('vplants.plantgl.visualization', 'plot3D'), - 6: ('vplants.plantgl.visualization', 'plot3D'), - 8: ('vplants.plantgl.objects', 'Sphere'), - 9: ('vplants.plantgl.objects', 'Shape'), - 10: ('vplants.plantgl.objects', 'Sphere'), - 11: ('vplants.plantgl.objects', 'Material')}, + 5: ('openalea.plantgl.visualization', 'plot3D'), + 6: ('openalea.plantgl.visualization', 'plot3D'), + 8: ('openalea.plantgl.objects', 'Sphere'), + 9: ('openalea.plantgl.objects', 'Shape'), + 10: ('openalea.plantgl.objects', 'Sphere'), + 11: ('openalea.plantgl.objects', 'Material')}, elt_connections={ 147877352: (8, 0, 9, 2), 147877364: (9, 0, 5, 0), 147877376: (10, 0, 6, 0), @@ -217,28 +218,28 @@ inputs=[], outputs=[], elt_factory={ 2: ('openalea.data structure.list', 'list'), - 3: ('vplants.plantgl.objects', 'Color3'), - 4: ('vplants.plantgl.objects', 'Material'), - 5: ('vplants.plantgl.objects', 'Shape'), - 6: ('vplants.plantgl.objects', 'Scene'), - 7: ('vplants.plantgl.visualization', 'plot3D'), + 3: ('openalea.plantgl.objects', 'Color3'), + 4: ('openalea.plantgl.objects', 'Material'), + 5: ('openalea.plantgl.objects', 'Shape'), + 6: ('openalea.plantgl.objects', 'Scene'), + 7: ('openalea.plantgl.visualization', 'plot3D'), 8: ('openalea.data structure.list', 'list'), - 9: ('vplants.plantgl.objects', 'AsymmetricHull'), + 9: ('openalea.plantgl.objects', 'AsymmetricHull'), 10: ('openalea.data structure.list', 'list'), - 11: ('vplants.plantgl.objects', 'AsymmetricHull'), - 12: ('vplants.plantgl.objects', 'Shape'), - 13: ('vplants.plantgl.objects', 'Translated'), - 14: ('vplants.plantgl.objects', 'Translated'), + 11: ('openalea.plantgl.objects', 'AsymmetricHull'), + 12: ('openalea.plantgl.objects', 'Shape'), + 13: ('openalea.plantgl.objects', 'Translated'), + 14: ('openalea.plantgl.objects', 'Translated'), 15: ('openalea.data structure.list', 'list'), 16: ('openalea.data structure.list', 'list'), - 17: ('vplants.plantgl.objects', 'AsymmetricHull'), - 18: ('vplants.plantgl.objects', 'AsymmetricHull'), - 19: ('vplants.plantgl.objects', 'Translated'), - 20: ('vplants.plantgl.objects', 'Translated'), + 17: ('openalea.plantgl.objects', 'AsymmetricHull'), + 18: ('openalea.plantgl.objects', 'AsymmetricHull'), + 19: ('openalea.plantgl.objects', 'Translated'), + 20: ('openalea.plantgl.objects', 'Translated'), 21: ('openalea.data structure.list', 'list'), 22: ('openalea.data structure.list', 'list'), - 23: ('vplants.plantgl.objects', 'Shape'), - 24: ('vplants.plantgl.objects', 'Shape'), + 23: ('openalea.plantgl.objects', 'Shape'), + 24: ('openalea.plantgl.objects', 'Shape'), 25: ('openalea.flow control', 'annotation')}, elt_connections={ 155573412: (13, 0, 12, 2), 155573424: (19, 0, 23, 2), @@ -789,16 +790,16 @@ doc='', inputs=[], outputs=[], - elt_factory={ 3: ('vplants.plantgl.objects', 'Shape'), - 4: ('vplants.plantgl.visualization', 'plot3D'), - 5: ('vplants.plantgl.objects', 'ImageTexture'), - 6: ('vplants.plantgl.objects', 'QuadSet'), + elt_factory={ 3: ('openalea.plantgl.objects', 'Shape'), + 4: ('openalea.plantgl.visualization', 'plot3D'), + 5: ('openalea.plantgl.objects', 'ImageTexture'), + 6: ('openalea.plantgl.objects', 'QuadSet'), 7: ('openalea.data structure.list', 'list'), 8: ('openalea.data structure.list', 'list'), 9: ('openalea.data structure.list', 'list'), 10: ('openalea.data structure.list', 'list'), 11: ('openalea.flow control', 'annotation'), - 13: ('vplants.plantgl.demos', 'leaf_tex.png')}, + 13: ('openalea.plantgl.demos', 'leaf_tex.png')}, elt_connections={ 167714232: (6, 0, 3, 2), 167714244: (10, 0, 6, 13), 167714256: (8, 0, 6, 5), @@ -982,7 +983,7 @@ 9: [(0, '[(0, 1, 2, 3)]')], 10: [(0, '[(0, 0), (0, 1), (1, 1), (1, 0)]')], 11: [], - 13: [ (0, 'PackageData(vplants.plantgl.demos, leaf_tex.png)'), + 13: [ (0, 'PackageData(openalea.plantgl.demos, leaf_tex.png)'), (1, 'None'), (2, 'None')], '__in__': [], @@ -1042,21 +1043,21 @@ doc='', inputs=[], outputs=[], - elt_factory={ 2: ('vplants.plantgl.visualization', 'plot3D'), - 3: ('vplants.plantgl.objects', 'QuadSet'), + elt_factory={ 2: ('openalea.plantgl.visualization', 'plot3D'), + 3: ('openalea.plantgl.objects', 'QuadSet'), 4: ('openalea.data structure.list', 'list'), 5: ('openalea.flow control', 'annotation'), 6: ('openalea.data structure.list', 'list'), 7: ('openalea.data structure.list', 'list'), 8: ('openalea.data structure.list', 'list'), - 10: ('vplants.plantgl.objects', 'Color4'), + 10: ('openalea.plantgl.objects', 'Color4'), 13: ('openalea.flow control', 'annotation'), 14: ('openalea.flow control', 'annotation'), 15: ('openalea.flow control', 'annotation'), 16: ('openalea.flow control', 'annotation'), - 17: ('vplants.plantgl.objects', 'Color4'), - 18: ('vplants.plantgl.objects', 'Color4'), - 19: ('vplants.plantgl.objects', 'Color4')}, + 17: ('openalea.plantgl.objects', 'Color4'), + 18: ('openalea.plantgl.objects', 'Color4'), + 19: ('openalea.plantgl.objects', 'Color4')}, elt_connections={ 147877292: (7, 0, 3, 5), 147877304: (17, 0, 8, 0), 147877316: (10, 0, 8, 0), @@ -1320,27 +1321,27 @@ doc='', inputs=[], outputs=[], - elt_factory={ 2: ('vplants.plantgl.objects', 'Sphere'), - 3: ('vplants.plantgl.objects', 'Translated'), + elt_factory={ 2: ('openalea.plantgl.objects', 'Sphere'), + 3: ('openalea.plantgl.objects', 'Translated'), 4: ('openalea.data structure.list', 'list'), - 5: ('vplants.plantgl.visualization', 'plot3D'), + 5: ('openalea.plantgl.visualization', 'plot3D'), 6: ('openalea.flow control', 'annotation'), 7: ('openalea.flow control', 'annotation'), - 8: ('vplants.plantgl.objects', 'Sphere'), - 9: ('vplants.plantgl.objects', 'Sphere'), - 10: ('vplants.plantgl.objects', 'Translated'), - 11: ('vplants.plantgl.objects', 'Translated'), + 8: ('openalea.plantgl.objects', 'Sphere'), + 9: ('openalea.plantgl.objects', 'Sphere'), + 10: ('openalea.plantgl.objects', 'Translated'), + 11: ('openalea.plantgl.objects', 'Translated'), 12: ('openalea.data structure.tuple', 'tuple'), 13: ('openalea.data structure.tuple', 'tuple'), - 14: ('vplants.plantgl.objects', 'Shape'), + 14: ('openalea.plantgl.objects', 'Shape'), 15: ('openalea.data structure.tuple', 'tuple'), - 16: ('vplants.plantgl.objects', 'Material'), - 17: ('vplants.plantgl.visualization', 'plot3D'), + 16: ('openalea.plantgl.objects', 'Material'), + 17: ('openalea.plantgl.visualization', 'plot3D'), 18: ('openalea.data structure.tuple', 'tuple'), - 19: ('vplants.plantgl.objects', 'Material'), - 20: ('vplants.plantgl.objects', 'Shape'), + 19: ('openalea.plantgl.objects', 'Material'), + 20: ('openalea.plantgl.objects', 'Shape'), 21: ('openalea.data structure.list', 'list'), - 22: ('vplants.plantgl.objects', 'Scene')}, + 22: ('openalea.plantgl.objects', 'Scene')}, elt_connections={ 147877148: (12, 0, 16, 1), 147877160: (12, 0, 16, 3), 147877172: (13, 0, 11, 2), diff --git a/src/openalea/plantgl/wralea/dresser/__wralea__.py b/src/openalea/plantgl/wralea/dresser/__wralea__.py index 6e085b74..1ec2e489 100644 --- a/src/openalea/plantgl/wralea/dresser/__wralea__.py +++ b/src/openalea/plantgl/wralea/dresser/__wralea__.py @@ -17,10 +17,10 @@ from openalea.core import Factory -__name__ = "vplants.plantgl.dresser" -__alias__ = ["PlantGL.Dresser"] +__name__ = "openalea.plantgl.dresser" +__alias__ = ["PlantGL.Dresser", "vplants.plantgl.dresser"] -__version__ = '0.0.1' +__version__ = '0.1.0' __license__ = 'CECILL-C' __authors__ = 'F. Boudon and D. Da Silva' __institutes__ = 'INRIA/CIRAD' @@ -32,6 +32,6 @@ dresser = Factory(name="PGL Dresser", description="Add Pgl geometry an object", category="scene.PGL", - nodemodule="vplants.plantgl.ext.dresser", + nodemodule="openalea.plantgl.ext.dresser", nodeclass="dresser", ) diff --git a/src/openalea/plantgl/wralea/edition/__wralea__.py b/src/openalea/plantgl/wralea/edition/__wralea__.py index 2604d873..c93c3653 100644 --- a/src/openalea/plantgl/wralea/edition/__wralea__.py +++ b/src/openalea/plantgl/wralea/edition/__wralea__.py @@ -2,23 +2,25 @@ #from .pgl_interface import * #from .pgl_interface_widget import * -__name__ = "vplants.plantgl.edition" +__name__ = "openalea.plantgl.edition" +__alias__ = ["vplants.plantgl.edition"] +__editable__ = True __version__ = '0.0.2' __license__ = 'CECILL-V2' -__authors__ = 'F. Boudon' +__authors__ = 'F. Boudon, C. Pradal' __institutes__ = 'INRIA/CIRAD' __description__ = 'PlantGL Edition nodes.' -__url__ = 'http://openalea.gforge.inria.fr' +__url__ = 'http://openalea.rtfd.io' __all__ = ['curve2d', 'nurbs'] curve2d = Factory( name= "Curve2D", description= "Display and edition of a curve 2D", category = "Visualisation, Edition", - nodemodule = "pgl_edition_node", + nodemodule = "openalea.plantgl.wralea.edition.pgl_edition_node", nodeclass = "curve2D", - widgetmodule = "pgl_interface_widget", + widgetmodule = "openalea.plantgl.wralea.edition.pgl_interface_widget", widgetclass = "Curve2DWidget", inputs=(dict(name="curve", interface=None,),dict(name="curve", interface=None,)), outputs=(dict(name="curve", interface=None,),), @@ -28,11 +30,11 @@ nurbs= Factory( name= "NurbsPatch", description= "Display and edition of a Nurbs Patch", category = "Visualisation, Edition", - nodemodule = "pgl_edition_node", + nodemodule = "openalea.plantgl.wralea.edition.pgl_edition_node", nodeclass = "nurbs", - widgetmodule = "pgl_interface_widget", + widgetmodule = "openalea.plantgl.wralea.edition.pgl_interface_widget", widgetclass = "NurbsPatchWidget", - inputs=(dict(name="nurbs", interface=None,),), + inputs=(dict(name="nurbs", interface=None,),dict(name="curve", interface=None,)), outputs=(dict(name="nurbs",),), lazy = False ) diff --git a/src/openalea/plantgl/wralea/edition/pgl_edition_node.py b/src/openalea/plantgl/wralea/edition/pgl_edition_node.py index 61c768d2..686aaa18 100644 --- a/src/openalea/plantgl/wralea/edition/pgl_edition_node.py +++ b/src/openalea/plantgl/wralea/edition/pgl_edition_node.py @@ -1,4 +1,4 @@ -from openalea.core import * +from openalea.core import Node from copy import deepcopy from pickle import loads, dumps from openalea.plantgl.all import NurbsCurve2D @@ -22,6 +22,5 @@ def __call__(self, inputs): def nurbs(surf): """ A curve 2D """ - from copy import deepcopy return deepcopy(surf) diff --git a/src/openalea/plantgl/wralea/edition/pgl_interface.py b/src/openalea/plantgl/wralea/edition/pgl_interface.py index 9230b6c8..78552819 100644 --- a/src/openalea/plantgl/wralea/edition/pgl_interface.py +++ b/src/openalea/plantgl/wralea/edition/pgl_interface.py @@ -1,7 +1,7 @@ # -*- python -*- # # -# Copyright 2006-2010 INRIA - CIRAD - INRA +# Copyright 2006-2024 INRIA - CIRAD - INRAE # # File author(s): Pradal, Boudon, Barbeau # @@ -14,9 +14,8 @@ """declaration of curve2D interface and its widget """ __license__ = "Cecill-C" -__revision__ = " $Id: interface.py 2245 2010-02-08 17:11:34Z cokelaer $" -from openalea.core.interface import IInterface, IInterfaceMetaClass +from openalea.core.interface import IInterface from openalea.plantgl.scenegraph import Curve2D, NurbsCurve2D, NurbsPatch class ICurve2D(IInterface) : diff --git a/src/openalea/plantgl/wralea/edition/pgl_interface_widget.py b/src/openalea/plantgl/wralea/edition/pgl_interface_widget.py index edaf6998..dfb6eb69 100644 --- a/src/openalea/plantgl/wralea/edition/pgl_interface_widget.py +++ b/src/openalea/plantgl/wralea/edition/pgl_interface_widget.py @@ -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 # Christophe Pradal @@ -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,18 +89,17 @@ 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',)) - self.connect(self, QtCore.SIGNAL("valueChanged()"), \ - self.valueChanged) + self.valueChanged.connect(self.onValueChanged) self.window().setWindowTitle(node.get_caption()) @lock_notify - def valueChanged(self): + def onValueChanged(self): """ update value """ crv = self.getCurve() if crv and not self.isDefault(crv): @@ -176,7 +175,7 @@ def notify(self, sender, event): ''' -class NurbsPatchWidget(NodeWidget, NurbsPatchEditor): +class NurbsPatchWidget(NodeWidget, NurbsPatch3DEditorView): """ NurbsPatchEditor widget """ @@ -185,20 +184,21 @@ 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',)) - self.connect(self, QtCore.SIGNAL("valueChanged()"), \ - self.valueChanged) - + #self.connect(self, QtCore.SIGNAL("valueChanged()"), + # self.valueChanged) + self.valueChanged.connect(self.onValueChanged) + self.window().setWindowTitle(node.get_caption()) @lock_notify - def valueChanged(self): + def onValueChanged(self): """ update value """ - patch = self.getNurbsPatch() + patch = self.getNurbsObject() self.node.set_input(0, patch) def notify(self, sender, event): @@ -215,10 +215,10 @@ def notify(self, sender, event): pass try: - crv = self.node.get_input(0) + patch = self.node.get_input(0) except: - crv = INurbsPatch.default() - if not crv: - crv = INurbsPatch.default() - self.setNurbsPatch(crv) + patch= INurbsPatch.default() + if not patch: + patch = INurbsPatch.default() + self.setNurbsObject(patch) diff --git a/src/openalea/plantgl/wralea/objects/__wralea__.py b/src/openalea/plantgl/wralea/objects/__wralea__.py index 0c2740b5..eb358b36 100644 --- a/src/openalea/plantgl/wralea/objects/__wralea__.py +++ b/src/openalea/plantgl/wralea/objects/__wralea__.py @@ -1,727 +1,743 @@ - -# This file has been generated at Mon Aug 23 11:36:04 2010 - -from openalea.core import * - - -__name__ = 'vplants.plantgl.objects' - -__editable__ = False -__alias__ = ['PlantGL.Objects'] -__version__ = '0.0.2' -__description__ = 'PlantGL Object Generator nodes.' -__license__ = 'CECILL-V2' -__authors__ = 'F. Boudon, C. Pradal' -__url__ = 'http://openalea.gforge.inria.fr' -__institutes__ = 'INRIA/CIRAD' - - -__all__ = ['objectgenerator_TextNode', 'objectgenerator_BezierPatchNode', 'objectgenerator_MaterialNode', 'objectgenerator_Color3Node', 'objectgenerator_EulerRotatedNode', 'objectgenerator_BoxNode', 'objectgenerator_AsymmetricHullNode', 'objectgenerator_SceneNode', 'objectgenerator_Texture2DTransformationNode', 'objectgenerator_ExtrudedHullNode', 'objectgenerator_BezierCurve2DNode', 'objectgenerator_GroupNode', 'objectgenerator_QuadSetNode', 'objectgenerator_QuantisedFunctionNode', 'objectgenerator_AxisRotatedNode', 'objectgenerator_Color4Node', 'objectgenerator_ImageTextureNode', 'objectgenerator_PolylineNode', 'objectgenerator_TriangleSetNode', 'objectgenerator_ScaledNode', 'objectgenerator_Polyline2DNode', 'objectgenerator_NurbsCurveNode', 'objectgenerator_OrientedNode', 'objectgenerator_ExtrusionNode', 'objectgenerator_MonoSpectralNode', 'objectgenerator_CylinderNode', 'objectgenerator_ConeNode', 'objectgenerator_FrustumNode', 'objectgenerator_PointSetNode', 'objectgenerator_FaceSetNode', 'objectgenerator_RevolutionNode', 'objectgenerator_SwungNode', 'objectgenerator_Texture2DNode', 'objectgenerator_ParaboloidNode', 'objectgenerator_BezierCurveNode', 'objectgenerator_MultiSpectralNode', 'objectgenerator_NurbsPatchNode', 'objectgenerator_PointSet2DNode', 'objectgenerator_NurbsCurve2DNode', 'objectgenerator_DiscNode', 'objectgenerator_TaperedNode', 'objectgenerator_AmapSymbolNode', 'objectgenerator_ShapeNode', 'objectgenerator_TranslatedNode', 'objectgenerator_ElevationGridNode', 'objectgenerator_SphereNode', 'objectgenerator_IFSNode'] - - - -objectgenerator_TextNode = Factory(name='Text', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Text', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='TextNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_BezierPatchNode = Factory(name='BezierPatch', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a BezierPatch', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='BezierPatchNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_MaterialNode = Factory(name='Material', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Material', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='MaterialNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_Color3Node = Factory(name='Color3', - authors='Thomas Cokelaer', - description='', - category='Unclassified', - nodemodule='objectgenerator', - nodeclass='Color3Node', - inputs=[{'interface': ISequence, 'name': 'IN1', 'value': [0, 150, 0], 'desc': ''}], - outputs=[{'interface': None, 'name': 'OUT1', 'desc': ''}], - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_EulerRotatedNode = Factory(name='EulerRotated', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a EulerRotated', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='EulerRotatedNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_BoxNode = Factory(name='Box', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Box', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='BoxNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_AsymmetricHullNode = Factory(name='AsymmetricHull', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a AsymmetricHull', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='AsymmetricHullNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_SceneNode = Factory(name='Scene', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Scene', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='SceneNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_Texture2DTransformationNode = Factory(name='Texture2DTransformation', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Texture2DTransformation', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='Texture2DTransformationNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_ExtrudedHullNode = Factory(name='ExtrudedHull', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a ExtrudedHull', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='ExtrudedHullNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_BezierCurve2DNode = Factory(name='BezierCurve2D', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a BezierCurve2D', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='BezierCurve2DNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_GroupNode = Factory(name='Group', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Group', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='GroupNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_QuadSetNode = Factory(name='QuadSet', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a QuadSet', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='QuadSetNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_QuantisedFunctionNode = Factory(name='QuantisedFunction', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a QuantisedFunction', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='QuantisedFunctionNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_AxisRotatedNode = Factory(name='AxisRotated', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a AxisRotated', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='AxisRotatedNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_Color4Node = Factory(name='Color4', - authors='Thomas Cokelaer', - description='', - category='Unclassified', - nodemodule='objectgenerator', - nodeclass='Color4Node', - inputs=[{'interface': ISequence, 'name': 'IN1', 'value': [150, 0, 0, 155], 'desc': ''}], - outputs=[{'interface': None, 'name': 'OUT1', 'desc': ''}], - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_ImageTextureNode = Factory(name='ImageTexture', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a ImageTexture', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='ImageTextureNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_PolylineNode = Factory(name='Polyline', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Polyline', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='PolylineNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_TriangleSetNode = Factory(name='TriangleSet', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a TriangleSet', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='TriangleSetNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_ScaledNode = Factory(name='Scaled', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Scaled', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='ScaledNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_Polyline2DNode = Factory(name='Polyline2D', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Polyline2D', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='Polyline2DNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_NurbsCurveNode = Factory(name='NurbsCurve', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a NurbsCurve', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='NurbsCurveNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_OrientedNode = Factory(name='Oriented', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Oriented', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='OrientedNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_ExtrusionNode = Factory(name='Extrusion', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Extrusion', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='ExtrusionNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_MonoSpectralNode = Factory(name='MonoSpectral', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a MonoSpectral', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='MonoSpectralNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_CylinderNode = Factory(name='Cylinder', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Cylinder', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='CylinderNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_ConeNode = Factory(name='Cone', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Cone', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='ConeNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_FrustumNode = Factory(name='Frustum', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Frustum', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='FrustumNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_PointSetNode = Factory(name='PointSet', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a PointSet', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='PointSetNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_FaceSetNode = Factory(name='FaceSet', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a FaceSet', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='FaceSetNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_RevolutionNode = Factory(name='Revolution', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Revolution', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='RevolutionNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_SwungNode = Factory(name='Swung', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Swung', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='SwungNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_Texture2DNode = Factory(name='Texture2D', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Texture2D', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='Texture2DNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_ParaboloidNode = Factory(name='Paraboloid', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Paraboloid', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='ParaboloidNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_BezierCurveNode = Factory(name='BezierCurve', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a BezierCurve', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='BezierCurveNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_MultiSpectralNode = Factory(name='MultiSpectral', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a MultiSpectral', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='MultiSpectralNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_NurbsPatchNode = Factory(name='NurbsPatch', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a NurbsPatch', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='NurbsPatchNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_PointSet2DNode = Factory(name='PointSet2D', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a PointSet2D', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='PointSet2DNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_NurbsCurve2DNode = Factory(name='NurbsCurve2D', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a NurbsCurve2D', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='NurbsCurve2DNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_DiscNode = Factory(name='Disc', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Disc', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='DiscNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_TaperedNode = Factory(name='Tapered', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Tapered', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='TaperedNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_AmapSymbolNode = Factory(name='AmapSymbol', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a AmapSymbol', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='AmapSymbolNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_ShapeNode = Factory(name='Shape', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Shape', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='ShapeNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_TranslatedNode = Factory(name='Translated', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Translated', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='TranslatedNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_ElevationGridNode = Factory(name='ElevationGrid', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a ElevationGrid', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='ElevationGridNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_SphereNode = Factory(name='Sphere', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a Sphere', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='SphereNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - -objectgenerator_IFSNode = Factory(name='IFS', - authors='F. Boudon, C. Pradal (wralea authors)', - description='Create a IFS', - category='scene.PGL Object Generator', - nodemodule='objectgenerator', - nodeclass='IFSNode', - inputs=None, - outputs=None, - widgetmodule=None, - widgetclass=None, - ) - - - - + +# -*- coding: latin-1 -*- +# This file has been generated at Tue Dec 17 21:53:33 2024 + +from openalea.core import * + + +__name__ = 'openalea.plantgl.objects' + +__editable__ = True +__alias__ = ['vplants.plantgl.objectss'] +__version__ = '0.1.0' +__license__ = 'CECILL-V2' +__authors__ = 'F. Boudon, C. Pradal' +__institutes__ = 'INRIA/CIRAD' +__description__ = 'PlantGL Object Generator nodes.' +__url__ = 'http://openalea.rtfd.io' + + +__all__ = ['objectgenerator_SceneNode', 'objectgenerator_AmapSymbolNode', 'objectgenerator_AsymmetricHullNode', 'objectgenerator_AxisRotatedNode', 'objectgenerator_BezierCurveNode', 'objectgenerator_BezierCurve2DNode', 'objectgenerator_BezierPatchNode', 'objectgenerator_BoxNode', 'objectgenerator_ConeNode', 'objectgenerator_CylinderNode', 'objectgenerator_DiscNode', 'objectgenerator_ElevationGridNode', 'objectgenerator_EulerRotatedNode', 'objectgenerator_ExtrudedHullNode', 'objectgenerator_ExtrusionNode', 'objectgenerator_FaceSetNode', 'objectgenerator_FrustumNode', 'objectgenerator_GroupNode', 'objectgenerator_IFSNode', 'objectgenerator_MaterialNode', 'objectgenerator_MonoSpectralNode', 'objectgenerator_MultiSpectralNode', 'objectgenerator_NurbsCurveNode', 'objectgenerator_NurbsCurve2DNode', 'objectgenerator_NurbsPatchNode', 'objectgenerator_OrientedNode', 'objectgenerator_ParaboloidNode', 'objectgenerator_PointSetNode', 'objectgenerator_PointSet2DNode', 'objectgenerator_PolylineNode', 'objectgenerator_Polyline2DNode', 'objectgenerator_QuadSetNode', 'objectgenerator_RevolutionNode', 'objectgenerator_ScaledNode', 'objectgenerator_ScreenProjectedNode', 'objectgenerator_ShapeNode', 'objectgenerator_SphereNode', 'objectgenerator_SwungNode', 'objectgenerator_TaperedNode', 'objectgenerator_TextNode', 'objectgenerator_Texture2DNode', 'objectgenerator_TranslatedNode', 'objectgenerator_TriangleSetNode', 'objectgenerator_Texture2DTransformationNode', 'objectgenerator_ImageTextureNode', 'objectgenerator_QuantisedFunctionNode', 'objectgenerator_Color4Node', 'objectgenerator_Color3Node'] + + + +objectgenerator_SceneNode = Factory(name='Scene', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Scene', + category='scene.PGL Object Generator', + nodemodule='objectgenerator', + nodeclass='SceneNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_AmapSymbolNode = Factory(name='AmapSymbol', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a AmapSymbol', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='AmapSymbolNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_AsymmetricHullNode = Factory(name='AsymmetricHull', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a AsymmetricHull', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='AsymmetricHullNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_AxisRotatedNode = Factory(name='AxisRotated', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a AxisRotated', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='AxisRotatedNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_BezierCurveNode = Factory(name='BezierCurve', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a BezierCurve', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='BezierCurveNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_BezierCurve2DNode = Factory(name='BezierCurve2D', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a BezierCurve2D', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='BezierCurve2DNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_BezierPatchNode = Factory(name='BezierPatch', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a BezierPatch', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='BezierPatchNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_BoxNode = Factory(name='Box', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Box', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='BoxNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ConeNode = Factory(name='Cone', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Cone', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ConeNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_CylinderNode = Factory(name='Cylinder', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Cylinder', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='CylinderNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_DiscNode = Factory(name='Disc', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Disc', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='DiscNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ElevationGridNode = Factory(name='ElevationGrid', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a ElevationGrid', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ElevationGridNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_EulerRotatedNode = Factory(name='EulerRotated', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a EulerRotated', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='EulerRotatedNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ExtrudedHullNode = Factory(name='ExtrudedHull', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a ExtrudedHull', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ExtrudedHullNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ExtrusionNode = Factory(name='Extrusion', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Extrusion', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ExtrusionNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_FaceSetNode = Factory(name='FaceSet', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a FaceSet', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='FaceSetNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_FrustumNode = Factory(name='Frustum', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Frustum', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='FrustumNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_GroupNode = Factory(name='Group', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Group', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='GroupNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_IFSNode = Factory(name='IFS', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a IFS', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='IFSNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_MaterialNode = Factory(name='Material', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Material', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='MaterialNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_MonoSpectralNode = Factory(name='MonoSpectral', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a MonoSpectral', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='MonoSpectralNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_MultiSpectralNode = Factory(name='MultiSpectral', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a MultiSpectral', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='MultiSpectralNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_NurbsCurveNode = Factory(name='NurbsCurve', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a NurbsCurve', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='NurbsCurveNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_NurbsCurve2DNode = Factory(name='NurbsCurve2D', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a NurbsCurve2D', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='NurbsCurve2DNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_NurbsPatchNode = Factory(name='NurbsPatch', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a NurbsPatch', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='NurbsPatchNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_OrientedNode = Factory(name='Oriented', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Oriented', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='OrientedNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ParaboloidNode = Factory(name='Paraboloid', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Paraboloid', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ParaboloidNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_PointSetNode = Factory(name='PointSet', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a PointSet', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='PointSetNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_PointSet2DNode = Factory(name='PointSet2D', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a PointSet2D', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='PointSet2DNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_PolylineNode = Factory(name='Polyline', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Polyline', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='PolylineNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_Polyline2DNode = Factory(name='Polyline2D', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Polyline2D', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='Polyline2DNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_QuadSetNode = Factory(name='QuadSet', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a QuadSet', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='QuadSetNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_RevolutionNode = Factory(name='Revolution', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Revolution', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='RevolutionNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ScaledNode = Factory(name='Scaled', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Scaled', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ScaledNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ScreenProjectedNode = Factory(name='ScreenProjected', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a ScreenProjected', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ScreenProjectedNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ShapeNode = Factory(name='Shape', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Shape', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ShapeNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_SphereNode = Factory(name='Sphere', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Sphere', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='SphereNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_SwungNode = Factory(name='Swung', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Swung', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='SwungNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_TaperedNode = Factory(name='Tapered', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Tapered', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='TaperedNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_TextNode = Factory(name='Text', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Text', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='TextNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_Texture2DNode = Factory(name='Texture2D', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Texture2D', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='Texture2DNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_TranslatedNode = Factory(name='Translated', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Translated', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='TranslatedNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_TriangleSetNode = Factory(name='TriangleSet', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a TriangleSet', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='TriangleSetNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_Texture2DTransformationNode = Factory(name='Texture2DTransformation', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a Texture2DTransformation', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='Texture2DTransformationNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_ImageTextureNode = Factory(name='ImageTexture', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a ImageTexture', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='ImageTextureNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_QuantisedFunctionNode = Factory(name='QuantisedFunction', + authors='F. Boudon, C. Pradal (wralea authors)', + description='Create a QuantisedFunction', + category='scene.PGL Object Generator', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='QuantisedFunctionNode', + inputs=None, + outputs=None, + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_Color4Node = Factory(name='Color4', + authors='Thomas Cokelaer', + description='', + category='Unclassified', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='Color4Node', + inputs=[{'interface': ISequence, 'name': 'IN1', 'value': [150, 0, 0, 155], 'desc': ''}], + outputs=[{'interface': None, 'name': 'OUT1', 'desc': ''}], + widgetmodule=None, + widgetclass=None, + ) + + + + +objectgenerator_Color3Node = Factory(name='Color3', + authors='Thomas Cokelaer', + description='', + category='Unclassified', + nodemodule='openalea.plantgl.wralea.objects.objectgenerator', + nodeclass='Color3Node', + inputs=[{'interface': ISequence, 'name': 'IN1', 'value': [0, 150, 0], 'desc': ''}], + outputs=[{'interface': None, 'name': 'OUT1', 'desc': ''}], + widgetmodule=None, + widgetclass=None, + ) + + + + diff --git a/src/openalea/plantgl/wralea/objects/alea_wrapper_generator.py b/src/openalea/plantgl/wralea/objects/alea_wrapper_generator.py index 6f153127..5be679d7 100644 --- a/src/openalea/plantgl/wralea/objects/alea_wrapper_generator.py +++ b/src/openalea/plantgl/wralea/objects/alea_wrapper_generator.py @@ -1,18 +1,18 @@ from openalea.core import * -from . import objectgenerator from openalea.core.path import path +from openalea.plantgl.wralea.objects import objectgenerator -name = "vplants.plantgl.objects" +name = "openalea.plantgl.objects" metainfo = dict( -alias = ["PlantGL.Objects"], +alias = ["vplants.plantgl.objectss"], version = '0.0.2', license = 'CECILL-V2', authors = 'F. Boudon, C. Pradal', institutes = 'INRIA/CIRAD', description = 'PlantGL Object Generator nodes.', -url = 'http://openalea.gforge.inria.fr', +url = 'http://openalea.rtfd.io', ) pkg = package.Package(name, metainfo) diff --git a/src/openalea/plantgl/wralea/objects/objectgenerator.py b/src/openalea/plantgl/wralea/objects/objectgenerator.py index dc9c6d06..3cddc3c5 100644 --- a/src/openalea/plantgl/wralea/objects/objectgenerator.py +++ b/src/openalea/plantgl/wralea/objects/objectgenerator.py @@ -1,6 +1,7 @@ from openalea.core import ScriptLibrary from openalea.core.external import * import openalea.core.interface as intface + from openalea.plantgl import math as mt from openalea.plantgl import scenegraph as sg from openalea.plantgl.wralea.edition.pgl_interface import ICurve2D @@ -120,10 +121,10 @@ def __call__(self, inputs): return (obj,) -from new import classobj +#from new import classobj def generatePglNode(pgltype): - globals()[pgltype.__name__+'Node'] = classobj(pgltype.__name__+'Node',(PglNode,),{'pgltype':pgltype}) + globals()[pgltype.__name__+'Node'] = type(pgltype.__name__+'Node',(PglNode,),{'pgltype':pgltype}) def getSceneGraphNodes(baseclass): cl = [] @@ -141,7 +142,7 @@ def getSceneGraphNodes(baseclass): cl.append(c) except: pass - cl.sort(lambda x,y : cmp(x.__name__,y.__name__)) + cl.sort(key=lambda x : x.__name__) return cl PGLCLASS = getSceneGraphNodes((sg.Geometry,sg.Shape3D,sg.Appearance))+[sg.Texture2DTransformation,sg.ImageTexture] @@ -152,7 +153,11 @@ def getSceneGraphNodes(baseclass): #sg.Polyline2D, sg.PointSet2D, sg.Disc, sg.Revolution, sg.Swung, sg.Text, sg.Font, sg.IFS, sg.AxisRotated, #sg.EulerRotated, sg.Oriented, sg.Scaled, sg.Translated, sg.Tapered, sg.Shape, sg.Material, sg.ImageTexture] -map(lambda x : generatePglNode(x),PGLCLASS) +#map(lambda x : generatePglNode(x),PGLCLASS) + +for klass in PGLCLASS: + #print(klass.__name__) + generatePglNode(klass) PGLCLASS+=[sg.QuantisedFunction] diff --git a/src/openalea/plantgl/wralea/objects/old_alea_code.py b/src/openalea/plantgl/wralea/objects/old_alea_code.py index 1d8aafed..bd33d4dd 100644 --- a/src/openalea/plantgl/wralea/objects/old_alea_code.py +++ b/src/openalea/plantgl/wralea/objects/old_alea_code.py @@ -1,15 +1,15 @@ from openalea.core import * from . import objectgenerator -__name__ = "vplants.plantgl.objects" -__alias__ = ["PlantGL.Objects"] +__name__ = "openalea.plantgl.objects" +__alias__ = ["PlantGL.Objects", "vplants.plantgl.objects"] __version__ = '0.0.1' __license__ = 'CECILL-V2' __authors__ = 'F. Boudon, C. Pradal' __institutes__ = 'INRIA/CIRAD' __description__ = 'PlantGL Object Generator nodes.' -__url__ = 'http://openalea.gforge.inria.fr' +__url__ = 'http://openalea.rtfd.io' __all__ = ['scene'] diff --git a/src/openalea/plantgl/wralea/operator/__wralea__.py b/src/openalea/plantgl/wralea/operator/__wralea__.py index 16ee4501..4b720f0c 100644 --- a/src/openalea/plantgl/wralea/operator/__wralea__.py +++ b/src/openalea/plantgl/wralea/operator/__wralea__.py @@ -1,6 +1,6 @@ from openalea.core import * -__name__ = "vplants.plantgl.operator" +__name__ = "openalea.plantgl.operator" __alias__= ["Geometric Operator"] __version__ = '0.0.1', diff --git a/src/openalea/plantgl/wralea/visualization/__wralea__.py b/src/openalea/plantgl/wralea/visualization/__wralea__.py index 2b7b012c..a4d02c67 100644 --- a/src/openalea/plantgl/wralea/visualization/__wralea__.py +++ b/src/openalea/plantgl/wralea/visualization/__wralea__.py @@ -1,7 +1,7 @@ from openalea.core import * -__name__ = "vplants.plantgl.visualization" +__name__ = "openalea.plantgl.visualization" __alias__ = ["PlantGL.Visualization"] __version__ = '0.0.2' diff --git a/src/openalea/plantgl/wralea/wralea b/src/openalea/plantgl/wralea/wralea new file mode 120000 index 00000000..6f2e2175 --- /dev/null +++ b/src/openalea/plantgl/wralea/wralea @@ -0,0 +1 @@ +wralea \ No newline at end of file