Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Valuator Class Reference
Inheritance diagram for Valuator:
Dial Floater Slider AngleDial

Public Member Functions

def __init__ (self, parent=None, **kw)
 
def addPropertyToDialog (self, property, pDict)
 
def addValuatorMenuEntries (self)
 
def addValuatorPropertiesToDialog (self)
 
def createValuator (self)
 
def get (self)
 
def mouseReset (self, event)
 
def packValuator (self)
 
def reset (self)
 
def set (self, value, fCommand=1)
 
def setEntry (self, value, fCommand=1)
 
def setEntryFormat (self)
 
def setLabel (self)
 
def setState (self)
 
def validateEntryInput (self, event)
 
def zero (self)
 

Public Attributes

 adjustedValue
 
 entryFormat
 
 fInit
 
 propertyDict
 
 propertyList
 

Static Public Attributes

int deadband = 5
 
float sfBase = 3.0
 
int sfDist = 7
 

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented in AngleDial, Dial, Floater, and Slider.

Member Function Documentation

◆ addPropertyToDialog()

def addPropertyToDialog (   self,
  property,
  pDict 
)

◆ addValuatorMenuEntries()

def addValuatorMenuEntries (   self)
Function used by subclass to add menu entries to popup menu 

Reimplemented in Dial.

◆ addValuatorPropertiesToDialog()

def addValuatorPropertiesToDialog (   self)
Function used by subclass to add properties to property dialog 

Reimplemented in Dial.

◆ createValuator()

def createValuator (   self)
Function used by subclass to create valuator geometry 

Reimplemented in Dial, Slider, and Floater.

◆ get()

def get (   self)
Return current widget value 

◆ mouseReset()

def mouseReset (   self,
  event 
)
Reset valuator to resetValue

◆ packValuator()

def packValuator (   self)
Function used by subclass to pack widget 

Reimplemented in Slider, Dial, and Floater.

◆ reset()

def reset (   self)
self.reset()
Reset valuator to reset value

◆ set()

def set (   self,
  value,
  fCommand = 1 
)
Update widget's value by setting valuator, which will in
turn update the entry.  fCommand flag (which is passed to the
valuator as commandData, which is then passed in turn to
self.setEntry) controls command execution.

◆ setEntry()

def setEntry (   self,
  value,
  fCommand = 1 
)
Update value displayed in entry, fCommand flag controls
command execution

◆ setEntryFormat()

def setEntryFormat (   self)
Change the number of significant digits in entry

◆ setLabel()

def setLabel (   self)
Update label's text 

◆ setState()

def setState (   self)
Enable/disable widget 

◆ validateEntryInput()

def validateEntryInput (   self,
  event 
)
Check validity of entry and if valid pass along to valuator 

◆ zero()

def zero (   self)
self.zero()
Set valuator to zero

Member Data Documentation

◆ adjustedValue

adjustedValue

◆ deadband

int deadband = 5
static

◆ entryFormat

entryFormat

◆ fInit

fInit

◆ propertyDict

propertyDict

◆ propertyList

propertyList

◆ sfBase

float sfBase = 3.0
static

◆ sfDist

int sfDist = 7
static