A diagram item that adds a polygon to the canvas in the shape of a projection on a Layout3D.
More...
Data and other attributes inherited from DiagramItem: |
float | expansion_factor = 100.0 |
Detailed Description
A diagram item that adds a polygon to the canvas in the shape of a projection on a Layout3D.
The Layout3D is assumed to be closed (i.e. the last vertex connects back to the first).
Method resolution order
Layout3DPolygonItem
PolygonItem
DiagramItem
Constructor & Destructor Documentation
def diagram.DiagramBuilder.Layout3DPolygonItem.__init__ |
( |
|
args | ) |
|
Creates a new instance.
Parameters:
layout: the Layout3D object. This is the actual C++ Layout3D not the one
in Proxies.py.
projection_normal: a normal vector for the plane on which to project the
Layout3D.
args: The same arguments that are provided to Tkinter.Canvas.create_polygon with
the addition of the 'highlight' argument for the highlight color. If the
'highlight' argument is not provided then calls to highlight this drawing item
will be ignored.
Reimplemented from diagram.DiagramBuilder.PolygonItem.
Member Function Documentation
def diagram.DiagramBuilder.Layout3DPolygonItem.ClearHighlight |
( |
|
args | ) |
|
def diagram.DiagramBuilder.Layout3DPolygonItem.Draw |
( |
|
args | ) |
|
Draws the diagram item on the canvas.
Parameters:
canvas: The canvas widget.
Returns A list of ids of items added to the canvas.
Reimplemented from diagram.DiagramBuilder.PolygonItem.
def diagram.DiagramBuilder.Layout3DPolygonItem.Erase |
( |
|
args | ) |
|
def diagram.DiagramBuilder.Layout3DPolygonItem.Highlight |
( |
|
args | ) |
|
Member Data Documentation
float diagram.DiagramBuilder.Layout3DPolygonItem.expansion_factor = 100.0 |
|
static |