Package PyFoam :: Package Paraview :: Module SimpleSources :: Class DirectedSource
[hide private]
[frames] | no frames]

Class DirectedSource

source code

           object --+        
                    |        
SourceBase.SourceBase --+    
                        |    
             SimpleSource --+
                            |
                           DirectedSource

A Source that looks in a specific direction. Assumes that the original base is located at (0 0 0)

Instance Methods [hide private]
 
__init__(self, name, src, base, tip)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
recalc(self)
Recalculate the orientation of the object according to the tip and the base
source code
 
setBase(self, base)
Reset the base point
source code
 
setTip(self, tip)
Reset the tip point
source code

Inherited from SimpleSource: __del__, unregister

Inherited from SourceBase.SourceBase: characteristicLength, getBounds, getCenter, getExtent, getMax, getMin, makeVector

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, src, base, tip)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • name - name under which the arrow will be displayed
  • src - The source objects
  • base - the base the arrow points away from
  • tip - the point the arrow points to
Overrides: object.__init__