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

Public Member Functions

def __init__ (self, spaceType='cameras', kwargs)
 
def add (self, userPairs, idx=0, metadata=None)
 
def getAll (self)
 
def getSubSpacebyId (self, id)
 

Public Attributes

 spaceType
 
 idxs
 
 metadatas
 

Detailed Description

Definition at line 1688 of file scene.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.scene.UPSpace.__init__ (   self,
  spaceType = 'cameras',
  kwargs 
)
Contains userPair lists in memory. 

    Space types include:
    ====================
sites
cameras
sequences

Definition at line 1689 of file scene.py.

1689  def __init__(self, spaceType='cameras', **kwargs):
1690  ''' Contains userPair lists in memory.
1691 
1692  Space types include:
1693  ====================
1694  sites
1695  cameras
1696  sequences
1697  '''
1698  tvaLib.Constructors.SuperList.__init__(self, **kwargs)
1699  self.spaceType = spaceType
1700  self.idxs = []
1701  self.metadatas = []
1702  return
1703 

Member Function Documentation

◆ add()

def lib.scene.UPSpace.add (   self,
  userPairs,
  idx = 0,
  metadata = None 
)

Definition at line 1704 of file scene.py.

1704  def add(self, userPairs, idx=0, metadata=None):
1705  self.idxs.append(idx)
1706  self.metadatas.append(metadata)
1707  self.data.append(userPairs)
1708  return True
1709 

◆ getAll()

def lib.scene.UPSpace.getAll (   self)

Definition at line 1710 of file scene.py.

1710  def getAll(self):
1711  from lib.int import UserPairs
1712  return_ = UserPairs([])
1713  for data in self.data:
1714  if(data is None): return None
1715  elif(data.__class__ != UPSpace): return_ + data
1716  else:
1717  d = data.getAll()
1718  if(d): return_ + d
1719  else: return None
1720  return return_
1721 
Definition: int.py:1

◆ getSubSpacebyId()

def lib.scene.UPSpace.getSubSpacebyId (   self,
  id 
)

Definition at line 1722 of file scene.py.

1722  def getSubSpacebyId(self, id):
1723  for dataIx in range(len(self.metadatas)):
1724  if(id==self.metadatas[dataIx].idx): return self.data[dataIx]
1725  return None
1726 

Member Data Documentation

◆ idxs

lib.scene.UPSpace.idxs

Definition at line 1700 of file scene.py.

◆ metadatas

lib.scene.UPSpace.metadatas

Definition at line 1701 of file scene.py.

◆ spaceType

lib.scene.UPSpace.spaceType

Definition at line 1699 of file scene.py.


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