VISH
0.2
|
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>
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; }
Wizt::MetaGLViewerCreator::MetaGLViewerCreator | ( | const char * | name, |
const RefPtr< VCreationPreferences > & | prop = NullPtr() , |
||
int | priority = DEFAULT_PRIORITY , |
||
bool | isStatic = true |
||
) | [inline] |
isStatic | Indicates 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. |