Module pinky :: Class Group

Class Group

object --+    
         |    
     Shape --+
             |
            Group

A group of shapes.

Instance Methods
 
__init__(self, shapes=[])
Initialize a group from the given shapes.
 
transform(self, matrix)
Get a transformed copy of the shape.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  bounding_box
The bounding box containing all of the shapes in the group.
  area
The sum of the area of each shape in the group.

Inherited from Shape: centroid

Inherited from object: __class__

Method Details

__init__(self, shapes=[])
(Constructor)

 

Initialize a group from the given shapes.

Overrides: object.__init__

transform(self, matrix)

 

Get a transformed copy of the shape.

Overrides: Shape.transform
(inherited documentation)

Property Details

bounding_box

The bounding box containing all of the shapes in the group.

Get Method:
unreachable.bounding_box(self) - The bounding box containing all of the shapes in the group.

area

The sum of the area of each shape in the group.

Get Method:
unreachable.area(self) - The sum of the area of each shape in the group.