openscenegraph
Public Member Functions | List of all members
osgViewer::GraphicsWindowEmbedded Class Reference
Inheritance diagram for osgViewer::GraphicsWindowEmbedded:
osgViewer::GraphicsWindow osg::GraphicsContext osgGA::GUIActionAdapter osg::Object osg::Referenced

Public Member Functions

 GraphicsWindowEmbedded (osg::GraphicsContext::Traits *traits=0)
 GraphicsWindowEmbedded (int x, int y, int width, int height)
virtual bool isSameKindAs (const Object *object) const
virtual const char * libraryName () const
virtual const char * className () const
void init ()
virtual bool valid () const
virtual bool realizeImplementation ()
virtual bool isRealizedImplementation () const
virtual void closeImplementation ()
virtual bool makeCurrentImplementation ()
virtual bool releaseContextImplementation ()
virtual void swapBuffersImplementation ()
virtual void grabFocus ()
virtual void grabFocusIfPointerInWindow ()
virtual void raiseWindow ()
- Public Member Functions inherited from osgViewer::GraphicsWindow
 GraphicsWindow ()
void setEventQueue (osgGA::EventQueue *eventQueue)
osgGA::EventQueuegetEventQueue ()
const osgGA::EventQueuegetEventQueue () const
virtual void checkEvents ()
void setWindowRectangle (int x, int y, int width, int height)
virtual bool setWindowRectangleImplementation (int, int, int, int)
virtual void getWindowRectangle (int &x, int &y, int &width, int &height)
void setWindowDecoration (bool flag)
virtual bool setWindowDecorationImplementation (bool)
virtual bool getWindowDecoration () const
virtual void setWindowName (const std::string &)
virtual std::string getWindowName ()
virtual void useCursor (bool cursorOn)
virtual void setCursor (MouseCursor)
virtual void setSyncToVBlank (bool on)
bool getSyncToVBlank () const
virtual void setSwapGroup (bool on, GLuint group, GLuint barrier)
void getSwapGroup (bool &on, GLuint &group, GLuint &barrier) const
virtual bool makeContextCurrentImplementation (GraphicsContext *)
virtual void bindPBufferToTextureImplementation (GLenum)
void getViews (Views &views)
virtual void requestRedraw ()
virtual void requestContinuousUpdate (bool=true)
virtual void requestWarpPointer (float, float)
- Public Member Functions inherited from osg::GraphicsContext
void add (Operation *operation)
void remove (Operation *operation)
void remove (const std::string &name)
void removeAllOperations ()
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
virtual bool makeContextCurrentImplementation (GraphicsContext *readContext)=0
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)
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
- 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 osgGA::GUIActionAdapter
virtual ~GUIActionAdapter ()
virtual osg::ViewasView ()

Additional Inherited Members

- Public Types inherited from osgViewer::GraphicsWindow
enum  MouseCursor {
  InheritCursor, NoCursor, RightArrowCursor, LeftArrowCursor,
  InfoCursor, DestroyCursor, HelpCursor, CycleCursor,
  SprayCursor, WaitCursor, TextCursor, CrosshairCursor,
  HandCursor, UpDownCursor, LeftRightCursor, TopSideCursor,
  BottomSideCursor, LeftSideCursor, RightSideCursor, TopLeftCorner,
  TopRightCorner, BottomRightCorner, BottomLeftCorner
}
typedef std::list
< osgViewer::View * > 
Views
- 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)
- 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)
- Static Protected Member Functions inherited from osg::GraphicsContext
static void registerGraphicsContext (GraphicsContext *gc)
static void unregisterGraphicsContext (GraphicsContext *gc)
- Protected Attributes inherited from osgViewer::GraphicsWindow
osg::ref_ptr< osgGA::EventQueue_eventQueue

Constructor & Destructor Documentation

osgViewer::GraphicsWindowEmbedded::GraphicsWindowEmbedded ( osg::GraphicsContext::Traits traits = 0)
inline
osgViewer::GraphicsWindowEmbedded::GraphicsWindowEmbedded ( int  x,
int  y,
int  width,
int  height 
)
inline

Member Function Documentation

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

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

Reimplemented from osgViewer::GraphicsWindow.

virtual void osgViewer::GraphicsWindowEmbedded::closeImplementation ( )
inlinevirtual

Close the graphics context implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Reimplemented from osgViewer::GraphicsWindow.

virtual void osgViewer::GraphicsWindowEmbedded::grabFocus ( )
inlinevirtual

Get focus.

Reimplemented from osgViewer::GraphicsWindow.

virtual void osgViewer::GraphicsWindowEmbedded::grabFocusIfPointerInWindow ( )
inlinevirtual

Get focus on if the pointer is in this window.

Reimplemented from osgViewer::GraphicsWindow.

void osgViewer::GraphicsWindowEmbedded::init ( )
inline
virtual bool osgViewer::GraphicsWindowEmbedded::isRealizedImplementation ( ) const
inlinevirtual

Return true if the graphics context has been realized, and is ready to use, implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Reimplemented from osgViewer::GraphicsWindow.

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

Reimplemented from osgViewer::GraphicsWindow.

virtual const char* osgViewer::GraphicsWindowEmbedded::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 osgViewer::GraphicsWindow.

virtual bool osgViewer::GraphicsWindowEmbedded::makeCurrentImplementation ( )
inlinevirtual

Make this graphics context current implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Reimplemented from osgViewer::GraphicsWindow.

virtual void osgViewer::GraphicsWindowEmbedded::raiseWindow ( )
inlinevirtual

Raise the window to the top.

Reimplemented from osgViewer::GraphicsWindow.

virtual bool osgViewer::GraphicsWindowEmbedded::realizeImplementation ( )
inlinevirtual

Realize the GraphicsContext implementation, Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Reimplemented from osgViewer::GraphicsWindow.

virtual bool osgViewer::GraphicsWindowEmbedded::releaseContextImplementation ( )
inlinevirtual

Release the graphics context.

Reimplemented from osgViewer::GraphicsWindow.

virtual void osgViewer::GraphicsWindowEmbedded::swapBuffersImplementation ( )
inlinevirtual

Swap the front and back buffers implementation. Pure virtual - must be implemented by concrete implementations of GraphicsContext.

Reimplemented from osgViewer::GraphicsWindow.

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

Return whether a valid and usable GraphicsContext has been created.

Reimplemented from osgViewer::GraphicsWindow.

Referenced by init().


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