OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
osgUtil::ReflectionMapGenerator Class Reference

#include <ReflectionMapGenerator.h>

Inheritance diagram for osgUtil::ReflectionMapGenerator:
Inheritance graph
[legend]
Collaboration diagram for osgUtil::ReflectionMapGenerator:
Collaboration graph
[legend]

Public Member Functions

 ReflectionMapGenerator (int texture_size=64)
 
 ReflectionMapGenerator (const ReflectionMapGenerator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
- Public Member Functions inherited from osgUtil::CubeMapGenerator
 CubeMapGenerator (int texture_size=64)
 
 CubeMapGenerator (const CubeMapGenerator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
osg::ImagegetImage (osg::TextureCubeMap::Face face)
 
const osg::ImagegetImage (osg::TextureCubeMap::Face face) const
 
void generateMap (bool use_osg_system=true)
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Member Functions

virtual ~ReflectionMapGenerator ()
 
ReflectionMapGeneratoroperator= (const ReflectionMapGenerator &)
 
virtual osg::Vec4 compute_color (const osg::Vec3 &R) const
 
- Protected Member Functions inherited from osgUtil::CubeMapGenerator
virtual ~CubeMapGenerator ()
 
CubeMapGeneratoroperator= (const CubeMapGenerator &)
 
void set_pixel (int index, int c, int r, const osg::Vec4 &color)
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Static Protected Member Functions inherited from osgUtil::CubeMapGenerator
static osg::Vec4 vector_to_color (const osg::Vec3 &vec)
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

This is the most simple cube map generator. It performs a direct association between reflection vector and RGBA color (C = R).

Definition at line 24 of file ReflectionMapGenerator.h.

Constructor & Destructor Documentation

osgUtil::ReflectionMapGenerator::ReflectionMapGenerator ( int  texture_size = 64)
inline

Definition at line 38 of file ReflectionMapGenerator.h.

osgUtil::ReflectionMapGenerator::ReflectionMapGenerator ( const ReflectionMapGenerator copy,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
inline

Definition at line 43 of file ReflectionMapGenerator.h.

virtual osgUtil::ReflectionMapGenerator::~ReflectionMapGenerator ( )
inlineprotectedvirtual

Definition at line 30 of file ReflectionMapGenerator.h.

Member Function Documentation

osg::Vec4 osgUtil::ReflectionMapGenerator::compute_color ( const osg::Vec3 R) const
inlineprotectedvirtual

Override this method to define how colors are computed. The parameter R is the reflection vector, pointing from the center of the cube. The return value should be the RGBA color associated with that reflection ray.

Implements osgUtil::CubeMapGenerator.

Definition at line 48 of file ReflectionMapGenerator.h.

Here is the call graph for this function:

ReflectionMapGenerator& osgUtil::ReflectionMapGenerator::operator= ( const ReflectionMapGenerator )
inlineprotected

Definition at line 31 of file ReflectionMapGenerator.h.


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