tvaLib
Public Member Functions | Public Attributes | List of all members
lib.scene.DroppedObjectTypes Class Reference
Inheritance diagram for lib.scene.DroppedObjectTypes:

Public Member Functions

def __init__ (self, types=['ie', bb, te, tc)
 
def addByType (self, type_, objects)
 
def merge (self, droppedObjectTypes)
 

Public Attributes

 data
 

Detailed Description

Definition at line 1727 of file scene.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.scene.DroppedObjectTypes.__init__ (   self,
  types = ['ie',
  bb,
  te,
  tc 
)

Definition at line 1728 of file scene.py.

1728  def __init__(self, types=['ie', 'bb', 'te', 'tc']):
1729  self.data = {}
1730  for t in types:
1731  self.data[t] = ObjectSpace()
1732  return
1733 

Member Function Documentation

◆ addByType()

def lib.scene.DroppedObjectTypes.addByType (   self,
  type_,
  objects 
)

Definition at line 1734 of file scene.py.

1734  def addByType(self, type_, objects):
1735  self.data[type_].add(objects)
1736  return True
1737 

◆ merge()

def lib.scene.DroppedObjectTypes.merge (   self,
  droppedObjectTypes 
)

Definition at line 1738 of file scene.py.

1738  def merge(self, droppedObjectTypes):
1739  for i in self.data:
1740  if(i in droppedObjectTypes): self.data[i].add(droppedObjectTypes[i])
1741  for i in droppedObjectTypes:
1742  if(i not in self.data):
1743  if(self.data == {}): self.data = {i:droppedObjectTypes[i]}
1744  else: self.data[i] = droppedObjectTypes[i]
1745  return True
1746 

Member Data Documentation

◆ data

lib.scene.DroppedObjectTypes.data

Definition at line 1729 of file scene.py.


The documentation for this class was generated from the following file: