draftobjects.bspline.BSpline Class Reference

Public Member Functions

def assureProperties (self, obj)
 
def execute (self, obj)
 
def onChanged (self, fp, prop)
 
def parameterization (self, pts, a, closed)
 
def execute (self, obj)
 
def onChanged (self, obj, prop)
 

Public Attributes

 knotSeq
 
- Public Attributes inherited from draftobjects.base.DraftObject
 Type
 

Detailed Description

The BSpline object

Member Function Documentation

◆ assureProperties()

def draftobjects.bspline.BSpline.assureProperties (   self,
  obj 
)

◆ execute()

def draftobjects.bspline.BSpline.execute (   self,
  obj 
)
Run this method when the object is created or recomputed.

Override this method to produce effects when the object
is newly created, and whenever the document is recomputed.

By default it does nothing.

Parameters
----------
obj : the scripted object.
    This commonly may be of types `Part::Part2DObjectPython`,
    `Part::FeaturePython`, or `App::FeaturePython`.

Reimplemented from draftobjects.base.DraftObject.

References draftobjects.bspline.BSpline.assureProperties(), draftobjects.bspline.BSpline.knotSeq, draftobjects.bspline.BSpline.parameterization(), and draftutils.translate.QT_TRANSLATE_NOOP.

Referenced by draftobjects.facebinder.Facebinder.addSubobjects(), PathScripts.PathDressupDogbone.ObjectDressup.boneStateList(), ArchSite.Compass.buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup.generateTags(), ArchPanel.PanelCut.getWires(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt.onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder.onChanged(), Mod.PartDesign.Scripts.Spring.MySpring.onChanged(), FeaturePython.DistanceBolt.onChanged(), PathScripts.PathStock.StockFromBase.onChanged(), PathScripts.PathStock.StockCreateBox.onChanged(), PathScripts.PathStock.StockCreateCylinder.onChanged(), draftobjects.draftlink.DraftLink.onDocumentRestored(), draftobjects.patharray.PathArray.onDocumentRestored(), and draftobjects.pathtwistedarray.PathTwistedArray.onDocumentRestored().

◆ onChanged()

def draftobjects.bspline.BSpline.onChanged (   self,
  obj,
  prop 
)
Run this method when a property is changed.

Override this method to handle the behavior
of the object depending on changes that occur to its properties.

By default it does nothing.

Parameters
----------
obj : the scripted object.
    This commonly may be of types `Part::Part2DObjectPython`,
    `Part::FeaturePython`, or `App::FeaturePython`.

prop : str
    Name of the property that was modified.

Reimplemented from draftobjects.base.DraftObject.

Referenced by ArchStructure.CommandStructuralSystem.Activated(), draftviewproviders.view_base.ViewProviderDraft.attach(), ArchSite.Compass.buildCoordinates(), draftobjects.wire.Wire.execute(), ArchBuildingPart.ViewProviderBuildingPart.updateData(), ArchPanel.ViewProviderPanelCut.updateData(), ArchPanel.ViewProviderPanelSheet.updateData(), draftviewproviders.view_label.ViewProviderLabel.updateData(), draftviewproviders.view_layer.ViewProviderLayer.updateData(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.updateData().

◆ parameterization()

def draftobjects.bspline.BSpline.parameterization (   self,
  pts,
  a,
  closed 
)
Computes a knot Sequence for a set of points.
fac (0-1) : parameterization factor
fac = 0 -> Uniform / fac=0.5 -> Centripetal / fac=1.0 -> Chord-Length

Referenced by draftobjects.bspline.BSpline.execute().

Member Data Documentation

◆ knotSeq

draftobjects.bspline.BSpline.knotSeq

The documentation for this class was generated from the following file: