VISH  0.2
Public Member Functions
Wizt::MetaGLViewerCreator Class Reference

Implementation of a viewer creator using an existing viewer class that can be called with a ViewerCreatorEnvironment as parameter. More...

#include </home/werner/origo/vish/ocean/GLvish/MetaGLViewerCreator.hpp>

List of all members.

Public Member Functions


Detailed Description

Implementation of a viewer creator using an existing viewer class that can be called with a ViewerCreatorEnvironment as parameter.

ViewerClass must be derived from class VObject.

        struct mgGLCC : GLContextChecker
        {
                override const void*CurrentGLContextID() const
                {
                        puts(__FILE__"override const void*CurrentGLContextID() const"); fflush(stdout); 
                        return QGLContext::currentContext ();
                }
        };

        RefPtr<GLContextChecker> MyContextChecker;

        override WeakPtr<GLContextChecker> getContextChecker()
        {
                if (!MyContextChecker)
                        MyContextChecker = new mgGLCC();

                return MyContextChecker;
        }

Constructor & Destructor Documentation

Wizt::MetaGLViewerCreator::MetaGLViewerCreator ( const char *  name,
const RefPtr< VCreationPreferences > &  prop = NullPtr(),
int  priority = DEFAULT_PRIORITY,
bool  isStatic = true 
) [inline]
Parameters:
isStaticIndicates whether this creator object is static or dynamically allocated. In general, the ViewerCreator will be a static object which is destructed automatically by the C++ runtime system. If the creator is constructed dynamically instead, set the isStatic parameter to false to let the variable pool remove the creator objects.

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