Panda3D
Loading...
Searching...
No Matches
DirectAnalogs Class Reference
Inheritance diagram for DirectAnalogs:
DirectObject

Public Member Functions

 __init__ (self, vrpnClient, device)
 
 __getitem__ (self, index)
 
 __len__ (self)
 
 __repr__ (self)
 
 disable (self)
 
 enable (self)
 
 getName (self)
 
 getNodePath (self)
 
 normalize (self, rawValue, minVal=-1, maxVal=1, sf=1.0)
 
 normalizeChannel (self, chan, minVal=-1, maxVal=1, sf=1.0)
 
 normalizeWithoutCentering (self, val, minVal=-1, maxVal=1)
 
- Public Member Functions inherited from DirectObject
 __init__ (self)
 
 accept (self, event, method, extraArgs=[])
 
 acceptOnce (self, event, method, extraArgs=[])
 
 addTask (self, *args, **kwargs)
 
 detectLeaks (self)
 
 doMethodLater (self, *args, **kwargs)
 
 getAllAccepting (self)
 
 ignore (self, event)
 
 ignoreAll (self)
 
 isAccepting (self, event)
 
 isIgnoring (self, event)
 
 removeAllTasks (self)
 
 removeTask (self, taskOrName)
 

Public Attributes

 analogCenter = self._analogCenter.getValue()
 
 analogDeadband = self._analogDeadband.getValue()
 
 analogMax = self._analogMax.getValue()
 
 analogMin = self._analogMin.getValue()
 
 analogRange = self.analogMax - self.analogMin
 
str name = 'DirectAnalogs-' + repr(DirectAnalogs.analogCount)
 
 nodePath = self._base.dataRoot.attachNewNode(self)
 

Static Public Attributes

int analogCount = 0
 
- Static Public Attributes inherited from DirectObject
 accept_once = acceptOnce
 
 add_task = addTask
 
 detect_leaks = detectLeaks
 
 do_method_later = doMethodLater
 
 get_all_accepting = getAllAccepting
 
 ignore_all = ignoreAll
 
 is_accepting = isAccepting
 
 is_ignoring = isIgnoring
 
 remove_all_tasks = removeAllTasks
 
 remove_task = removeTask
 

Protected Attributes

 _base = base
 
- Protected Attributes inherited from DirectObject
dict _taskList = {}
 

Static Protected Attributes

 _analogCenter = ConfigVariableDouble('vrpn-analog-center', ANALOG_CENTER)
 
 _analogDeadband = ConfigVariableDouble('vrpn-analog-deadband', ANALOG_DEADBAND)
 
 _analogMax = ConfigVariableDouble('vrpn-analog-max', ANALOG_MAX)
 
 _analogMin = ConfigVariableDouble('vrpn-analog-min', ANALOG_MIN)
 

Additional Inherited Members

- Protected Member Functions inherited from DirectObject
 _addTask (self, task)
 
 _clearTask (self, task)
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
vrpnClient,
device )

Member Function Documentation

◆ __getitem__()

__getitem__ ( self,
index )

◆ __len__()

__len__ ( self)

◆ __repr__()

__repr__ ( self)

◆ disable()

disable ( self)

◆ enable()

enable ( self)

◆ getName()

getName ( self)

◆ getNodePath()

getNodePath ( self)

◆ normalize()

normalize ( self,
rawValue,
minVal = -1,
maxVal = 1,
sf = 1.0 )

◆ normalizeChannel()

normalizeChannel ( self,
chan,
minVal = -1,
maxVal = 1,
sf = 1.0 )

◆ normalizeWithoutCentering()

normalizeWithoutCentering ( self,
val,
minVal = -1,
maxVal = 1 )

Member Data Documentation

◆ _analogCenter

_analogCenter = ConfigVariableDouble('vrpn-analog-center', ANALOG_CENTER)
staticprotected

◆ _analogDeadband

_analogDeadband = ConfigVariableDouble('vrpn-analog-deadband', ANALOG_DEADBAND)
staticprotected

◆ _analogMax

_analogMax = ConfigVariableDouble('vrpn-analog-max', ANALOG_MAX)
staticprotected

◆ _analogMin

_analogMin = ConfigVariableDouble('vrpn-analog-min', ANALOG_MIN)
staticprotected

◆ _base

_base = base
protected

◆ analogCenter

analogCenter = self._analogCenter.getValue()

◆ analogCount

int analogCount = 0
static

◆ analogDeadband

analogDeadband = self._analogDeadband.getValue()

◆ analogMax

analogMax = self._analogMax.getValue()

◆ analogMin

analogMin = self._analogMin.getValue()

◆ analogRange

analogRange = self.analogMax - self.analogMin

◆ name

◆ nodePath

nodePath = self._base.dataRoot.attachNewNode(self)