#include <HConstantFrameRate.h>
Public Member Functions | |
ConstFRType | GetType () |
bool | GetUseLod () const |
HFrExtent (int min, int max) | |
HFrExtent () | |
void | Set (HConstantFrameRate *pCfr, int SimpLevel) |
void | SetMultiplier (int mp) |
void | SetUseLod (bool ul) |
Static Public Member Functions | |
static HConstFRSimpType * | Create (int min, int max) |
Protected Attributes | |
bool | m_bUseLOD |
int | m_Multiplier |
HFrExtent::HFrExtent | ( | ) | [inline] |
The default constructor.
HFrExtent::HFrExtent | ( | int | min, | |
int | max | |||
) | [inline] |
The constructor that allows you the set the minimum and maximum simplification levels.
min | The minimum simplification level. | |
max | The maximum simplification level. |
static HConstFRSimpType* HFrExtent::Create | ( | int | min, | |
int | max | |||
) | [inline, static] |
Create a new simplification type object. Avoids object ownership problems.
min | lowest simplification level | |
max | highest simplification level |
ConstFRType HFrExtent::GetType | ( | ) | [inline, virtual] |
Implements HConstFRSimpType.
References ConstFRExtentType.
void HFrExtent::Set | ( | HConstantFrameRate * | pCfr, | |
int | SimpLevel | |||
) | [virtual] |
Set rendering options based on simplification type.
pCfr | A pointer to a HConstantFrameRate Object. | |
SimpLevel | Simplification level for the current type |
Implements HConstFRSimpType.
void HFrExtent::SetMultiplier | ( | int | mp | ) | [inline] |
This method sets the multiplier. The multiplier is use to set the maximum extent for the culling option of Set_Heuristics. When the Set method is called, the maximum extent option will be set with a value calculated from the simplication level and the multiplier.
mp | The multiplier used in the calculation to set the maximum extent. |
void HFrExtent::SetUseLod | ( | bool | ul | ) | [inline] |
This methods enables/disables the use of LOD options for rendering.
ul | Pass true if you want to set the LOD options to be set to 15 and 0% for threshold and the fallback to be set to coarsest. Pass false if you don't want to use set any LOD options. |