Panda3D
Public Member Functions | List of all members
ConcreteStruct Class Reference

Public Member Functions

def __init__ (self)
 
def getConcreteProperties (self)
 

Detailed Description

Python objects that inherit from this class are passed to
JavaScript as a concrete struct: a mapping from string -> value,
with no methods, passed by value.  This can be more optimal than
traditional Python objects which are passed by reference,
especially for small objects which might be repeatedly referenced
on the JavaScript side. 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ getConcreteProperties()

def getConcreteProperties (   self)
Returns a list of 2-tuples of the (key, value) pairs that
are to be passed to the concrete instance.  By default, this
returns all properties of the object.  You can override this
to restrict the set of properties that are uploaded.