path
PathEntity
#
Bases: QEntity
A simple entity drawing a path along a list of vertices.
Source code in cogip/entities/path.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
__init__(color=QtCore.Qt.blue, parent=None)
#
Class constructor.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
color |
QColor
|
color |
blue
|
parent |
QEntity | None
|
parent entity |
None
|
Source code in cogip/entities/path.py
13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
set_points(points)
#
Set points of the path.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
points |
list[Vertex]
|
list of vertices composing the line |
required |
Source code in cogip/entities/path.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|