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

Class Polyline

 object --+                    
          |                    
??.instance --+                
              |                
    SceneObject --+            
                  |            
           Geometry --+        
                      |        
              Primitive --+    
                          |    
              ExplicitModel --+
                              |
 object --+                   |
          |                   |
??.instance --+               |
              |               |
    SceneObject --+           |
                  |           |
           Geometry --+       |
                      |       |
              Primitive --+   |
                          |   |
                LineicModel --+
                              |
                             Polyline

A Polyline describes a curve formed by connected segments.
It is defined by a set of points. A color can be associated to each point for visualisation.

Instance Methods
 
__getitem__(...)
__getitem__( (Polyline)arg1, (int)arg2) -> Vector3 :
 
__init__(...)
__init__( (object)arg1, (Point3Array)pointList [, (Color4Array)colorList]) -> None : Polyline(Point3Array pointList, Color4Array colorList = None)
 
__len__(...)
__len__( (Polyline)arg1) -> int :
 
__repr__(...)
__repr__( (Polyline)arg1) -> str :
 
__setitem__(...)
__setitem__( (Polyline)arg1, (int)arg2, (Vector3)arg3) -> None :
 
deepcopy(...)
deepcopy( (Polyline)arg1) -> SceneObject :
 
split(...)
split( (Polyline)arg1, (float)u) -> object :

Inherited from ExplicitModel: isColorListToDefault, transform

Inherited from LineicModel: findClosest, getArcLengthToUMapping, getLength, getNormalAt, getPointAt, getStride, getTangentAt, getUToArcLengthMapping

Inherited from Geometry: isACurve, isASurface, isAVolume, isExplicit

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

Inherited from unreachable.instance: __new__

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

Class Variables
  __instance_size__ = 12

Inherited from SceneObject: __safe_for_unpickling__

Properties

Inherited from ExplicitModel: colorList, pointList

Inherited from LineicModel: firstKnot, lastKnot

Inherited from SceneObject: name

Inherited from object: __class__

Method Details

__getitem__(...)
(Indexing operator)

 

__getitem__( (Polyline)arg1, (int)arg2) -> Vector3 :

    C++ signature :
        class TOOLS::Vector3 __getitem__(class PGL::Polyline *,unsigned int)

__init__(...)
(Constructor)

 

__init__( (object)arg1, (Point3Array)pointList [, (Color4Array)colorList]) -> None :
    Polyline(Point3Array pointList, Color4Array colorList = None)

    C++ signature :
        void __init__(struct _object *,class TOOLS::RefCountPtr<class PGL::Point3Array> [,class TOOLS::RefCountPtr<class PGL::Color4Array>])

Overrides: object.__init__

__len__(...)
(Length operator)

 

__len__( (Polyline)arg1) -> int :

    C++ signature :
        unsigned int __len__(class PGL::Polyline *)

__repr__(...)
(Representation operator)

 

__repr__( (Polyline)arg1) -> str :

    C++ signature :
        class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __repr__(class PGL::Polyline *)

Overrides: object.__repr__

__setitem__(...)
(Index assignment operator)

 

__setitem__( (Polyline)arg1, (int)arg2, (Vector3)arg3) -> None :

    C++ signature :
        void __setitem__(class PGL::Polyline *,unsigned int,class TOOLS::Vector3 *)

deepcopy(...)

 

deepcopy( (Polyline)arg1) -> SceneObject :

    C++ signature :
        class TOOLS::RefCountPtr<class PGL::SceneObject> deepcopy(class PGL::Polyline {lvalue})

Overrides: SceneObject.deepcopy

split(...)

 

split( (Polyline)arg1, (float)u) -> object :

    C++ signature :
        class boost::python::api::object split(class PGL::Polyline *,double)