コード例 #1
0
ファイル: predicates.py プロジェクト: neshume/blender
 def __init__(self, *predicates):
     UnaryPredicate1D.__init__(self)
     self.predicates = predicates
     # there are cases in which only one predicate is supplied (in the parameter editor)
     if len(self.predicates) < 1:
         raise ValueError("Expected one or more UnaryPredicate1D, got ",
                          len(predicates))
コード例 #2
0
 def __init__(self, wsize, threshold, functor, funcmin=0.0, funcmax=1.0, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = float(threshold)
     self._functor = functor
     self._funcmin = float(funcmin)
     self._funcmax = float(funcmax)
     self._func = DensityF1D(wsize, integration)
コード例 #3
0
ファイル: predicates.py プロジェクト: Aligorith/blender
 def __init__(self, *predicates):
     UnaryPredicate1D.__init__(self)
     self.predicates = predicates
     correct_types = all(isinstance(p, UnaryPredicate1D) for p in self.predicates)
     if not (correct_types and predicates):
         raise TypeError("%s: Expected one or more UnaryPredicate1D, got %r" %
                 (self.__class__.__name__, self.predicates))
コード例 #4
0
 def __init__(self, threshold, orientation, level, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._orientation = orientation
     self._level = level
     self._integration = integration
     self._sampling = sampling
コード例 #5
0
 def __init__(self, threshold, level, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._level = level
     self._integration = integration
     self._sampling = sampling
     self._func = GetCompleteViewMapDensityF1D(self._level, self._integration, self._sampling) # 2.0 is the smpling
コード例 #6
0
 def __init__(self, wsize, threshold, functor, funcmin=0.0, funcmax=1.0, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = float(threshold)
     self._functor = functor
     self._funcmin = float(funcmin)
     self._funcmax = float(funcmax)
     self._func = DensityF1D(wsize, integration)
コード例 #7
0
ファイル: predicates.py プロジェクト: neshume/blender
 def __init__(self, id):
     UnaryPredicate1D.__init__(self)
     if not isinstance(id, Id):
         raise TypeError(
             "pyIsOccludedByUP1D expected freestyle.types.Id, not " +
             type(id).__name__)
     self._id = id
コード例 #8
0
 def __init__(self, *predicates):
     UnaryPredicate1D.__init__(self)
     self.predicates = predicates
     correct_types = all(isinstance(p, UnaryPredicate1D) for p in self.predicates)
     if not (correct_types and predicates):
         raise TypeError("%s: Expected one or more UnaryPredicate1D, got %r" %
                         (self.__class__.__name__, self.predicates))
コード例 #9
0
ファイル: predicates.py プロジェクト: antont/blender
 def __init__(self, threshold, level, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._level = level
     self._integration = integration
     self._func = GetSteerableViewMapDensityF1D(self._level,
                                                self._integration)
コード例 #10
0
ファイル: predicates.py プロジェクト: neshume/blender
 def __init__(self,
              threshold,
              level,
              integration=IntegrationType.MEAN,
              sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._func = GetCompleteViewMapDensityF1D(level, integration, sampling)
コード例 #11
0
ファイル: predicates.py プロジェクト: neshume/blender
 def __init__(self,
              threshold,
              orientation,
              level,
              integration=IntegrationType.MEAN,
              sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._func = GetDirectionalViewMapDensityF1D(orientation, level,
                                                  integration, sampling)
コード例 #12
0
ファイル: predicates.py プロジェクト: antont/blender
 def __init__(self,
              wsize,
              threshold,
              integration=IntegrationType.MEAN,
              sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._wsize = wsize
     self._threshold = threshold
     self._integration = integration
     self._func = DensityF1D(self._wsize, self._integration, sampling)
コード例 #13
0
ファイル: predicates.py プロジェクト: antont/blender
 def __init__(self,
              threshold,
              orientation,
              level,
              integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._orientation = orientation
     self._level = level
     self._integration = integration
コード例 #14
0
 def __init__(self, functor, sigmaMin, sigmaMax, lmin, lmax, tmin, tmax, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._functor = functor
     self._sigmaMin = float(sigmaMin)
     self._sigmaMax = float(sigmaMax)
     self._lmin = float(lmin)
     self._lmax = float(lmax)
     self._tmin = tmin
     self._tmax = tmax
     self._integration = integration
     self._sampling = sampling
コード例 #15
0
 def __init__(self, functor, sigmaMin, sigmaMax, lmin, lmax, tmin, tmax, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._functor = functor
     self._sigmaMin = float(sigmaMin)
     self._sigmaMax = float(sigmaMax)
     self._lmin = float(lmin)
     self._lmax = float(lmax)
     self._tmin = tmin
     self._tmax = tmax
     self._integration = integration
     self._sampling = sampling
コード例 #16
0
 def __init__(self):
     UnaryPredicate1D.__init__(self)
     self.__func1 = GetOccludersF1D()
     self.__func2 = GetShapeF1D()
コード例 #17
0
 def __init__(self, pred1, pred2):
     UnaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
コード例 #18
0
 def __init__(self, *predicates):
     UnaryPredicate1D.__init__(self)
     self.predicates = predicates
     # there are cases in which only one predicate is supplied (in the parameter editor)
     if len(self.predicates) < 1:
         raise ValueError("Expected two or more UnaryPredicate1D, got ", len(predicates))
コード例 #19
0
ファイル: predicates.py プロジェクト: antont/blender
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
コード例 #20
0
 def __init__(self, threshold, level, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._level = level
     self._integration = integration
コード例 #21
0
 def __init__(self, wsize, threshold, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._wsize = wsize
     self._threshold = threshold
     self._integration = integration
     self._func = DensityF1D(self._wsize, self._integration, sampling)
コード例 #22
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
     self.func = Curvature2DAngleF0D()
コード例 #23
0
 def __init__(self, nature):
     UnaryPredicate1D.__init__(self)
     self._nature = nature
     self._getNature = CurveNatureF1D()
コード例 #24
0
 def __init__(self, l):
     UnaryPredicate1D.__init__(self)
     self._l = l
コード例 #25
0
 def __init__(self, n):
     UnaryPredicate1D.__init__(self)
     self.__n = n
     self.__count = 0
コード例 #26
0
 def __init__(self, pred):
     UnaryPredicate1D.__init__(self)
     self.__pred = pred
コード例 #27
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._funcs = tuple(ShapeUP1D(_id, 0) for _id in idlist)
コード例 #28
0
 def __init__(self, threshold, level, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._l = threshold
     self.func = pyDensityAnisotropyF1D(level, IntegrationType.MEAN, sampling)
コード例 #29
0
ファイル: predicates.py プロジェクト: antont/blender
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self._integration = integration
コード例 #30
0
 def __init__(self, threshold, l, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
コード例 #31
0
 def __init__(self, length_min=None, length_max=None):
     UnaryPredicate1D.__init__(self)
     self.length_min = length_min
     self.length_max = length_max
コード例 #32
0
ファイル: predicates.py プロジェクト: antont/blender
 def __init__(self, pred1, pred2):
     UnaryPredicate1D.__init__(self)
     self.__pred1 = pred1
     self.__pred2 = pred2
コード例 #33
0
ファイル: parameter_editor.py プロジェクト: Squashwell/bepuik
 def __init__(self, names, negative):
     UnaryPredicate1D.__init__(self)
     self.names = names
     self.negative = negative
コード例 #34
0
 def __init__(self,z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self._integration = integration
コード例 #35
0
 def __init__(self,n,a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
コード例 #36
0
 def __init__(self, threshold, level, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._func = GetSteerableViewMapDensityF1D(level, integration)
コード例 #37
0
 def __init__(self,idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self._funcs = []
     for _id in idlist:
         self._funcs.append(ShapeUP1D(_id.first, _id.second))
コード例 #38
0
ファイル: predicates.py プロジェクト: antont/blender
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self._funcs = []
     for _id in idlist:
         self._funcs.append(ShapeUP1D(_id.first, _id.second))
コード例 #39
0
 def __init__(self, threshold, orientation, level, integration=IntegrationType.MEAN, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._func = GetDirectionalViewMapDensityF1D(orientation, level, integration, sampling)
コード例 #40
0
ファイル: parameter_editor.py プロジェクト: Squashwell/bepuik
 def __init__(self, qi_start, qi_end):
     UnaryPredicate1D.__init__(self)
     self.getQI = QuantitativeInvisibilityF1D()
     self.qi_start = qi_start
     self.qi_end = qi_end
コード例 #41
0
 def __init__(self, names, negative=False):
     UnaryPredicate1D.__init__(self)
     self._names = names
     self._negative = negative
コード例 #42
0
ファイル: parameter_editor.py プロジェクト: Squashwell/bepuik
 def __init__(self, length_min=None, length_max=None):
     UnaryPredicate1D.__init__(self)
     self.length_min = length_min
     self.length_max = length_max
コード例 #43
0
 def __init__(self, n):
     UnaryPredicate1D.__init__(self)
     self.__n = n
     self.__count = 0
コード例 #44
0
 def __init__(self, pred):
     UnaryPredicate1D.__init__(self)
     self.predicate = pred
コード例 #45
0
 def __init__(self, nature):
     UnaryPredicate1D.__init__(self)
     self._nature = nature
     self._getNature = CurveNatureF1D()
コード例 #46
0
 def __init__(self, qi_start, qi_end):
     UnaryPredicate1D.__init__(self)
     self.__getQI = QuantitativeInvisibilityF1D()
     self.__qi_start = qi_start
     self.__qi_end = qi_end
コード例 #47
0
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self.func = GetProjectedZF1D(integration)
コード例 #48
0
 def __init__(self, l):
     UnaryPredicate1D.__init__(self)
     self._l = l
コード例 #49
0
 def __init__(self, id):
     UnaryPredicate1D.__init__(self)
     if not isinstance(id, Id):
         raise TypeError("pyIsOccludedByUP1D expected freestyle.types.Id, not " + type(id).__name__)
     self._id = id
コード例 #50
0
 def __init__(self, n, a):
     UnaryPredicate1D.__init__(self)
     self._n = n
     self._a = a
     self.func = Curvature2DAngleF0D()
コード例 #51
0
 def __init__(self):
     UnaryPredicate1D.__init__(self)
     self.__func1 = GetOccludersF1D()
     self.__func2 = GetShapeF1D()
コード例 #52
0
 def __init__(self, z, integration=IntegrationType.MEAN):
     UnaryPredicate1D.__init__(self)
     self._z = z
     self.func = GetProjectedZF1D(integration)
コード例 #53
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self.__func1 = GetOccludersF1D()
コード例 #54
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._idlist = idlist
     self.__func1 = GetOccludersF1D()
コード例 #55
0
 def __init__(self, idlist):
     UnaryPredicate1D.__init__(self)
     self._funcs = tuple(ShapeUP1D(_id, 0) for _id in idlist)
コード例 #56
0
 def __init__(self, _id):
     UnaryPredicate1D.__init__(self)
     self._id = _id
コード例 #57
0
 def __init__(self, _id):
     UnaryPredicate1D.__init__(self)
     self._id = _id
コード例 #58
0
 def __init__(self, threshold, l, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._threshold = threshold
     self._GetGradient = pyViewMapGradientNormF1D(l, IntegrationType.MEAN)
コード例 #59
0
 def __init__(self, threshold, level, sampling=2.0):
     UnaryPredicate1D.__init__(self)
     self._l = threshold
     self.func = pyDensityAnisotropyF1D(level, IntegrationType.MEAN, sampling)