OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::LodStrategyManager Class Reference

Manager for LOD strategies. More...

#include <OgreLodStrategyManager.h>

+ Inheritance diagram for Ogre::LodStrategyManager:

Public Member Functions

 LodStrategyManager ()
 Default constructor. More...
 
 ~LodStrategyManager ()
 Destructor. More...
 
void addStrategy (LodStrategy *strategy)
 Add a strategy to the manager. More...
 
LodStrategygetDefaultStrategy ()
 Get the current default strategy. More...
 
MapIterator< StrategyMap > getIterator ()
 Get an iterator for all contained strategies. More...
 
LodStrategygetStrategy (const String &name)
 Get the strategy with the specified name. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void removeAllStrategies ()
 Remove and delete all strategies from the manager. More...
 
LodStrategyremoveStrategy (const String &name)
 Remove a strategy from the manager with a specified name. More...
 
void setDefaultStrategy (const String &name)
 Set the default strategy by name. More...
 
void setDefaultStrategy (LodStrategy *strategy)
 Set the default strategy. More...
 

Static Public Member Functions

static LodStrategyManagergetSingleton ()
 Override standard Singleton retrieval. More...
 
static LodStrategyManagergetSingletonPtr ()
 Override standard Singleton retrieval. More...
 

Detailed Description

Manager for LOD strategies.

Constructor & Destructor Documentation

◆ LodStrategyManager()

Ogre::LodStrategyManager::LodStrategyManager ( )

Default constructor.

◆ ~LodStrategyManager()

Ogre::LodStrategyManager::~LodStrategyManager ( )

Destructor.

Member Function Documentation

◆ addStrategy()

void Ogre::LodStrategyManager::addStrategy ( LodStrategy strategy)

Add a strategy to the manager.

◆ getDefaultStrategy()

LodStrategy* Ogre::LodStrategyManager::getDefaultStrategy ( )

Get the current default strategy.

◆ getIterator()

MapIterator<StrategyMap> Ogre::LodStrategyManager::getIterator ( )

Get an iterator for all contained strategies.

◆ getSingleton()

static LodStrategyManager& Ogre::LodStrategyManager::getSingleton ( )
static

Override standard Singleton retrieval.

Remarks
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.

◆ getSingletonPtr()

static LodStrategyManager* Ogre::LodStrategyManager::getSingletonPtr ( )
static

Override standard Singleton retrieval.

Remarks
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.

◆ getStrategy()

LodStrategy* Ogre::LodStrategyManager::getStrategy ( const String name)

Get the strategy with the specified name.

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

◆ removeAllStrategies()

void Ogre::LodStrategyManager::removeAllStrategies ( )

Remove and delete all strategies from the manager.

Remarks
All strategies are deleted. If finer control is required over strategy destruction, use removeStrategy.

◆ removeStrategy()

LodStrategy* Ogre::LodStrategyManager::removeStrategy ( const String name)

Remove a strategy from the manager with a specified name.

Remarks
The removed strategy is returned so the user can control how it is destroyed.

◆ setDefaultStrategy() [1/2]

void Ogre::LodStrategyManager::setDefaultStrategy ( const String name)

Set the default strategy by name.

◆ setDefaultStrategy() [2/2]

void Ogre::LodStrategyManager::setDefaultStrategy ( LodStrategy strategy)

Set the default strategy.


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