Loading [MathJax]/extensions/tex2jax.js
PolylineFactory Class Reference

factory interface for creating polyline objects More...

+ Inheritance diagram for PolylineFactory:

Public Member Functions

def __init__ (self)
 
def addPart (self)
 
def clear (self)
 
def closePart (self)
 
def getPolyline (self, clear=True)
 

Static Public Member Functions

def addPoint (self, *args, **kwargs)
 possible calls: More...
 
def addPolyline (self, *args, **kwargs)
 possible calls: More...
 

Detailed Description

factory interface for creating polyline objects

Polyline may consists of multiple independent lines. Although line part may be closed, the objects does not represent the enclosed area. The object remains a linear object. For describing areas use polygons.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Parameters
self(type: object) self pointer
Returns
(type: object)

Member Function Documentation

◆ addPart()

def addPart (   self)
Parameters
self(type: PolylineFactory) self pointer
Returns
(type: PolylineFactory)

◆ addPoint()

def addPoint (   self,
args,
**  kwargs 
)
static

possible calls:

  • addPoint(self, arg1: Point)
  • addPoint(self, arg1: object, arg2: object)
  • addPoint(self, arg1: object, arg2: object, arg3: object)
Parameters
self(type: object) self pointer
*args(type: list) mandatory parameter
**kwargs(type: dict) mandatory parameter
Returns
(type: PolylineFactory)

◆ addPolyline()

def addPolyline (   self,
args,
**  kwargs 
)
static

possible calls:

  • addPolyline(self, line: Polyline, mergeConnectedParts: object)
  • addPolyline(self, part: PolylinePart)
Parameters
self(type: object) self pointer
*args(type: list) mandatory parameter
**kwargs(type: dict) mandatory parameter
Returns
(type: PolylineFactory)

◆ clear()

def clear (   self)
Parameters
self(type: PolylineFactory) self pointer

◆ closePart()

def closePart (   self)
Parameters
self(type: PolylineFactory) self pointer
Returns
(type: PolylineFactory)

◆ getPolyline()

def getPolyline (   self,
  clear = True 
)
Parameters
self(type: PolylineFactory) self pointer
clear(type: object) optional parameter
Returns
(type: Polyline)