Package openalea :: Package plantgl :: Package scenegraph :: Module _pglsg :: Class Shape
[frames] | no frames]

Class Shape

 object --+            
          |            
??.instance --+        
              |        
    SceneObject --+    
                  |    
            Shape3D --+
                      |
                     Shape

A Shape is composed of a Geometry object and an Appearance object.
There is an optional id to identy the shape and parent id to store shape relationship.

Instance Methods
 
__getinitargs__(...)
__getinitargs__( (Shape)arg1) -> tuple :
 
__init__(...)
__init__( (object)arg1) -> None :
 
getSceneObjectId(...)
getSceneObjectId( (Shape)arg1) -> int :
 
setComputedName(...)
setComputedName( (Shape)arg1) -> None :

Inherited from SceneObject: __reduce__, apply, deepcopy, getId, getName, isNamed, isValid, setName

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  __instance_size__ = 12
  __safe_for_unpickling__ = True
Properties
  NOID
  appearance
  geometry
  id
  parentId

Inherited from SceneObject: name

Inherited from object: __class__

Method Details

__getinitargs__(...)

 

__getinitargs__( (Shape)arg1) -> tuple :

    C++ signature :
        class boost::python::tuple __getinitargs__(class PGL::Shape)

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(struct _object *)

__init__( (object)arg1, (Geometry)geometry [, (Appearance)appearance [, (int)id [, (int)parentId]]]) -> None :
    Shape( geometry, appearance, id, parentId )

    C++ signature :
        void __init__(struct _object *,class TOOLS::RefCountPtr<class PGL::Geometry> [,class TOOLS::RefCountPtr<class PGL::Appearance> [,unsigned int [,unsigned int]]])

Overrides: object.__init__

getSceneObjectId(...)

 

getSceneObjectId( (Shape)arg1) -> int :

    C++ signature :
        unsigned int getSceneObjectId(class PGL::Shape const *)

setComputedName(...)

 

setComputedName( (Shape)arg1) -> None :

    C++ signature :
        void setComputedName(class PGL::Shape {lvalue})


Property Details

NOID

Get Method:
unreachable(...)

appearance

Get Method:
unreachable(...)
Set Method:
unreachable(...)

geometry

Get Method:
unreachable(...)
Set Method:
unreachable(...)

id

Get Method:
unreachable(...)
Set Method:
unreachable(...)

parentId

Get Method:
unreachable(...)
Set Method:
unreachable(...)