Esempio n. 1
0
 def __init__(self, name, scaleFactor=1.0):
     '''
 Parameters:
   scaleFactor: scale factor for the size of the vectors.
 '''
     super(StrongWeakAxisVectorField, self).__init__()
     self.strongAxis = dfd.DirectionFieldData(name + 'Strong',
                                              self.strongColor, 3,
                                              scaleFactor)
     self.weakAxis = dfd.DirectionFieldData(name + 'Weak', self.weakColor,
                                            3, scaleFactor)
Esempio n. 2
0
 def __init__(self, name, scaleFactor=1.0):
     '''
 Parameters:
   scaleFactor: scale factor for the size of the vectors.
 '''
     super(LocalAxesVectorField, self).__init__()
     self.xAxes = dfd.DirectionFieldData(name + 'X', self.xColor, 3,
                                         scaleFactor)
     self.yAxes = dfd.DirectionFieldData(name + 'Y', self.yColor, 3,
                                         scaleFactor)
     self.zAxes = dfd.DirectionFieldData(name + 'Z', self.zColor, 3,
                                         scaleFactor)