![]() |
VR-Forces 5.0.3 Developer's Guide
|
The OSG Drawable that contains a GL Studio HUD.

Public Member Functions | |
| DtGlStudioDrawable () | |
| DtGlStudioDrawable (disti::ComponentBase *component) | |
| DtGlStudioDrawable (const DtGlStudioDrawable &other, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| virtual | ~DtGlStudioDrawable () |
| virtual osg::Object * | cloneType () const |
| virtual osg::Object * | clone (const osg::CopyOp ©op) const |
| virtual bool | isSameKindAs (const osg::Object *obj) const |
| virtual const char * | libraryName () const |
| virtual const char * | className () const |
| virtual bool | loadLiveComponent (const std::string &fileName, const std::string &className) |
| virtual void | destroyComponent () |
| virtual void | setComponent (disti::ComponentBase *comp) |
| virtual disti::ComponentBase * | component () |
| virtual bool | handleMouseInput (const DtMouseEvent &ea) |
| virtual osg::BoundingBox | computeBoundingBox () const |
| virtual bool | supports (osg::PrimitiveFunctor &) const |
| virtual void | accept (osg::PrimitiveFunctor &functor) const |
| virtual void | update (unsigned int frameNumber) |
| virtual bool | cull (osg::NodeVisitor *visitor, osg::Drawable *drawable, osg::State *state=NULL) const |
| virtual void | drawImplementation (osg::RenderInfo &state) const |
| virtual void | setProperty (const std::string &prop, const std::string &val) |
| virtual void | setDe (DtDe *de) |
| virtual void | setCockpitObject (DtOsgGlStudioCockpit *cockpitObject) |
| virtual void | releaseGLObjects (osg::State *state=0) const |
| virtual void | dirtyRenderObjects () |
Protected Member Functions | |
| virtual void | initQuadRendering (const osg::Camera *camera) const |
| virtual void | deinitQuadRendering () const |
| virtual void | initRTT (const osg::Camera *camera) const |
| virtual void | deinitRTT () const |
| virtual void | slot_reloadShaders () |
| virtual float | calculateHdrOutputScale (const osg::Camera *camera) const |
| virtual bool | calculateSkyEnabled (const osg::Camera *camera) const |
Protected Attributes | |
| DtOsgGlStudioCockpit * | myCockpitObject |
| disti::ComponentBase * | myComponent |
| DtDe * | myDe |
| std::map< const osg::Camera *, DtGlRenderTexture * > | myGLRenderTextures |
| std::map< const osg::Camera *, DtGlScreenQuad * > | myGLScreenQuads |
| osg::ref_ptr< osg::Program > | myProgram |
| std::vector< osg::Vec3 > | myBoundingBoxVertices |
| DtSignalConnectionManager | myConnections |
| unsigned int | myLastUpdateFrameNumber |
| makVrv::DtGlStudioDrawable::DtGlStudioDrawable | ( | ) |
constructor
| makVrv::DtGlStudioDrawable::DtGlStudioDrawable | ( | disti::ComponentBase * | component | ) |
CTOR which takes a disti component. For loading user-instantiated (statically linked) component object.
| makVrv::DtGlStudioDrawable::DtGlStudioDrawable | ( | const DtGlStudioDrawable & | other, |
| const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
| ) |
Copy constructor using CopyOp to manage deep vs shallow copy. For loading from a live component DLL.
|
virtual |
DTOR.
|
virtual |
Required osg::Object class methods.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Loads a live component from a GL Studio shared library.
|
virtual |
Frees the memory for the component.
|
virtual |
Replace the currently loaded component with the given component instance. The node takes ownership of the object.
|
virtual |
Get access to the component pointer to allow for calling component-specific methods.
|
virtual |
handle mouse events
|
virtual |
Computes the bounding box if needed.
|
virtual |
OSG required function.
|
virtual |
The PrimitiveFunctor is used for OpenSceneGraph picking The Drawable object should tell the PrimitiveFunctor about it's geometry. Since we are unable to get the detailed geometry here we use the bounding box geometry for osg picking. Detailed picking of component geometry is done within HandleInput.
The update function is called each frame. This is where we call Calculate() on the component.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
used by the cockpit to let the drawable know that something changed with the rendering so rebuild the rtt shader and drawable.
|
protectedvirtual |
initialize the geometry to render the RTT texture on top of the current framebuffer
|
protectedvirtual |
tear down the geometry used to render the RTT texture
|
protectedvirtual |
setup the rtt for the texture that is used when HDR is turned on
|
protectedvirtual |
tear down the rtt for the HDR cockpit textue
|
protectedvirtual |
slot for reload shaders signal so the cockpit RTT shader can be reloaded
|
protectedvirtual |
get the hdr output scale to set up
|
protectedvirtual |
get the sky enabled bool to set up
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |