Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::render3d::LodController Class Reference

Evaluates active LOD policies based on atom count and camera interaction state. More...

#include <LodController.hpp>

Public Member Functions

constexpr LodController () noexcept=default
LodRenderPolicy evaluatePolicy (std::size_t atom_count, bool is_interacting=false) const noexcept
 Evaluates the active rendering policy.
std::size_t highThreshold () const noexcept
std::size_t mediumThreshold () const noexcept
void setHighThreshold (std::size_t threshold) noexcept
void setMediumThreshold (std::size_t threshold) noexcept

Private Attributes

std::size_t high_threshold_ {5000}
std::size_t medium_threshold_ {25000}

Detailed Description

Evaluates active LOD policies based on atom count and camera interaction state.

Constructor & Destructor Documentation

◆ LodController()

correlation::render3d::LodController::LodController ( )
constexprdefaultnoexcept
Here is the call graph for this function:

Member Function Documentation

◆ evaluatePolicy()

LodRenderPolicy correlation::render3d::LodController::evaluatePolicy ( std::size_t atom_count,
bool is_interacting = false ) const
nodiscardnoexcept

Evaluates the active rendering policy.

Parameters
atom_countTotal atom count in current scene.
is_interactingTrue if camera is actively orbiting or panning.
Returns
Computed LodRenderPolicy.
Here is the caller graph for this function:

◆ highThreshold()

std::size_t correlation::render3d::LodController::highThreshold ( ) const
inlinenodiscardnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mediumThreshold()

std::size_t correlation::render3d::LodController::mediumThreshold ( ) const
inlinenodiscardnoexcept

◆ setHighThreshold()

void correlation::render3d::LodController::setHighThreshold ( std::size_t threshold)
inlinenoexcept

◆ setMediumThreshold()

void correlation::render3d::LodController::setMediumThreshold ( std::size_t threshold)
inlinenoexcept

Member Data Documentation

◆ high_threshold_

std::size_t correlation::render3d::LodController::high_threshold_ {5000}
private

◆ medium_threshold_

std::size_t correlation::render3d::LodController::medium_threshold_ {25000}
private

The documentation for this class was generated from the following files: