Public Member Functions | |
def | center (self, point) |
def | getMatrix (self) |
def | getNode (self, obj) |
def | getNodeFull (self, obj) |
def | getNodeLight (self, shape) |
def | move (self, delta) |
def | rotate (self, axis, angle) |
def | scale (self, delta) |
def | setMatrix (self, matrix) |
def | update (self, obj) |
Public Member Functions inherited from draftguitools.gui_trackers.Tracker | |
def | finalize (self) |
def | lowerTracker (self) |
def | off (self) |
def | on (self) |
def | raiseTracker (self) |
Public Attributes | |
children | |
coords | |
marker | |
trans | |
Public Attributes inherited from draftguitools.gui_trackers.Tracker | |
ontop | |
switch | |
Visible | |
Detailed Description
A Ghost tracker, that allows to copy whole object representations. You can pass it an object or a list of objects, or a shape.
Member Function Documentation
◆ center()
def draftguitools.gui_trackers.ghostTracker.center | ( | self, | |
point | |||
) |
Set the rotation/scale center of the ghost.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, and draftguitools.gui_trackers.ghostTracker.trans.
Referenced by PathScripts.PathDressupAxisMap.ObjectDressup.execute(), and PathScripts.PathDressupAxisMap.ObjectDressup.onChanged().
◆ getMatrix()
def draftguitools.gui_trackers.ghostTracker.getMatrix | ( | self | ) |
Get matrix of the active view.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, and draftguitools.gui_trackers.ghostTracker.trans.
◆ getNode()
def draftguitools.gui_trackers.ghostTracker.getNode | ( | self, | |
obj | |||
) |
Return a coin node representing the given object.
References draftguitools.gui_trackers.ghostTracker.getNodeFull(), and draftguitools.gui_trackers.ghostTracker.getNodeLight().
Referenced by draftguitools.gui_trackers.ghostTracker.update().
◆ getNodeFull()
def draftguitools.gui_trackers.ghostTracker.getNodeFull | ( | self, | |
obj | |||
) |
Get a coin node which is a copy of the current representation.
Referenced by draftguitools.gui_trackers.ghostTracker.getNode().
◆ getNodeLight()
def draftguitools.gui_trackers.ghostTracker.getNodeLight | ( | self, | |
shape | |||
) |
Extract a lighter version directly from a shape.
Referenced by draftguitools.gui_trackers.ghostTracker.getNode().
◆ move()
def draftguitools.gui_trackers.ghostTracker.move | ( | self, | |
delta | |||
) |
Move the ghost to a given position. Relative from its start position.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, and draftguitools.gui_trackers.ghostTracker.trans.
◆ rotate()
def draftguitools.gui_trackers.ghostTracker.rotate | ( | self, | |
axis, | |||
angle | |||
) |
Rotate the ghost of a given angle.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, draftguitools.gui_trackers.ghostTracker.trans, and DraftVecUtils.tup().
Referenced by PathScripts.PathDressupLeadInOut.ObjectDressup.getLeadEnd(), and PathScripts.PathDressupLeadInOut.ObjectDressup.getLeadStart().
◆ scale()
def draftguitools.gui_trackers.ghostTracker.scale | ( | self, | |
delta | |||
) |
Scale the ghost by the given factor.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, and draftguitools.gui_trackers.ghostTracker.trans.
◆ setMatrix()
def draftguitools.gui_trackers.ghostTracker.setMatrix | ( | self, | |
matrix | |||
) |
Set the transformation matrix.
References draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, and draftguitools.gui_trackers.ghostTracker.trans.
◆ update()
def draftguitools.gui_trackers.ghostTracker.update | ( | self, | |
obj | |||
) |
Recreate the ghost from a new object.
References draftguitools.gui_trackers.Tracker.finalize(), Gui::NavigationStyle.finalize(), Base::InterpreterSingleton.finalize(), Gui::AxisOriginPy.getNode(), Gui::AxisOrigin.getNode(), draftguitools.gui_trackers.ghostTracker.getNode(), SIM::Coin3D::Quarter::InteractionMode.on(), draftguitools.gui_trackers.Tracker.on(), PathScripts.PathJobGui.ViewProvider.sep, PathScripts.PathDressupTagGui.HoldingTagMarker.sep, draftguitools.gui_trackers.bsplineTracker.sep, draftguitools.gui_trackers.bezcurveTracker.sep, draftguitools.gui_trackers.arcTracker.sep, and ArchBuildingPart.ViewProviderBuildingPart.sep.
Referenced by femtaskpanels.task_result_mechanical._TaskPanel.calculate(), Spreadsheet_legacy.SpreadsheetView.changeCell(), draftguitools.gui_trackers.boxTracker.height(), ArchAxis.CommandArchGrid.IsActive(), Plot.Plot.plot(), Spreadsheet_legacy.SpreadsheetView.recompute(), and draftguitools.gui_trackers.gridTracker.reset().
Member Data Documentation
◆ children
draftguitools.gui_trackers.ghostTracker.children |
Referenced by prototype.Node.addtofreecad(), prototype.Node.pprint(), prototype.Node.pprint2(), and prototype.Node.rlen().
◆ coords
draftguitools.gui_trackers.ghostTracker.coords |
Referenced by ArchSite.Compass.buildCoordinates(), draftguitools.gui_trackers.editTracker.get(), draftviewproviders.view_wire.ViewProviderWire.onChanged(), draftguitools.gui_trackers.editTracker.set(), draftguitools.gui_trackers.wireTracker.update(), draftviewproviders.view_wire.ViewProviderWire.updateData(), FeaturePython.ViewProviderCircleSet.updateData(), and draftguitools.gui_trackers.wireTracker.updateFromPointlist().
◆ marker
draftguitools.gui_trackers.ghostTracker.marker |
◆ trans
draftguitools.gui_trackers.ghostTracker.trans |
Referenced by draftguitools.gui_trackers.ghostTracker.center(), draftguitools.gui_trackers.ghostTracker.getMatrix(), draftguitools.gui_trackers.ghostTracker.move(), draftguitools.gui_trackers.boxTracker.pos(), draftguitools.gui_trackers.ghostTracker.rotate(), draftguitools.gui_trackers.ghostTracker.scale(), draftguitools.gui_trackers.PlaneTracker.set(), draftguitools.gui_trackers.gridTracker.set(), draftguitools.gui_trackers.ghostTracker.setMatrix(), draftguitools.gui_trackers.boxTracker.setRotation(), draftguitools.gui_trackers.boxTracker.update(), draftguitools.gui_trackers.radiusTracker.update(), and draftviewproviders.view_text.ViewProviderText.updateData().
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftguitools/gui_trackers.py