Package esys :: Package pyvisi :: Module point :: Class PointSource
[hide private]
[frames] | no frames]

Class PointSource

Known Subclasses:

Class that defines the source (location) to generate points. The points are generated within the radius of a sphere.

Instance Methods [hide private]
 
__init__(self)
Initialise the point source.
vtkPolyData
_getPointSourceOutput(self)
Return the output of the point source.
Boolean
_isPointSourceCenterSet(self)
Return whether the center has been specified.
 
_setPointSourceCenter(self)
Set the sphere's center.
 
_setupPointSource(self, object)
Setup the point source.
 
setPointSourceCenter(self, center)
Specity the sphere's center.
 
setPointSourceNumberOfPoints(self, points)
Set the number of points to generate within the sphere (the larger the number of points, the more streamlines are generated)
 
setPointSourceRadius(self, radius)
Set the radius of the sphere.
Method Details [hide private]

_getPointSourceOutput(self)

 

Return the output of the point source.

Returns: vtkPolyData
Polygonal data

_isPointSourceCenterSet(self)

 

Return whether the center has been specified.

Returns: Boolean
True or False

_setupPointSource(self, object)

 

Setup the point source.

Parameters:
  • object (vtkPolyData, etc) - Used to define the location of the sphere

setPointSourceCenter(self, center)

 

Specity the sphere's center.

Parameters:

setPointSourceNumberOfPoints(self, points)

 

Set the number of points to generate within the sphere (the larger the number of points, the more streamlines are generated)

Parameters:
  • points (Number) - Number of points to generate

setPointSourceRadius(self, radius)

 

Set the radius of the sphere.

Parameters:
  • radius (Number) - Radius of the sphere