OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
otb::FragmentShaderRegistry Class Reference

#include <otbFragmentShaderRegistry.h>

+ Inheritance diagram for otb::FragmentShaderRegistry:
+ Collaboration diagram for otb::FragmentShaderRegistry:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef FragmentShaderRegistry Self
 
typedef itk::Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

void ClearShaders ()
 
unsigned int GetShaderProgram (const std::string &name)
 
bool IsShaderRegistered (const std::string &name) const
 
bool LoadShader (const std::string &name)
 
void RegisterShader (const std::string &name, const std::string &source)
 
void UnloadShader ()
 
bool UnregisterShader (const std::string &name)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const char * GetNameOfClass () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer Instance ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 FragmentShaderRegistry ()
 
 ~FragmentShaderRegistry () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Types

typedef std::map< std::string,
std::pair< unsigned int,
unsigned int > > 
ShaderMapType
 

Private Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
 FragmentShaderRegistry (const Self &)
 
void operator= (const Self &)
 

Static Private Member Functions

static Pointer New ()
 

Private Attributes

ShaderMapType m_ShaderMap
 

Static Private Attributes

static Pointer m_Instance
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

Definition at line 30 of file otbFragmentShaderRegistry.h.

Member Typedef Documentation

Definition at line 37 of file otbFragmentShaderRegistry.h.

Definition at line 36 of file otbFragmentShaderRegistry.h.

Definition at line 34 of file otbFragmentShaderRegistry.h.

typedef std::map<std::string, std::pair<unsigned int, unsigned int> > otb::FragmentShaderRegistry::ShaderMapType
private

Definition at line 61 of file otbFragmentShaderRegistry.h.

Definition at line 35 of file otbFragmentShaderRegistry.h.

Constructor & Destructor Documentation

otb::FragmentShaderRegistry::FragmentShaderRegistry ( )
protected
otb::FragmentShaderRegistry::~FragmentShaderRegistry ( )
overrideprotected
otb::FragmentShaderRegistry::FragmentShaderRegistry ( const Self )
private

Member Function Documentation

void otb::FragmentShaderRegistry::ClearShaders ( )
virtual::itk::LightObject::Pointer otb::FragmentShaderRegistry::CreateAnother ( void  ) const
privatevirtual

Reimplemented from itk::Object.

unsigned int otb::FragmentShaderRegistry::GetShaderProgram ( const std::string &  name)
static Pointer otb::FragmentShaderRegistry::Instance ( )
static
bool otb::FragmentShaderRegistry::IsShaderRegistered ( const std::string &  name) const
bool otb::FragmentShaderRegistry::LoadShader ( const std::string &  name)
static Pointer otb::FragmentShaderRegistry::New ( )
staticprivate
void otb::FragmentShaderRegistry::operator= ( const Self )
private
void otb::FragmentShaderRegistry::RegisterShader ( const std::string &  name,
const std::string &  source 
)
void otb::FragmentShaderRegistry::UnloadShader ( )
bool otb::FragmentShaderRegistry::UnregisterShader ( const std::string &  name)

Member Data Documentation

Pointer otb::FragmentShaderRegistry::m_Instance
staticprivate

Definition at line 69 of file otbFragmentShaderRegistry.h.

ShaderMapType otb::FragmentShaderRegistry::m_ShaderMap
private

Definition at line 71 of file otbFragmentShaderRegistry.h.


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