osgEarth 2.1.1
|
Public Member Functions | |
OptimizerHints () | |
OptimizerHints (const OptimizerHints &rhs) | |
void | include (osgUtil::Optimizer::OptimizationOptions options) |
void | exclude (osgUtil::Optimizer::OptimizationOptions options) |
osgUtil::Optimizer::OptimizationOptions | getIncludedOptions () const |
osgUtil::Optimizer::OptimizationOptions | getExcludedOptions () const |
Private Attributes | |
int | included |
int | excluded |
A collection of hints that tells the osgUtil::Optimizer to expressly include or exclude certain optimization options.
Filters that do their own optimization may wish to instruct the general OSG optimizer to include or exclude certain optimization techniques. The FilterContext carries an OptimizerHints object that can be used for this purpose.
Definition at line 36 of file OptimizerHints.
OptimizerHints::OptimizerHints | ( | ) |
Constructs a empty hints object.
Definition at line 25 of file OptimizerHints.cpp.
OptimizerHints::OptimizerHints | ( | const OptimizerHints & | rhs | ) |
void OptimizerHints::exclude | ( | osgUtil::Optimizer::OptimizationOptions | options | ) |
Adds optimizer options that the general optimizer should NOT use.
Definition at line 44 of file OptimizerHints.cpp.
{ excluded |= (int)value; }
osgUtil::Optimizer::OptimizationOptions OptimizerHints::getExcludedOptions | ( | ) | const |
Gets the mask of options that the optimizer should expressly exclude.
Definition at line 56 of file OptimizerHints.cpp.
{ return (osgUtil::Optimizer::OptimizationOptions)excluded; }
osgUtil::Optimizer::OptimizationOptions OptimizerHints::getIncludedOptions | ( | ) | const |
Gets the mask of options that the optimzer should expressly include.
Definition at line 50 of file OptimizerHints.cpp.
{ return (osgUtil::Optimizer::OptimizationOptions)included; }
void OptimizerHints::include | ( | osgUtil::Optimizer::OptimizationOptions | options | ) |
Adds optimizer options that the general optimizer should use.
Definition at line 38 of file OptimizerHints.cpp.
{ included |= (int)value; }
int osgEarth::Features::OptimizerHints::excluded [private] |
Definition at line 71 of file OptimizerHints.
int osgEarth::Features::OptimizerHints::included [private] |
Definition at line 70 of file OptimizerHints.