Panda3D
Public Member Functions | Public Attributes | List of all members
ObjectPaletteBase Class Reference
Inheritance diagram for ObjectPaletteBase:
ObjectPalette ProtoPaletteBase ProtoPalette

Public Member Functions

def __init__ (self)
 
def add (self, item, parentName=None)
 
def addHidden (self, item)
 
def delete (self, name)
 
def deleteStruct (self, name, deleteItems)
 
def findChildren (self, name)
 
def findItem (self, name)
 
def insertItem (self, item, parentName)
 
def populate (self)
 
def populateSystemObjs (self)
 
def rename (self, oldName, newName)
 

Public Attributes

 data
 
 dataKeys
 
 dataStruct
 
 rootName
 

Detailed Description

Base class for objectPalette

You should write your own ObjectPalette class inheriting this.
Refer ObjectPalette.py for example.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Reimplemented in ObjectPalette, ProtoPalette, and ProtoPaletteBase.

Member Function Documentation

◆ add()

def add (   self,
  item,
  parentName = None 
)

◆ addHidden()

def addHidden (   self,
  item 
)

◆ delete()

def delete (   self,
  name 
)

◆ deleteStruct()

def deleteStruct (   self,
  name,
  deleteItems 
)

◆ findChildren()

def findChildren (   self,
  name 
)

◆ findItem()

def findItem (   self,
  name 
)

◆ insertItem()

def insertItem (   self,
  item,
  parentName 
)
You can insert item to obj palette tree.

'item' is the object to be inserted, it can be either a group or obj.
'parentName' is the name of parent under where this item will be inserted.

◆ populate()

def populate (   self)

Reimplemented in ObjectPalette, and ProtoPaletteBase.

◆ populateSystemObjs()

def populateSystemObjs (   self)

◆ rename()

def rename (   self,
  oldName,
  newName 
)

Member Data Documentation

◆ data

data

◆ dataKeys

dataKeys

◆ dataStruct

dataStruct

◆ rootName

rootName