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

Public Member Functions

def __init__ (self, parent=None, **kw)
 
def get (self)
 
def highlightWidget (self, event)
 
def mouseDown (self, event)
 Canvas callback functions Floater velocity controller. More...
 
def mouseUp (self, event)
 
def restoreWidget (self, event)
 
def set (self, value, fCommand=1)
 
def setBackground (self)
 
def setBorderwidth (self)
 
def setNumDigits (self)
 
def setRelief (self)
 
def updateFloaterSF (self, event)
 
def updateFloaterTask (self, state)
 
def updateIndicator (self, value)
 

Public Attributes

 minExp
 
 updateTask
 
 value
 
 velocitySF
 

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ get()

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

◆ highlightWidget()

def highlightWidget (   self,
  event 
)

◆ mouseDown()

def mouseDown (   self,
  event 
)

Canvas callback functions Floater velocity controller.

Begin mouse interaction 

◆ mouseUp()

def mouseUp (   self,
  event 
)

◆ restoreWidget()

def restoreWidget (   self,
  event 
)

◆ set()

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

◆ setBackground()

def setBackground (   self)

◆ setBorderwidth()

def setBorderwidth (   self)

◆ setNumDigits()

def setNumDigits (   self)
Adjust minimum exponent to use in velocity task based
upon the number of digits to be displayed in the result

◆ setRelief()

def setRelief (   self)

◆ updateFloaterSF()

def updateFloaterSF (   self,
  event 
)
Update velocity scale factor based of mouse distance from origin

◆ updateFloaterTask()

def updateFloaterTask (   self,
  state 
)
Update floaterWidget value based on current scaleFactor
Adjust for time to compensate for fluctuating frame rates

◆ updateIndicator()

def updateIndicator (   self,
  value 
)

Member Data Documentation

◆ minExp

minExp

◆ updateTask

updateTask

◆ value

value

◆ velocitySF

velocitySF