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

Class Polyline2D

 object --+                            
          |                            
??.instance --+                        
              |                        
    SceneObject --+                    
                  |                    
           Geometry --+                
                      |                
              Primitive --+            
                          |            
            ParametricModel --+        
                              |        
                    PlanarModel --+    
                                  |    
                            Curve2D --+
                                      |
                                     Polyline2D

A Polyline2D describes a curve formed by connected 2D segments.
It is defined by a set of 2D points. See Polyline.

Instance Methods
 
__getitem__(...)
__getitem__( (Polyline2D)arg1, (int)arg2) -> Vector2 :
 
__init__(...)
__init__( (object)arg1, (Point2Array)arg2) -> None :
 
__len__(...)
__len__( (Polyline2D)arg1) -> int :
 
__repr__(...)
__repr__( (Polyline2D)arg1) -> str :
 
__setitem__(...)
__setitem__( (Polyline2D)arg1, (int)arg2, (Vector2)arg3) -> None :
 
copy(...)
copy( (Polyline2D)arg1) -> SceneObject :
 
getNormalAt(...)
getNormalAt( (Polyline2D)arg1, (float)u) -> Vector2 :
 
getTangentAt(...)
getTangentAt( (Polyline2D)arg1, (float)u) -> Vector2 :
 
split(...)
split( (Polyline2D)arg1, (float)u) -> object :

Inherited from Curve2D: getArcLengthToUMapping, getLength, getPointAt, getStride, getUToArcLengthMapping

Inherited from Geometry: deepcopy, 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__

Static Methods
 
Circle(...)
Circle( (float)radius, (int)slices) -> Polyline2D :
Class Variables
  __instance_size__ = 12

Inherited from SceneObject: __safe_for_unpickling__

Properties
  pointList

Inherited from Curve2D: firstKnot, lastKnot

Inherited from SceneObject: name

Inherited from object: __class__

Method Details

Circle(...)
Static Method

 

Circle( (float)radius, (int)slices) -> Polyline2D :

    C++ signature :
        class TOOLS::RefCountPtr<class PGL::Polyline2D> Circle(double,unsigned char)

__getitem__(...)
(Indexing operator)

 

__getitem__( (Polyline2D)arg1, (int)arg2) -> Vector2 :

    C++ signature :
        class TOOLS::Vector2 __getitem__(class PGL::Polyline2D *,unsigned int)

__init__(...)
(Constructor)

 

__init__( (object)arg1, (Point2Array)arg2) -> None :

    C++ signature :
        void __init__(struct _object *,class TOOLS::RefCountPtr<class PGL::Point2Array>)

Overrides: object.__init__

__len__(...)
(Length operator)

 

__len__( (Polyline2D)arg1) -> int :

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

__repr__(...)
(Representation operator)

 

__repr__( (Polyline2D)arg1) -> str :

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

Overrides: object.__repr__

__setitem__(...)
(Index assignment operator)

 

__setitem__( (Polyline2D)arg1, (int)arg2, (Vector2)arg3) -> None :

    C++ signature :
        void __setitem__(class PGL::Polyline2D *,unsigned int,class TOOLS::Vector2 *)

copy(...)

 

copy( (Polyline2D)arg1) -> SceneObject :

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

getNormalAt(...)

 

getNormalAt( (Polyline2D)arg1, (float)u) -> Vector2 :

    C++ signature :
        class TOOLS::Vector2 getNormalAt(class PGL::Polyline2D {lvalue},double)

getTangentAt(...)

 

getTangentAt( (Polyline2D)arg1, (float)u) -> Vector2 :

    C++ signature :
        class TOOLS::Vector2 getTangentAt(class PGL::Polyline2D {lvalue},double)

split(...)

 

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

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


Property Details

pointList

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