CullBinManager

Inheritance:

Methods of CullBinManager:

addBin
int CullBinManager::add_bin(string const &name, CullBinManager::BinType type, int sort);

Description: Defines a new bin with the indicated name, and returns the new bin_index. If there is already a bin with the same name returns its bin_index if it had the same properties; otherwise, reports an error and returns -1.

findBin
int CullBinManager::find_bin(string const &name) const;

Description: Returns the bin_index associated with the bin of the given name, or -1 if no bin has that name.

getBin
int CullBinManager::get_bin(int n) const;

Description: Returns the bin_index of the nth bin in the set, where n is a number between 0 and get_num_bins(). This returns the list of bin_index numbers, in sorted order (that is, in the order in which the bins should be rendered).

getBinName
string CullBinManager::get_bin_name(int bin_index) const;

Description: Returns the name of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()). The bin's name may not be changed during the life of the bin.

getBinSort
int CullBinManager::get_bin_sort(int bin_index) const;

Description: Returns the sort order of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
The bins are rendered in increasing order by their sort order; this number may be changed from time to time to reorder the bins.

getBinType
CullBinManager::BinType CullBinManager::get_bin_type(int bin_index) const;

Description: Returns the type of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()). The bin's type may not be changed during the life of the bin.

getGlobalPtr
static CullBinManager *CullBinManager::get_global_ptr(void);

Description: Returns the pointer to the global CullBinManager object.

getNumBins
int CullBinManager::get_num_bins(void) const;

Description: Returns the number of bins in the world.

removeBin
void CullBinManager::remove_bin(int bin_index);

Description: Permanently removes the indicated bin. This operation is not protected from the pipeline and will disturb whatever is currently rendering in draw. You should not call this during the normal course of rendering a frame; it is intended only as an aid to development, to allow the developer to interactively fiddle with the set of bins.

setBinSort
void CullBinManager::set_bin_sort(int bin_index, int sort);

Description: Changes the sort order of the bin with the indicated bin_index (where bin_index was retrieved by get_bin() or find_bin()).
The bins are rendered in increasing order by their sort order; this number may be changed from time to time to reorder the bins.

write
void CullBinManager::write(ostream &out) const;

Description: