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

#include <PixelBufferX11.h>

Inheritance diagram for osgViewer::PixelBufferX11:
Inheritance graph
[legend]
Collaboration diagram for osgViewer::PixelBufferX11:
Collaboration graph
[legend]

Public Member Functions

 PixelBufferX11 (osg::GraphicsContext::Traits *traits)
 
virtual bool isSameKindAs (const Object *object) const
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
virtual bool valid () const
 
virtual bool realizeImplementation ()
 
virtual bool isRealizedImplementation () const
 
virtual void closeImplementation ()
 
virtual bool makeCurrentImplementation ()
 
virtual bool makeContextCurrentImplementation (osg::GraphicsContext *readContext)
 
virtual bool releaseContextImplementation ()
 
virtual void bindPBufferToTextureImplementation (GLenum buffer)
 
virtual void swapBuffersImplementation ()
 
PbuffergetPbuffer ()
 
- Public Member Functions inherited from osg::GraphicsContext
void add (Operation *operation)
 
void remove (Operation *operation)
 
void remove (const std::string &name)
 
void removeAllOperations ()
 
virtual void runOperations ()
 
GraphicsOperationQueuegetOperationsQueue ()
 
OpenThreads::MutexgetOperationsMutex ()
 
osg::RefBlockgetOperationsBlock ()
 
OperationgetCurrentOperation ()
 
const TraitsgetTraits () const
 
void setState (State *state)
 
StategetState ()
 
const StategetState () const
 
void setClearColor (const Vec4 &color)
 
const Vec4getClearColor () const
 
void setClearMask (GLbitfield mask)
 
GLbitfield getClearMask () const
 
virtual void clear ()
 
double getTimeSinceLastClear () const
 
bool realize ()
 
void close (bool callCloseImplementation=true)
 
void swapBuffers ()
 
bool isRealized () const
 
bool makeCurrent ()
 
bool makeContextCurrent (GraphicsContext *readContext)
 
bool releaseContext ()
 
bool isCurrent () const
 
void bindPBufferToTexture (GLenum buffer)
 
void createGraphicsThread ()
 
void setGraphicsThread (GraphicsThread *gt)
 
GraphicsThreadgetGraphicsThread ()
 
const GraphicsThreadgetGraphicsThread () const
 
void setSwapCallback (SwapCallback *rc)
 
SwapCallbackgetSwapCallback ()
 
const SwapCallbackgetSwapCallback () const
 
void swapBuffersCallbackOrImplemenation ()
 
void resized (int x, int y, int width, int height)
 
void setResizedCallback (ResizedCallback *rc)
 
ResizedCallbackgetResizedCallback ()
 
const ResizedCallbackgetResizedCallback () const
 
virtual void resizedImplementation (int x, int y, int width, int height)
 
CamerasgetCameras ()
 
const CamerasgetCameras () const
 
void setDefaultFboId (GLuint i)
 
GLuint getDefaultFboId () const
 
virtual bool isSameKindAs (const Object *object) const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
std::string getCompoundClassName () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
virtual void resizeGLObjectBuffers (unsigned int)
 
virtual void releaseGLObjects (osg::State *=0) const
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
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
 
- Public Member Functions inherited from osgViewer::GraphicsHandleX11
 GraphicsHandleX11 ()
 
void setDisplay (Display *display)
 
Display * getDisplay () const
 
void setContext (Context context)
 
Context getContext () const
 

Protected Member Functions

 ~PixelBufferX11 ()
 
bool createVisualInfo ()
 
void init ()
 
- Protected Member Functions inherited from osg::GraphicsContext
 GraphicsContext ()
 
 GraphicsContext (const GraphicsContext &, const osg::CopyOp &)
 
virtual ~GraphicsContext ()
 
virtual ObjectcloneType () const
 
virtual Objectclone (const CopyOp &) const
 
void addCamera (osg::Camera *camera)
 
void removeCamera (osg::Camera *camera)
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

bool _valid
 
Pbuffer _pbuffer
 
XVisualInfo * _visualInfo
 
bool _initialized
 
bool _realized
 
bool _useGLX1_3
 
bool _useSGIX
 
- Protected Attributes inherited from osg::GraphicsContext
Cameras _cameras
 
ref_ptr< Traits_traits
 
ref_ptr< State_state
 
Vec4 _clearColor
 
GLbitfield _clearMask
 
OpenThreads::Thread_threadOfLastMakeCurrent
 
OpenThreads::Mutex _operationsMutex
 
osg::ref_ptr< osg::RefBlock_operationsBlock
 
GraphicsOperationQueue _operations
 
osg::ref_ptr< Operation_currentOperation
 
ref_ptr< GraphicsThread_graphicsThread
 
ref_ptr< ResizedCallback_resizedCallback
 
ref_ptr< SwapCallback_swapCallback
 
Timer_t _lastClearTick
 
GLuint _defaultFboId
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 
- Protected Attributes inherited from osgViewer::GraphicsHandleX11
Display * _display
 
Context _context
 

Additional Inherited Members

- Public Types inherited from osg::GraphicsContext
typedef std::vector
< ScreenSettings
ScreenSettingsList
 
typedef std::vector
< GraphicsContext * > 
GraphicsContexts
 
typedef std::list< ref_ptr
< Operation > > 
GraphicsOperationQueue
 
typedef std::list< osg::Camera * > Cameras
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Public Types inherited from osgViewer::GraphicsHandleX11
typedef GLXContext Context
 
typedef GLXPbuffer Pbuffer
 
- Static Public Member Functions inherited from osg::GraphicsContext
static void setWindowingSystemInterface (WindowingSystemInterface *wsInterface)
 
static WindowingSystemInterfacegetWindowingSystemInterface ()
 
static GraphicsContextcreateGraphicsContext (Traits *traits)
 
static unsigned int createNewContextID ()
 
static unsigned int getMaxContextID ()
 
static void incrementContextIDUsageCount (unsigned int contextID)
 
static void decrementContextIDUsageCount (unsigned int contextID)
 
static GraphicsContexts getAllRegisteredGraphicsContexts ()
 
static GraphicsContexts getRegisteredGraphicsContexts (unsigned int contextID)
 
static void setCompileContext (unsigned int contextID, GraphicsContext *gc)
 
static GraphicsContextgetOrCreateCompileContext (unsigned int contextID)
 
static GraphicsContextgetCompileContext (unsigned int contextID)
 
- 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 osg::GraphicsContext
static void registerGraphicsContext (GraphicsContext *gc)
 
static void unregisterGraphicsContext (GraphicsContext *gc)
 

Detailed Description

Definition at line 28 of file PixelBufferX11.h.

Constructor & Destructor Documentation

osgViewer::PixelBufferX11::PixelBufferX11 ( osg::GraphicsContext::Traits traits)
osgViewer::PixelBufferX11::~PixelBufferX11 ( )
protected

Member Function Documentation

virtual void osgViewer::PixelBufferX11::bindPBufferToTextureImplementation ( GLenum  buffer)
virtual

Bind the graphics context to associated texture implementation.

Implements osg::GraphicsContext.

virtual const char* osgViewer::PixelBufferX11::className ( ) const
inlinevirtual

return the name of the object's class type. Must be defined by derived classes.

Reimplemented from osg::GraphicsContext.

Definition at line 36 of file PixelBufferX11.h.

virtual void osgViewer::PixelBufferX11::closeImplementation ( )
virtual

Close the graphics context.

Implements osg::GraphicsContext.

bool osgViewer::PixelBufferX11::createVisualInfo ( )
protected
Pbuffer& osgViewer::PixelBufferX11::getPbuffer ( )
inline

Definition at line 68 of file PixelBufferX11.h.

void osgViewer::PixelBufferX11::init ( )
protected
virtual bool osgViewer::PixelBufferX11::isRealizedImplementation ( ) const
inlinevirtual

Return true if the graphics context has been realised and is ready to use.

Implements osg::GraphicsContext.

Definition at line 44 of file PixelBufferX11.h.

virtual bool osgViewer::PixelBufferX11::isSameKindAs ( const Object object) const
inlinevirtual

Definition at line 34 of file PixelBufferX11.h.

virtual const char* osgViewer::PixelBufferX11::libraryName ( ) const
inlinevirtual

return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.

Reimplemented from osg::GraphicsContext.

Definition at line 35 of file PixelBufferX11.h.

virtual bool osgViewer::PixelBufferX11::makeContextCurrentImplementation ( osg::GraphicsContext readContext)
virtual

Make this graphics context current with specified read context implementation.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::makeCurrentImplementation ( )
virtual

Make this graphics context current.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::realizeImplementation ( )
virtual

Realise the GraphicsContext.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::releaseContextImplementation ( )
virtual

Release the graphics context.

Implements osg::GraphicsContext.

virtual void osgViewer::PixelBufferX11::swapBuffersImplementation ( )
virtual

Swap the front and back buffers.

Implements osg::GraphicsContext.

virtual bool osgViewer::PixelBufferX11::valid ( ) const
inlinevirtual

Return whether a valid and usable GraphicsContext has been created.

Implements osg::GraphicsContext.

Definition at line 38 of file PixelBufferX11.h.

Member Data Documentation

bool osgViewer::PixelBufferX11::_initialized
protected

Definition at line 82 of file PixelBufferX11.h.

Pbuffer osgViewer::PixelBufferX11::_pbuffer
protected

Definition at line 79 of file PixelBufferX11.h.

bool osgViewer::PixelBufferX11::_realized
protected

Definition at line 83 of file PixelBufferX11.h.

bool osgViewer::PixelBufferX11::_useGLX1_3
protected

Definition at line 85 of file PixelBufferX11.h.

bool osgViewer::PixelBufferX11::_useSGIX
protected

Definition at line 86 of file PixelBufferX11.h.

bool osgViewer::PixelBufferX11::_valid
protected

Definition at line 78 of file PixelBufferX11.h.

XVisualInfo* osgViewer::PixelBufferX11::_visualInfo
protected

Definition at line 80 of file PixelBufferX11.h.


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