SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
diagram.DiagramBuilder.Layout3DPolygonItem Class Reference

A diagram item that adds a polygon to the canvas in the shape of a projection on a Layout3D. More...

Inheritance diagram for diagram.DiagramBuilder.Layout3DPolygonItem:
diagram.DiagramBuilder.PolygonItem diagram.DiagramBuilder.DiagramItem

Methods defined here:

def __init__

Methods inherited from DiagramItem:

def ClearHighlight
def ClearHover
def Draw
def Erase
def Highlight
def Hover

Static methods inherited from DiagramItem:

def CleanArgs

Data and other attributes inherited from DiagramItem:

float expansion_factor = 100.0

Additional Inherited Members

- Public Member Functions inherited from diagram.DiagramBuilder.PolygonItem
- Public Member Functions inherited from diagram.DiagramBuilder.DiagramItem
- Static Public Attributes inherited from diagram.DiagramBuilder.PolygonItem
float expansion_factor = 100.0
- Static Public Attributes inherited from diagram.DiagramBuilder.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.CleanArgs (   args)
 CleanArgs(args)

Reimplemented from diagram.DiagramBuilder.PolygonItem.

def diagram.DiagramBuilder.Layout3DPolygonItem.ClearHighlight (   args)
 Returns the diagram item to its original color.
 Parameters:
 canvas: The canvas widget.

Reimplemented from diagram.DiagramBuilder.PolygonItem.

def diagram.DiagramBuilder.Layout3DPolygonItem.ClearHover (   args)
 ClearHover(args)

Reimplemented from diagram.DiagramBuilder.PolygonItem.

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)
 Erases the diagram item from the canvas.
 Parameters:
 canvas: The canvas widget.

Reimplemented from diagram.DiagramBuilder.PolygonItem.

def diagram.DiagramBuilder.Layout3DPolygonItem.Highlight (   args)
 Changes the diagram item to its highlight color.
 Parameters:
 canvas: The canvas widget.

Reimplemented from diagram.DiagramBuilder.PolygonItem.

def diagram.DiagramBuilder.Layout3DPolygonItem.Hover (   args)
 Hover(args)

Reimplemented from diagram.DiagramBuilder.PolygonItem.

Member Data Documentation

float diagram.DiagramBuilder.Layout3DPolygonItem.expansion_factor = 100.0
static