osgEarth 2.1.1
Public Member Functions | Private Attributes

osgEarth::Features::OptimizerHints Class Reference

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

OptimizerHints::OptimizerHints ( )

Constructs a empty hints object.

Definition at line 25 of file OptimizerHints.cpp.

{
    included = 0;
    excluded = 0;
}
OptimizerHints::OptimizerHints ( const OptimizerHints rhs)

Copy constructor.

Definition at line 31 of file OptimizerHints.cpp.

{
    included = rhs.included;
    excluded = rhs.excluded;
}

Member Function Documentation

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;
}

Member Data Documentation

Definition at line 71 of file OptimizerHints.

Definition at line 70 of file OptimizerHints.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines