Panda3D
Public Member Functions | Public Attributes | List of all members
DialWidget Class Reference
Inheritance diagram for DialWidget:

Public Member Functions

def __init__ (self, parent=None, **kw)
 
def computeDialAngle (self, event, fShift=0)
 
def computeValueFromAngle (self, dialAngle)
 
def get (self)
 
def highlightKnob (self, event)
 
def knobMouseDown (self, event)
 
def knobMouseUp (self, event)
 
def mouseDown (self, event)
 Canvas callback functions Dial. More...
 
def mouseMotion (self, event, fShift=0)
 
def mouseUp (self, event)
 
def restoreKnob (self, event)
 
def set (self, value, fCommand=1)
 
def setBackground (self)
 
def setBorderwidth (self)
 
def setNumDigits (self)
 
def setNumSegments (self)
 
def setRelief (self)
 
def shiftMouseMotion (self, event)
 
def updateDialSF (self, event)
 
def updateDialTask (self, state)
 
def updateIndicator (self, value)
 
def updateIndicatorDegrees (self, degAngle)
 
def updateIndicatorRadians (self, dialAngle)
 

Public Attributes

 knobSF
 
 lastAngle
 
 minExp
 
 radius
 
 rollCount
 
 snapAngle
 
 updateTask
 
 value
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  parent = None,
**  kw 
)

Member Function Documentation

◆ computeDialAngle()

def computeDialAngle (   self,
  event,
  fShift = 0 
)

◆ computeValueFromAngle()

def computeValueFromAngle (   self,
  dialAngle 
)

◆ get()

def get (   self)
self.get()
Get current dial value

◆ highlightKnob()

def highlightKnob (   self,
  event 
)

◆ knobMouseDown()

def knobMouseDown (   self,
  event 
)

◆ knobMouseUp()

def knobMouseUp (   self,
  event 
)

◆ mouseDown()

def mouseDown (   self,
  event 
)

Canvas callback functions Dial.

◆ mouseMotion()

def mouseMotion (   self,
  event,
  fShift = 0 
)

◆ mouseUp()

def mouseUp (   self,
  event 
)

◆ restoreKnob()

def restoreKnob (   self,
  event 
)

◆ set()

def set (   self,
  value,
  fCommand = 1 
)
self.set(value, fCommand = 1)
Set dial to new value, execute command if fCommand == 1

◆ setBackground()

def setBackground (   self)

◆ setBorderwidth()

def setBorderwidth (   self)

◆ setNumDigits()

def setNumDigits (   self)

◆ setNumSegments()

def setNumSegments (   self)

◆ setRelief()

def setRelief (   self)

◆ shiftMouseMotion()

def shiftMouseMotion (   self,
  event 
)

◆ updateDialSF()

def updateDialSF (   self,
  event 
)

◆ updateDialTask()

def updateDialTask (   self,
  state 
)

◆ updateIndicator()

def updateIndicator (   self,
  value 
)

◆ updateIndicatorDegrees()

def updateIndicatorDegrees (   self,
  degAngle 
)

◆ updateIndicatorRadians()

def updateIndicatorRadians (   self,
  dialAngle 
)

Member Data Documentation

◆ knobSF

knobSF

◆ lastAngle

lastAngle

◆ minExp

minExp

◆ radius

radius

◆ rollCount

rollCount

◆ snapAngle

snapAngle

◆ updateTask

updateTask

◆ value

value