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

Public Member Functions

 __init__ (self, vrpnClient, device)
 
 __getitem__ (self, index)
 
 __len__ (self)
 
 __repr__ (self)
 
 disable (self)
 
 enable (self)
 
 getName (self)
 
 getNodePath (self)
 
- 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

str name = 'DirectButtons-' + repr(DirectButtons.buttonCount)
 
 nodePath = self._base.dataRoot.attachNewNode(self)
 

Static Public Attributes

int buttonCount = 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 = {}
 

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)

Member Data Documentation

◆ _base

_base = base
protected

◆ buttonCount

int buttonCount = 0
static

◆ name

◆ nodePath

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