EggBinMaker
from panda3d.egg import EggBinMaker
- class EggBinMaker
Bases:
EggObject
This is a handy class for collecting related nodes together. It is an abstract class; to use it you must subclass off of it. See the somewhat lengthy comment above.
Inheritance diagram
- __init__(*args, **kwargs)
- collapseGroup()
C++ Interface: collapse_group(const EggBinMaker self, const EggGroup group, int bin_number)
- /**
May be overridden in derived classes to specify whether a particular group
node, apparently redundant, may be safely collapsed out.
*/
- collapse_group()
C++ Interface: collapse_group(const EggBinMaker self, const EggGroup group, int bin_number)
- /**
May be overridden in derived classes to specify whether a particular group
node, apparently redundant, may be safely collapsed out.
*/
- getBinName()
C++ Interface: get_bin_name(const EggBinMaker self, int bin_number, const EggNode child)
- /**
May be overridden in derived classes to define a name for each new bin,
based on its bin number, and a sample child.
*/
- getBinNumber()
C++ Interface: get_bin_number(const EggBinMaker self, const EggNode node)
- getClassType()
C++ Interface: get_class_type()
- get_bin_name()
C++ Interface: get_bin_name(const EggBinMaker self, int bin_number, const EggNode child)
- /**
May be overridden in derived classes to define a name for each new bin,
based on its bin number, and a sample child.
*/
- get_bin_number()
C++ Interface: get_bin_number(const EggBinMaker self, const EggNode node)
- get_class_type()
C++ Interface: get_class_type()
- makeBin()
C++ Interface: make_bin(const EggBinMaker self, int bin_number, const EggNode child, EggGroup collapse_from)
- /**
May be overridden in derived classes to construct a new EggBin object (or
some derived class, if needed), and preload some initial data into as
required.
child is an arbitrary child of the bin, and collapse_from is the group the
bin is being collapsed with, if any (implying collapse_group() returned
true), or NULL if not.
*/
- makeBins()
C++ Interface: make_bins(const EggBinMaker self, EggGroupNode root_group)
- /**
The main entry point to EggBinMaker. Walks the egg scene graph beginning
at the indicated root node, and moves all binnable nodes into EggBin
objects. Returns the number of EggBins created.
*/
- make_bin()
C++ Interface: make_bin(const EggBinMaker self, int bin_number, const EggNode child, EggGroup collapse_from)
- /**
May be overridden in derived classes to construct a new EggBin object (or
some derived class, if needed), and preload some initial data into as
required.
child is an arbitrary child of the bin, and collapse_from is the group the
bin is being collapsed with, if any (implying collapse_group() returned
true), or NULL if not.
*/
- make_bins()
C++ Interface: make_bins(const EggBinMaker self, EggGroupNode root_group)
- /**
The main entry point to EggBinMaker. Walks the egg scene graph beginning
at the indicated root node, and moves all binnable nodes into EggBin
objects. Returns the number of EggBins created.
*/
- prepareNode()
C++ Interface: prepare_node(const EggBinMaker self, EggNode node)
- /**
May be overridden in derived classes to perform some setup work as each
node is encountered. This will be called once for each node in the egg
hierarchy.
*/
- prepare_node()
C++ Interface: prepare_node(const EggBinMaker self, EggNode node)
- /**
May be overridden in derived classes to perform some setup work as each
node is encountered. This will be called once for each node in the egg
hierarchy.
*/
- sortsLess()
C++ Interface: sorts_less(const EggBinMaker self, int bin_number, const EggNode a, const EggNode b)
- /**
May be overridden in derived classes to create additional bins within a
particular bin number, based on some arbitrary property of nodes. This
function establishes an arbitrary but fixed ordering between nodes; if two
nodes do not sort to the same position, different bins are created for each
one (with the same bin number on each bin).
*/
- sorts_less()
C++ Interface: sorts_less(const EggBinMaker self, int bin_number, const EggNode a, const EggNode b)
- /**
May be overridden in derived classes to create additional bins within a
particular bin number, based on some arbitrary property of nodes. This
function establishes an arbitrary but fixed ordering between nodes; if two
nodes do not sort to the same position, different bins are created for each
one (with the same bin number on each bin).
*/