#include <OSGQTWindowBase.h>
Inheritance diagram for osg::QTWindowBase:

Extension handling | |
| bool | hasExtension (UInt32 id) |
| bool | hasExtension (const Char8 *s) |
| void * | getFunction (UInt32 id) |
| void * | getFunctionNoCheck (UInt32 id) |
| void | dumpExtensions (void) |
| GLExtensionFunction | getFunctionByName (const Char8 *s) |
| Real32 | getConstantValue (GLenum val) |
| const Vec2f & | getConstantValuev (GLenum val) |
| const std::vector< std::string > & | getRegisteredFunctions (void) |
| const std::vector< std::string > & | getExtensions (void) |
| const std::vector< std::string > & | getIgnoredExtensions (void) |
| *static void | setGLLibraryName (const Char8 *s) |
| static Int32 | getExtensionId (const Char8 *s) |
| static bool | hasCommonExtension (UInt32 id) |
| static const std::vector< std::string > & | getRegisteredExtensions (void) |
GL object handling | |
| *void | validateGLObject (UInt32 id) |
| void | validateAllGLObjects (void) |
| GLObjectStatusE | getGLObjectStatus (UInt32 id) |
| void | setGLObjectId (UInt32 id, UInt32 id2) |
| UInt32 | getGLObjectId (UInt32 id) |
| static void | refreshGLObject (UInt32 id) |
| static void | reinitializeGLObject (UInt32 id) |
| static void | destroyGLObject (UInt32 id, UInt32 num=1) |
| static void | unpackIdStatus (UInt32 idstatus, UInt32 &id, GLObjectStatusE &status) |
GL object handling | |
| void | doInitRegisterGLObject (UInt32 id, UInt32 num) |
| *static void | initRegisterGLObject (UInt32 id, UInt32 num) |
| static UInt32 | packIdStatus (UInt32 id, GLObjectStatusE status) |
Public Types | |
| enum | { GlWidgetFieldId = Inherited::NextFieldId, NextFieldId = GlWidgetFieldId + 1 } |
| typedef XWindowPtr | Ptr |
| typedef ArgsCollector< UInt32 > | GLObjectFunctorArgs |
| typedef TypedVoidFunctor2Base< PtrCallArg< Window >, GLObjectFunctorArgs > | GLObjectFunctor |
| typedef void(* | GLExtensionFunction )(void) |
| enum | GLObjectStatusE { notused = 1, initialize, reinitialize, initialized, needrefresh, destroy, finaldestroy } |
| enum | { statusShift = 3, statusMask = 7 } |
Public Member Functions | |
Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFOSGQGLWidgetP * | getSFGlWidget (void) |
| OSGQGLWidgetP & | getGlWidget (void) |
| const OSGQGLWidgetP & | getGlWidget (void) const |
Field Set | |
| *void | setGlWidget (const OSGQGLWidgetP &value) |
Sync | |
| *virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Binary Access | |
| *virtual UInt32 | getBinSize (const BitVector &whichField) |
| virtual void | copyToBin (BinaryDataHandler &pMem, const BitVector &whichField) |
| virtual void | copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField) |
Copy | |
| *virtual FieldContainerPtr | shallowCopy (void) const |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
| react to field changes | |
Window system implementation functions | |
| *virtual void | init (void) |
| virtual void | activate (void) |
| virtual void | deactivate (void) |
| virtual void | swap (void) |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
| output the instance for debug purposes | |
Field Get | |
| *SFDisplayP * | getSFDisplay (void) |
| Get the XWindow::_sfDisplay field. | |
| SFX11Window * | getSFWindow (void) |
| Get the XWindow::_sfWindow field. | |
| SFGLXContext * | getSFContext (void) |
| Get the XWindow::_sfContext field. | |
| DisplayP & | getDisplay (void) |
| Get the value of the XWindow::_sfDisplay field. | |
| const DisplayP & | getDisplay (void) const |
| Get the value of the XWindow::_sfDisplay field. | |
| X11Window & | getWindow (void) |
| Get the value of the XWindow::_sfWindow field. | |
| const X11Window & | getWindow (void) const |
| Get the value of the XWindow::_sfWindow field. | |
| GLXContext & | getContext (void) |
| Get the value of the XWindow::_sfContext field. | |
| const GLXContext & | getContext (void) const |
| Get the value of the XWindow::_sfContext field. | |
Field Set | |
| *void | setDisplay (const DisplayP &value) |
| Set the value of the XWindow::_sfDisplay field. | |
| void | setWindow (const X11Window &value) |
| Set the value of the XWindow::_sfWindow field. | |
| void | setContext (const GLXContext &value) |
| Set the value of the XWindow::_sfContext field. | |
Viewport handling | |
| *void | addPort (const ViewportPtr &portP) |
| void | insertPort (UInt32 portIndex, const ViewportPtr &portP) |
| void | replacePort (UInt32 portIndex, const ViewportPtr &portP) |
| void | replacePortBy (const ViewportPtr &portP, const ViewportPtr &newPortP) |
| void | subPort (const ViewportPtr &portP) |
| void | subPort (UInt32 portIndex) |
Size handling | |
| *bool | isResizePending (void) |
| virtual void | resize (int width, int height) |
| virtual void | resizeGL (void) |
| void | setSize (UInt16 width, UInt16 height) |
Drawing | |
| *virtual void | frameInit (void) |
| virtual void | frameExit (void) |
| virtual void | draw (DrawAction *action=NULL) |
| virtual void | drawAllViewports (DrawAction *action=NULL) |
| virtual void | render (RenderActionBase *action=NULL) |
| virtual void | renderAllViewports (RenderActionBase *action=NULL) |
Field Get | |
| *SFUInt16 * | getSFWidth (void) |
| Get the Window::_sfWidth field. | |
| SFUInt16 * | getSFHeight (void) |
| Get the Window::_sfHeight field. | |
| MFViewportPtr * | getMFPort (void) |
| Get the Window::_mfPort field. | |
| SFBool * | getSFResizePending (void) |
| Get the Window::_sfResizePending field. | |
| UInt16 & | getWidth (void) |
| Get the value of the Window::_sfWidth field. | |
| const UInt16 & | getWidth (void) const |
| Get the value of the Window::_sfWidth field. | |
| UInt16 & | getHeight (void) |
| Get the value of the Window::_sfHeight field. | |
| const UInt16 & | getHeight (void) const |
| Get the value of the Window::_sfHeight field. | |
| bool & | getResizePending (void) |
| Get the value of the Window::_sfResizePending field. | |
| const bool & | getResizePending (void) const |
| Get the value of the Window::_sfResizePending field. | |
| ViewportPtr & | getPort (const UInt32 index) |
| Get the value of the index element the Window::_mfPort field. | |
| MFViewportPtr & | getPort (void) |
| Get the Window::_mfPort field. | |
| const MFViewportPtr & | getPort (void) const |
| Get the Window::_mfPort field. | |
Field Set | |
| *void | setWidth (const UInt16 &value) |
| Set the value of the Window::_sfWidth field. | |
| void | setHeight (const UInt16 &value) |
| Set the value of the Window::_sfHeight field. | |
| void | setResizePending (const bool &value) |
| Set the value of the Window::_sfResizePending field. | |
Field Get | |
| *SFUInt16 * | getSFWidth (void) |
| Get the Window::_sfWidth field. | |
| SFUInt16 * | getSFHeight (void) |
| Get the Window::_sfHeight field. | |
| MFViewportPtr * | getMFPort (void) |
| Get the Window::_mfPort field. | |
| SFBool * | getSFResizePending (void) |
| Get the Window::_sfResizePending field. | |
| UInt16 & | getWidth (void) |
| Get the value of the Window::_sfWidth field. | |
| const UInt16 & | getWidth (void) const |
| Get the value of the Window::_sfWidth field. | |
| UInt16 & | getHeight (void) |
| Get the value of the Window::_sfHeight field. | |
| const UInt16 & | getHeight (void) const |
| Get the value of the Window::_sfHeight field. | |
| bool & | getResizePending (void) |
| Get the value of the Window::_sfResizePending field. | |
| const bool & | getResizePending (void) const |
| Get the value of the Window::_sfResizePending field. | |
| ViewportPtr & | getPort (const UInt32 index) |
| Get the value of the index element the Window::_mfPort field. | |
| MFViewportPtr & | getPort (void) |
| Get the Window::_mfPort field. | |
| const MFViewportPtr & | getPort (void) const |
| Get the Window::_mfPort field. | |
Field Set | |
| *void | setWidth (const UInt16 &value) |
| Set the value of the Window::_sfWidth field. | |
| void | setHeight (const UInt16 &value) |
| Set the value of the Window::_sfHeight field. | |
| void | setResizePending (const bool &value) |
| Set the value of the Window::_sfResizePending field. | |
Static Public Member Functions | |
Class Get | |
| *static FieldContainerType & | getClassType (void) |
| access the type of the class | |
| static UInt32 | getClassTypeId (void) |
| access the numerical type of the class | |
Construction | |
| *static QTWindowPtr | create (void) |
| create a new instance of the class | |
| static QTWindowPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Class Get | |
| *static const char * | getClassname (void) |
Extension registration | |
| *static UInt32 | registerExtension (const Char8 *s) |
| static void | ignoreExtensions (const Char8 *s) |
| static UInt32 | registerFunction (const Char8 *s, Int32 ext=-1) |
| static void | registerConstant (GLenum val) |
GL object registration | |
| *static UInt32 | registerGLObject (GLObjectFunctor functor, UInt32 num=1) |
Static Public Attributes | |
| static const osg::BitVector | GlWidgetFieldMask |
| static const osg::BitVector | DisplayFieldMask |
| static const osg::BitVector | WindowFieldMask |
| static const osg::BitVector | ContextFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const Real32 | unknownConstant = -1e100 |
| static const osg::BitVector | WidthFieldMask |
| static const osg::BitVector | HeightFieldMask |
| static const osg::BitVector | PortFieldMask |
| static const osg::BitVector | ResizePendingFieldMask |
| static const osg::BitVector | GlObjectEventCounterFieldMask |
| static const osg::BitVector | GlObjectLastRefreshFieldMask |
| static const osg::BitVector | GlObjectLastReinitializeFieldMask |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| * | QTWindowBase (void) |
| Constructor. | |
| QTWindowBase (const QTWindowBase &source) | |
| Copy Constructor. | |
Destructors | |
| *virtual | ~QTWindowBase (void) |
| Destructor. | |
Sync | |
| *void | executeSyncImpl (QTWindowBase *pOther, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (XWindowBase *pOther, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (WindowBase *pOther, const BitVector &whichField) |
GL setup handling | |
| *virtual void | setupGL (void) |
Field Get | |
| *SFUInt32 * | getSFGlObjectEventCounter (void) |
| Get the Window::_sfGlObjectEventCounter field. | |
| MFUInt32 * | getMFGlObjectLastRefresh (void) |
| Get the Window::_mfGlObjectLastRefresh field. | |
| MFUInt32 * | getMFGlObjectLastReinitialize (void) |
| Get the Window::_mfGlObjectLastReinitialize field. | |
| UInt32 & | getGlObjectEventCounter (void) |
| Get the value of the Window::_sfGlObjectEventCounter field. | |
| const UInt32 & | getGlObjectEventCounter (void) const |
| Get the value of the Window::_sfGlObjectEventCounter field. | |
| UInt32 & | getGlObjectLastRefresh (UInt32 index) |
| Get the value of the index element the Window::_mfGlObjectLastRefresh field. | |
| MFUInt32 & | getGlObjectLastRefresh (void) |
| Get the Window::_mfGlObjectLastRefresh field. | |
| const MFUInt32 & | getGlObjectLastRefresh (void) const |
| Get the Window::_mfGlObjectLastRefresh field. | |
| UInt32 & | getGlObjectLastReinitialize (UInt32 index) |
| Get the value of the index element the Window::_mfGlObjectLastReinitialize field. | |
| MFUInt32 & | getGlObjectLastReinitialize (void) |
| Get the Window::_mfGlObjectLastReinitialize field. | |
| const MFUInt32 & | getGlObjectLastReinitialize (void) const |
| Get the Window::_mfGlObjectLastReinitialize field. | |
Field Set | |
| *void | setGlObjectEventCounter (const UInt32 &value) |
| Set the value of the Window::_sfGlObjectEventCounter field. | |
Field Get | |
| *SFUInt32 * | getSFGlObjectEventCounter (void) |
| Get the Window::_sfGlObjectEventCounter field. | |
| MFUInt32 * | getMFGlObjectLastRefresh (void) |
| Get the Window::_mfGlObjectLastRefresh field. | |
| MFUInt32 * | getMFGlObjectLastReinitialize (void) |
| Get the Window::_mfGlObjectLastReinitialize field. | |
| UInt32 & | getGlObjectEventCounter (void) |
| Get the value of the Window::_sfGlObjectEventCounter field. | |
| const UInt32 & | getGlObjectEventCounter (void) const |
| Get the value of the Window::_sfGlObjectEventCounter field. | |
| UInt32 & | getGlObjectLastRefresh (UInt32 index) |
| Get the value of the index element the Window::_mfGlObjectLastRefresh field. | |
| MFUInt32 & | getGlObjectLastRefresh (void) |
| Get the Window::_mfGlObjectLastRefresh field. | |
| const MFUInt32 & | getGlObjectLastRefresh (void) const |
| Get the Window::_mfGlObjectLastRefresh field. | |
| UInt32 & | getGlObjectLastReinitialize (UInt32 index) |
| Get the value of the index element the Window::_mfGlObjectLastReinitialize field. | |
| MFUInt32 & | getGlObjectLastReinitialize (void) |
| Get the Window::_mfGlObjectLastReinitialize field. | |
| const MFUInt32 & | getGlObjectLastReinitialize (void) const |
| Get the Window::_mfGlObjectLastReinitialize field. | |
Field Set | |
| *void | setGlObjectEventCounter (const UInt32 &value) |
| Set the value of the Window::_sfGlObjectEventCounter field. | |
Protected Attributes | |
Fields | |
| *SFOSGQGLWidgetP | _sfGlWidget |
Fields | |
| *SFDisplayP | _sfDisplay |
| SFX11Window | _sfWindow |
| SFGLXContext | _sfContext |
Map for GL cvonstant handling | |
| *typedef std::map< GLenum, Vec2f > | ConstHash |
Fields | |
| *SFUInt16 | _sfWidth |
| SFUInt16 | _sfHeight |
| MFViewportPtr | _mfPort |
| SFBool | _sfResizePending |
| SFUInt32 | _sfGlObjectEventCounter |
| MFUInt32 | _mfGlObjectLastRefresh |
| MFUInt32 | _mfGlObjectLastReinitialize |
Fields | |
| *SFUInt16 | _sfWidth |
| SFUInt16 | _sfHeight |
| MFViewportPtr | _mfPort |
| SFBool | _sfResizePending |
| SFUInt32 | _sfGlObjectEventCounter |
| MFUInt32 | _mfGlObjectLastRefresh |
| MFUInt32 | _mfGlObjectLastReinitialize |
Private Types | |
| typedef XWindow | Inherited |
Private Member Functions | |
| void | operator= (const QTWindowBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| QTWindow description. | |
| static FieldContainerType | _type |
| QTWindow type. | |
Friends | |
| class | FieldContainer |
GL object handling helper class | |
| class | GLObject |
Definition at line 87 of file OSGQTWindowBase.h.
|
|
Reimplemented from osg::XWindow. Reimplemented in osg::QTWindow. Definition at line 95 of file OSGQTWindowBase.h. |
|
|
Reimplemented from osg::WindowBase. Definition at line 92 of file OSGXWindowBase.h. |
|
|
Definition at line 96 of file OSGWindow.h. |
|
|
Definition at line 99 of file OSGWindow.h. |
|
|
Definition at line 101 of file OSGWindow.h. |
|
|
Reimplemented from osg::XWindowBase. Definition at line 101 of file OSGQTWindowBase.h. 00102 { 00103 GlWidgetFieldId = Inherited::NextFieldId, 00104 NextFieldId = GlWidgetFieldId + 1 00105 };
|
|
|
Enumeration values for the status of the GL objects. This is primarily used to signal the object's callback functions what to do. See OpenGL Objects & Extension Handling for a description.
Definition at line 78 of file OSGWindow.h. 00079 { 00080 notused = 1, 00081 initialize, 00082 reinitialize, 00083 initialized, 00084 needrefresh, 00085 destroy, 00086 finaldestroy 00087 };
|
|
|
Definition at line 92 of file OSGWindow.h. 00092 { statusShift = 3, statusMask = 7 };
|
|
|
Definition at line 164 of file OSGQTWindowBase.cpp. 00164 : 00165 _sfGlWidget (OSGQGLWidgetP(NULL)), 00166 Inherited() 00167 { 00168 }
|
|
|
Definition at line 176 of file OSGQTWindowBase.cpp. 00176 : 00177 _sfGlWidget (source._sfGlWidget ), 00178 Inherited (source) 00179 { 00180 }
|
|
|
Definition at line 186 of file OSGQTWindowBase.cpp.
|
|
|
Reimplemented from osg::XWindowBase. Definition at line 57 of file OSGQTWindowBase.inl. References _type. Referenced by create(). 00058 { 00059 return _type; 00060 }
|
|
|
Reimplemented from osg::XWindowBase. Definition at line 63 of file OSGQTWindowBase.inl. References _type, and osg::TypeBase::getId(). 00064 { 00065 return _type.getId(); 00066 }
|
|
|
Reimplemented from osg::XWindowBase. Definition at line 124 of file OSGQTWindowBase.cpp. References _type. 00125 { 00126 return _type; 00127 }
|
|
|
Reimplemented from osg::XWindowBase. Definition at line 129 of file OSGQTWindowBase.cpp. References _type. 00130 { 00131 return _type; 00132 }
|
|
|
Reimplemented from osg::XWindowBase. Definition at line 144 of file OSGQTWindowBase.cpp. 00145 { 00146 return sizeof(QTWindowBase); 00147 }
|
|
|
Definition at line 96 of file OSGQTWindowBase.inl. References _sfGlWidget. 00097 { 00098 return &_sfGlWidget; 00099 }
|
|
|
Definition at line 103 of file OSGQTWindowBase.inl. References _sfGlWidget, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::QTWindow::init(). 00104 { 00105 return _sfGlWidget.getValue(); 00106 }
|
|
|
Definition at line 109 of file OSGQTWindowBase.inl. References _sfGlWidget, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00110 { 00111 return _sfGlWidget.getValue(); 00112 }
|
|
|
Definition at line 115 of file OSGQTWindowBase.inl. References _sfGlWidget, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00116 { 00117 _sfGlWidget.setValue(value); 00118 }
|
|
||||||||||||
|
Reimplemented from osg::XWindowBase. Definition at line 150 of file OSGQTWindowBase.cpp. References executeSyncImpl(). 00152 { 00153 this->executeSyncImpl((QTWindowBase *) &other, whichField); 00154 }
|
|
|
Reimplemented from osg::XWindowBase. Definition at line 192 of file OSGQTWindowBase.cpp. References _sfGlWidget, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::XWindowBase::getBinSize(), GlWidgetFieldMask, and osg::FieldBits::NoField. 00193 { 00194 UInt32 returnValue = Inherited::getBinSize(whichField); 00195 00196 if(FieldBits::NoField != (GlWidgetFieldMask & whichField)) 00197 { 00198 returnValue += _sfGlWidget.getBinSize(); 00199 } 00200 00201 00202 return returnValue; 00203 }
|
|
||||||||||||
|
Reimplemented from osg::XWindowBase. Definition at line 205 of file OSGQTWindowBase.cpp. References _sfGlWidget, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::XWindowBase::copyToBin(), GlWidgetFieldMask, and osg::FieldBits::NoField. 00207 { 00208 Inherited::copyToBin(pMem, whichField); 00209 00210 if(FieldBits::NoField != (GlWidgetFieldMask & whichField)) 00211 { 00212 _sfGlWidget.copyToBin(pMem); 00213 } 00214 00215 00216 }
|
|
||||||||||||
|
Reimplemented from osg::XWindowBase. Definition at line 218 of file OSGQTWindowBase.cpp. References _sfGlWidget, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::XWindowBase::copyFromBin(), GlWidgetFieldMask, and osg::FieldBits::NoField. 00220 { 00221 Inherited::copyFromBin(pMem, whichField); 00222 00223 if(FieldBits::NoField != (GlWidgetFieldMask & whichField)) 00224 { 00225 _sfGlWidget.copyFromBin(pMem); 00226 } 00227 00228 00229 }
|
|