pyllar :: Plottable :: Plottable :: Class Plottable
[hide private]
[frames] | no frames]

Class Plottable

source code

Instance Methods [hide private]
 
__init__(self)
Create an instance of Plottable.
source code
 
AddToAxes(self)
Add object to current axes.
source code
 
GetBounds(self)
Get the bounding box of the actor.
source code
 
SetScale(self, scale)
Set the scale of the actor.
source code
 
UpdatePos(self, viewRange, viewCenter)
Set the position of the actor.
source code
 
SetDirection(self, dir)
set the direction vector.
source code
 
SetColor(self, rgb)
Set the color as an RGB array.
source code
 
SetOpacity(self, opacitiy)
Set the opacity of the actor.
source code
Method Details [hide private]

AddToAxes(self)

source code 

Add object to current axes.

This method should be called by all Plottable subclasses in the __init__ method. This method will work for all Plottables with only one actor. Otherwise, it has to be overwritten in the subclass.

SetScale(self, scale)

source code 

Set the scale of the actor.

The actor is scaled to fit into the normalized axes dimensions.

UpdatePos(self, viewRange, viewCenter)

source code 

Set the position of the actor.

The position is with respect to the normalized axes dimensions.

SetDirection(self, dir)

source code 

set the direction vector.

The direction is a vector defining the axis of axismmetric objects or z axis of data.

SetColor(self, rgb)

source code 

Set the color as an RGB array.

For Plot3 class, the color can also be defined as a part of the style string.