Package esys :: Package pyvisi :: Module transform :: Class Transform
[hide private]
[frames] | no frames]

Class Transform

Known Subclasses:

Class that defines the orientation of planes.


Attention:
Instance Methods [hide private]
 
__init__(self)
Initialise the transform object.
vtkTransform
_getTransform(self)
Return the transform instance.
 
rotateX(self, angle)
Rotate the plane along the x-axis.
 
rotateY(self, angle)
Rotate the plane along the y-axis.
 
rotateZ(self, angle)
Rotate the plane along the z-axis.
 
setPlaneToXY(self, offset=0)
Set the plane orthogonal to the z-axis.
 
setPlaneToXZ(self, offset=0)
Set the plane orthogonal to the y-axis.
 
setPlaneToYZ(self, offset=0)
Set the plane orthogonal to the x-axis.
 
translate(self, x_offset, y_offset, z_offset)
Translate the rendered object along the x, y and z-axes.
Method Details [hide private]

_getTransform(self)

 

Return the transform instance.

Returns: vtkTransform
Transform instance that is used to specify the orientation of the plane

rotateX(self, angle)

 

Rotate the plane along the x-axis.

Parameters:
  • angle (Number) - Angle to rotate the plane

rotateY(self, angle)

 

Rotate the plane along the y-axis.

Parameters:
  • angle (Number) - Angle to rotate the plane

rotateZ(self, angle)

 

Rotate the plane along the z-axis.

Parameters:
  • angle (Number) - Angle to rotate the plane

setPlaneToXY(self, offset=0)

 

Set the plane orthogonal to the z-axis.

Parameters:
  • offset (Number) - Amount to translate along the z-axis

setPlaneToXZ(self, offset=0)

 

Set the plane orthogonal to the y-axis.

Parameters:
  • offset (Number) - Amount to translate along the y-axis

setPlaneToYZ(self, offset=0)

 

Set the plane orthogonal to the x-axis.

Parameters:
  • offset (Number) - Amount to translate along the x-axis

translate(self, x_offset, y_offset, z_offset)

 

Translate the rendered object along the x, y and z-axes.

Parameters:
  • x_offset (Number) - Amount to translate along the x-axis
  • y_offset (Number) - Amount to translate along the y-axis
  • z_offset (Number) - Amount to translate along the z-axis