Panda3D
|
Public Member Functions | |
def | __init__ |
def | __repr__ |
def | applyTo |
def | copyFrom |
def | getDataNames |
def | getDefaultValue |
def | getValue |
def | makeCopy |
def | setDefaultValues |
Static Public Attributes | |
dictionary | DataSet |
def __init__ | ( | self, | |
kwArgs | |||
) |
def __repr__ | ( | self | ) |
def applyTo | ( | self, | |
obj | |||
) |
def copyFrom | ( | self, | |
other, | |||
strict = False |
|||
) |
def getDataNames | ( | cls | ) |
def getDefaultValue | ( | cls, | |
name | |||
) |
def getValue | ( | self, | |
name | |||
) |
def makeCopy | ( | self | ) |
def setDefaultValues | ( | self | ) |
dictionary DataSet [static] |
{ # base class does not define any data items, but they would # appear here as 'name': defaultValue, # # WARNING: default values of mutable types that do not copy by # value (dicts, lists etc.) will be shared by all class instances. # if default value is callable, it will be called to get actual # default value # # for example: # # class MapData(POD): # DataSet = { # 'spawnIndices': Functor(list, [1,5,22]), # } }
Reimplemented in PODtest, and DerivedPOD.