LightSourceManager::User Class Reference

Data about a light source user (object, priority and callback). More...

#include <LightSourceManager.h>

List of all members.

Public Member Functions

 User ()
bool check ()
 Checks if the user object is not empty, and cleans up what's necessary if not.
void reset ()
bool operator< (const User &u) const
bool operator== (const User &u) const
Useroperator= (const User &u)

Public Attributes

osg::observer_ptr
< osg::Referenced > 
pUserObject
 User object (observer_ptr allows the object to be safely deleted outside).
Priority priority
osg::ref_ptr
< LightSourceUserCallback
pUserCB
 Callback when source will be given to another user object or when a source will be given to the user object.


Detailed Description

Data about a light source user (object, priority and callback).

Definition at line 124 of file LightSourceManager.h.


Constructor & Destructor Documentation

LightSourceManager::User::User (  )  [inline]

Definition at line 126 of file LightSourceManager.h.


Member Function Documentation

bool LightSourceManager::User::check (  )  [inline]

Checks if the user object is not empty, and cleans up what's necessary if not.

Definition at line 134 of file LightSourceManager.h.

Referenced by LightSourceManager::checkForAvailableLights(), LightSourceManager::getUser(), LightSourceManager::remove(), LightSourceManager::request(), and LightSourceManager::unManage().

bool LightSourceManager::User::operator< ( const User u  )  const [inline]

Definition at line 137 of file LightSourceManager.h.

References priority.

User& LightSourceManager::User::operator= ( const User u  )  [inline]

Definition at line 139 of file LightSourceManager.h.

References priority, pUserCB, and pUserObject.

bool LightSourceManager::User::operator== ( const User u  )  const [inline]

Definition at line 138 of file LightSourceManager.h.

References priority.

void LightSourceManager::User::reset (  )  [inline]


Member Data Documentation

Callback when source will be given to another user object or when a source will be given to the user object.

Definition at line 131 of file LightSourceManager.h.

Referenced by LightSourceManager::doEnqueue(), operator=(), LightSourceManager::request(), and LightSourceManager::unManage().

osg::observer_ptr<osg::Referenced> LightSourceManager::User::pUserObject

User object (observer_ptr allows the object to be safely deleted outside).

Definition at line 129 of file LightSourceManager.h.

Referenced by LightSourceManager::doEnqueue(), LightSourceManager::getUser(), operator=(), LightSourceManager::remove(), LightSourceManager::request(), and LightSourceManager::unManage().


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

Generated on Sun Jan 17 11:39:28 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9