Panda3D
Public Member Functions | Static Public Attributes | List of all members
Factory Class Reference

Public Member Functions

def __init__ (self)
 
def create (self, type, *args, **kwArgs)
 
def nullCtor (self, *args, **kwArgs)
 

Static Public Attributes

 notify = directNotify.newCategory('Factory')
 

Detailed Description

This class manages a list of object types and their corresponding constructors.
Objects may be created on-demand from their type. Object types may be any hashable
piece of unique data (such as a string).

This class is intended to be derived from. Subclasses should call self._registerTypes
to set up type constructors.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ create()

def create (   self,
  type,
args,
**  kwArgs 
)

◆ nullCtor()

def nullCtor (   self,
args,
**  kwArgs 
)

Member Data Documentation

◆ notify

notify = directNotify.newCategory('Factory')
static