This is a global object that maintains the collection of named CullBins in the world.
More...
Classes |
| class | BinDefinition |
| class | SortBins |
Public Types |
|
typedef CullBin * | BinConstructor (const string &name, GraphicsStateGuardianBase *gsg, const PStatCollector &draw_region_pcollector) |
|
typedef CullBin::BinType | BinType |
Public Member Functions |
| int | add_bin (const string &name, BinType type, int sort) |
| | Defines a new bin with the indicated name, and returns the new bin_index.
|
| int | find_bin (const string &name) const |
| | Returns the bin_index associated with the bin of the given name, or -1 if no bin has that name.
|
| int | get_bin (int n) const |
| | Returns the bin_index of the nth bin in the set, where n is a number between 0 and get_num_bins().
|
| bool | get_bin_active (int bin_index) const |
| | Returns the active flag of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
|
| bool | get_bin_active (const string &name) const |
| | Returns the active flag of the bin with the indicated name.
|
| string | get_bin_name (int bin_index) const |
| | Returns the name of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
|
| int | get_bin_sort (int bin_index) const |
| | Returns the sort order of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
|
| int | get_bin_sort (const string &name) const |
| | Returns the sort order of the bin with the indicated name.
|
| BinType | get_bin_type (int bin_index) const |
| | Returns the type of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
|
| BinType | get_bin_type (const string &name) const |
| | Returns the type of the bin with the indicated name.
|
| int | get_num_bins () const |
| | Returns the number of bins in the world.
|
|
| MAKE_SEQ (get_bins, get_num_bins, get_bin) |
|
| PT (CullBin) make_new_bin(int bin_index |
| void | register_bin_type (BinType type, BinConstructor *constructor) |
| | Intended to be called at startup type by each CullBin type, to register the constructor for each type.
|
| void | remove_bin (int bin_index) |
| | Permanently removes the indicated bin.
|
| void | set_bin_active (const string &name, bool active) |
| | Changes the active flag of the bin with the indicated name.
|
| void | set_bin_active (int bin_index, bool active) |
| | Changes the active flag of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
|
| void | set_bin_sort (const string &name, int sort) |
| | Changes the sort order of the bin with the indicated name.
|
| void | set_bin_sort (int bin_index, int sort) |
| | Changes the sort order of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
|
| void | set_bin_type (int bin_index, BinType type) |
| | Changes the type of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
|
| void | set_bin_type (const string &name, BinType type) |
| | Changes the type of the bin with the indicated name.
|
|
void | write (ostream &out) const |
Static Public Member Functions |
| static CullBinManager * | get_global_ptr () |
| | Returns the pointer to the global CullBinManager object.
|
Public Attributes |
GraphicsStateGuardianBase
const PStatCollector & | draw_region_pcollector |
|
GraphicsStateGuardianBase * | gsg |
Protected Member Functions |
| | CullBinManager () |
| | The constructor is not intended to be called directly; there is only one CullBinManager and it constructs itself.
|
| | ~CullBinManager () |
| | Don't call the destructor.
|
Friends |
|
class | SortBins |
This is a global object that maintains the collection of named CullBins in the world.
Definition at line 35 of file cullBinManager.h.