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 | remove (self) |
def | rotate (self, axis, angle) |
def | scale (self, delta) |
def | setMatrix (self, matrix) |
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 | |
color | |
ontop | |
switch | |
Visible | |
A Ghost tracker, that allows to copy whole object representations. You can pass it an object or a list of objects, or a shape.
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, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
Referenced by drafttaskpanels.task_circulararray.TaskPanelCircularArray.accept(), drafttaskpanels.task_polararray.TaskPanelPolarArray.accept(), draftguitools.gui_arcs.Arc.action(), draftguitools.gui_dimensions.Dimension.action(), draftguitools.gui_offset.Offset.action(), draftguitools.gui_polygons.Polygon.action(), draftguitools.gui_rotate.Rotate.build_copy_subelements_command(), draftguitools.gui_scale.Scale.build_copy_subelements_command(), draftguitools.gui_rotate.Rotate.build_rotate_subelements_command(), draftguitools.gui_scale.Scale.build_scale_subelements_command(), draftguitools.gui_dimensions.Dimension.create_angle_dimension(), drafttaskpanels.task_circulararray.TaskPanelCircularArray.create_object(), drafttaskpanels.task_polararray.TaskPanelPolarArray.create_object(), draftguitools.gui_arcs.Arc.drawArc(), draftguitools.gui_polygons.Polygon.drawPolygon(), PathScripts.PathDressupAxisMap.ObjectDressup.execute(), draftguitools.gui_rotate.Rotate.handle_mouse_move_event(), draftguitools.gui_arcs.Arc.numericInput(), draftguitools.gui_polygons.Polygon.numericInput(), draftguitools.gui_rotate.Rotate.numericInput(), draftguitools.gui_arcs.Arc.numericRadius(), draftguitools.gui_polygons.Polygon.numericRadius(), PathScripts.PathDressupAxisMap.ObjectDressup.onChanged(), drafttaskpanels.task_circulararray.TaskPanelCircularArray.print_messages(), drafttaskpanels.task_polararray.TaskPanelPolarArray.print_messages(), drafttaskpanels.task_circulararray.TaskPanelCircularArray.reset_point(), drafttaskpanels.task_polararray.TaskPanelPolarArray.reset_point(), draftguitools.gui_rotate.Rotate.rotate_object(), draftguitools.gui_scale.Scale.scale_object(), draftguitools.gui_rotate.Rotate.set_center(), draftguitools.gui_rotate.Rotate.set_ghosts(), and draftguitools.gui_rotate.Rotate.set_rotation_angle().
def draftguitools.gui_trackers.ghostTracker.getMatrix | ( | self | ) |
Get matrix of the active view.
References draftguitools.gui_trackers.ghostTracker.getMatrix(), draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
Referenced by draftguitools.gui_trackers.ghostTracker.getMatrix().
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().
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().
def draftguitools.gui_trackers.ghostTracker.getNodeLight | ( | self, | |
shape | |||
) |
Extract a lighter version directly from a shape.
Referenced by draftguitools.gui_trackers.ghostTracker.getNode().
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, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
Referenced by draftguitools.gui_circulararray.CircularArray.Activated(), and draftguitools.gui_polararray.PolarArray.Activated().
def draftguitools.gui_trackers.ghostTracker.remove | ( | self | ) |
Remove the ghost when switching to and from subelement mode.
References Base::InterpreterSingleton.finalize(), Gui::NavigationStyle.finalize(), draftguitools.gui_trackers.Tracker.finalize(), ArchPanel.ViewProviderPanelCut.switch, ArchPanel.ViewProviderPanelSheet.switch, draftguitools.gui_trackers.Tracker.switch, PathScripts.PathDressupDogbone.ViewProviderDressup.switch, PathScripts.PathDressupTagGui.PathDressupTagViewProvider.switch, PathScripts.PathFeatureExtensionsGui._Extension.switch, PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.switch, and PathScripts.PathJobGui.ViewProvider.switch.
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, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, draftviewproviders.view_text.ViewProviderText.trans, and DraftVecUtils.tup().
Referenced by PathScripts.PathDressupLeadInOut.ObjectDressup.getLeadEnd(), PathScripts.PathDressupLeadInOut.ObjectDressup.getLeadStart(), draftguitools.gui_rotate.Rotate.numericRadius(), ArchSectionPlane.SectionPlaneTaskPanel.rotateX(), ArchSectionPlane.SectionPlaneTaskPanel.rotateY(), and ArchSectionPlane.SectionPlaneTaskPanel.rotateZ().
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, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
Referenced by automotive_design.cartesian_transformation_operator.scl(), config_control_design.cartesian_transformation_operator.scl(), ifc2x3.ifccartesiantransformationoperator.scl(), and ifc4.ifccartesiantransformationoperator.scl().
def draftguitools.gui_trackers.ghostTracker.setMatrix | ( | self, | |
matrix | |||
) |
Set the transformation matrix.
References draftguitools.gui_trackers.ghostTracker.setMatrix(), draftguitools.gui_trackers.bsplineTracker.trans, draftguitools.gui_trackers.bezcurveTracker.trans, draftguitools.gui_trackers.arcTracker.trans, draftguitools.gui_trackers.ghostTracker.trans, draftguitools.gui_trackers.PlaneTracker.trans, draftguitools.gui_trackers.gridTracker.trans, draftguitools.gui_trackers.boxTracker.trans, draftguitools.gui_trackers.radiusTracker.trans, and draftviewproviders.view_text.ViewProviderText.trans.
Referenced by draftguitools.gui_trackers.ghostTracker.setMatrix().
draftguitools.gui_trackers.ghostTracker.children |
Referenced by prototype.Node.addtofreecad(), prototype.Node.pprint(), prototype.Node.pprint2(), and prototype.Node.rlen().
draftguitools.gui_trackers.ghostTracker.coords |
Referenced by ArchStructure.CommandStructuralSystem.Activated(), draftguitools.gui_trackers.snapTracker.addCoords(), ArchSite.Compass.buildCoordinates(), draftguitools.gui_trackers.dimTracker.calc(), draftguitools.gui_trackers.snapTracker.clear(), draftguitools.gui_trackers.editTracker.get(), draftguitools.gui_trackers.lineTracker.getLength(), draftguitools.gui_trackers.rectangleTracker.getSize(), ArchPanel.ViewProviderPanelCut.onChanged(), ArchPanel.ViewProviderPanelSheet.onChanged(), draftviewproviders.view_wire.ViewProviderWire.onChanged(), draftguitools.gui_trackers.lineTracker.p1(), draftguitools.gui_trackers.rectangleTracker.p1(), draftguitools.gui_trackers.rectangleTracker.p2(), draftguitools.gui_trackers.lineTracker.p2(), draftguitools.gui_trackers.rectangleTracker.p3(), draftguitools.gui_trackers.rectangleTracker.p4(), draftguitools.gui_trackers.editTracker.set(), draftguitools.gui_trackers.snapTracker.setCoords(), draftguitools.gui_trackers.rectangleTracker.setorigin(), draftguitools.gui_trackers.rectangleTracker.update(), draftguitools.gui_trackers.wireTracker.update(), FeaturePython.ViewProviderCircleSet.updateData(), draftviewproviders.view_wire.ViewProviderWire.updateData(), and draftguitools.gui_trackers.wireTracker.updateFromPointlist().
draftguitools.gui_trackers.ghostTracker.marker |
Referenced by draftguitools.gui_trackers.snapTracker.setMarker().
draftguitools.gui_trackers.ghostTracker.trans |
Referenced by draftguitools.gui_trackers.ghostTracker.center(), draftguitools.gui_trackers.arcTracker.getAngle(), draftguitools.gui_trackers.ghostTracker.getMatrix(), draftguitools.gui_trackers.arcTracker.getRadius(), draftguitools.gui_trackers.ghostTracker.move(), draftguitools.gui_trackers.boxTracker.pos(), draftguitools.gui_trackers.ghostTracker.rotate(), draftguitools.gui_trackers.ghostTracker.scale(), draftguitools.gui_trackers.gridTracker.set(), draftguitools.gui_trackers.PlaneTracker.set(), draftguitools.gui_trackers.arcTracker.setCenter(), draftguitools.gui_trackers.ghostTracker.setMatrix(), draftguitools.gui_trackers.arcTracker.setRadius(), draftguitools.gui_trackers.boxTracker.setRotation(), draftguitools.gui_trackers.radiusTracker.update(), draftguitools.gui_trackers.boxTracker.update(), and draftviewproviders.view_text.ViewProviderText.updateData().