draftguitools.gui_trackers.lineTracker Class Reference

Public Member Functions

def getLength (self)
 
def p1 (self, point=None)
 
def p2 (self, point=None)
 
- 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

 coords
 
- Public Attributes inherited from draftguitools.gui_trackers.Tracker
 ontop
 
 switch
 
 Visible
 

Detailed Description

A Line tracker, used by the tools that need to draw temporary lines

Member Function Documentation

◆ getLength()

def draftguitools.gui_trackers.lineTracker.getLength (   self)
Return the length of the line.

References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, and ArchPanel.ViewProviderPanelSheet.coords.

◆ p1()

def draftguitools.gui_trackers.lineTracker.p1 (   self,
  point = None 
)
Set or get the first point of the line.

References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, and ArchPanel.ViewProviderPanelSheet.coords.

Referenced by draftguitools.gui_trackers.rectangleTracker.isInside().

◆ p2()

def draftguitools.gui_trackers.lineTracker.p2 (   self,
  point = None 
)
Set or get the second point of the line.

References Gui::SoFCColorLegend.coords, Gui::SoFCColorGradient.coords, draftguitools.gui_trackers.snapTracker.coords, draftguitools.gui_trackers.lineTracker.coords, ArchEquipment._ViewProviderEquipment.coords, ArchSpace._ViewProviderSpace.coords, ArchSite._ViewProviderSite.coords, ArchStructure._ViewProviderStructure.coords, ArchPanel.ViewProviderPanelCut.coords, and ArchPanel.ViewProviderPanelSheet.coords.

Referenced by draftguitools.gui_trackers.rectangleTracker.isInside().

Member Data Documentation

◆ coords


The documentation for this class was generated from the following file:
  • src/Mod/Draft/draftguitools/gui_trackers.py