Package schrodinger :: Package graphics3d :: Module polygon :: Class MaestroPolygon
[hide private]
[frames] | no frames]

Class MaestroPolygon

      object --+        
               |        
common.Primitive --+    
                   |    
             Polygon --+
                       |
                      MaestroPolygon

Instance Methods [hide private]
 
__init__(self, vertices, color=None, opacity=1.0, style=1)
Creates polygon object in Maestro.
 
_draw(self)
For this class, we don't need to do anything

Inherited from common.Primitive: __del__, groupHidden, groupShown, hide, isGroupShown, isShown, setEntryID, setGlowColor, setIsGlowing, setRightClickOnGObject, show

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

Static Methods [hide private]
 
_glSetup()
For this class, we don't need to do any setup
 
_glReset()
For this class, we don't need to do anything
Class Variables [hide private]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, vertices, color=None, opacity=1.0, style=1)
(Constructor)

 

Creates polygon object in Maestro.

Constructor requires:

vertices: List of vertex coordinates (x, y, z).
          Specify at least 3 vertices in consecutive order.
          All vertices must be in the same plane.

color:    One of:
            Color object (Color class)
            Color name (string)
            Tuple of (R, G, B) (each a float in range 0.0-1.0)

Optional arguments:

opacity:  0.0 (invisible) through 1.0 (opaque)
               Defaults to 1.0

style:    LINE or FILL.  Default is FILL.

Overrides: object.__init__

_glSetup()
Static Method

 

For this class, we don't need to do any setup

Overrides: Polygon._glSetup

_glReset()
Static Method

 

For this class, we don't need to do anything

Overrides: Polygon._glReset

_draw(self)

 

For this class, we don't need to do anything

Overrides: Polygon._draw