QVISH 0.1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Wizt::QGLViewer Class Reference

Implementation of an OpenGL-based viewer in a Qt Environment. More...

#include <qGLViewer.hpp>

Inheritance diagram for Wizt::QGLViewer:
Wizt::QViewer Wizt::QViewer Wizt::QViewer Wizt::QViewer

Public Member Functions

void cleanup ()
 Destructive operation to clear all GL objects that are stored in the associated cache.
 
void cleanup ()
 Destructive operation to clear all GL objects that are stored in the associated cache.
 
void cleanup ()
 Destructive operation to clear all GL objects that are stored in the associated cache.
 
void cleanup () override
 Destructive operation to clear all GL objects that are stored in the associated cache.
 
void enableThreading (bool) override
 
void enableThreading (bool) override
 
void execContextMenu (QWidget *parent, const QString &ViewerName, const QPoint &GlobalMousePosition)
 
void frameCompleted () const
 
QMenu * getSceneContextMenu () const override
 
bool initializeContext (VGLRenderContext &VRC) override
 
RefPtr< VInteractionEvent::InteractionGrabber > myInteractionGrabber () const
 
const QWidget * myWidget () const override
 
const QWidget * myWidget () const override
 
const QWidget * myWidget () const override
 
const QWidget * myWidget () const override
 
QWidget * myWidget () override
 
QWidget * myWidget () override
 
QWidget * myWidget () override
 
QWidget * myWidget () override
 
void outPixelSizeXChanged (const int &X, const ValuePoolPtr &Context) const
 
void outPixelSizeXChanged (const int &X, const ValuePoolPtr &Context) const
 
void outPixelSizeXChanged (const int &X, const ValuePoolPtr &Context) const
 
void outPixelSizeYChanged (const int &Y, const ValuePoolPtr &Context) const
 
void outPixelSizeYChanged (const int &Y, const ValuePoolPtr &Context) const
 
void outPixelSizeYChanged (const int &Y, const ValuePoolPtr &Context) const
 
void outViewerSizeChanged (const Position2D &XY, const ValuePoolPtr &Context) const
 
void outViewerSizeChanged (const Position2D &XY, const ValuePoolPtr &Context) const
 
void outViewerSizeChanged (const Position2D &XY, const ValuePoolPtr &Context) const
 
 QGLViewer (const string &name, int p, const RefPtr< VCreationPreferences > &prop)
 Construct an external viewer.
 
 QGLViewer (const string &name, int p, const RefPtr< VCreationPreferences > &prop)
 Construct an external viewer.
 
 QGLViewer (const string &name, int p, const RefPtr< VCreationPreferences > &prop)
 Construct an external viewer.
 
 QGLViewer (const string &name, int p, const RefPtr< VCreationPreferences > &prop)
 Construct an external viewer.
 
 QGLViewer (const WeakPtr< MetaViewer > &myMetaViewer, const RefPtr< ValuePool > &thePool, QWidget *parent, const string &name, const RefPtr< VCreationPreferences > &prop)
 Construct an internal viewer.
 
 QGLViewer (const WeakPtr< MetaViewer > &myMetaViewer, const RefPtr< ValuePool > &thePool, QWidget *parent, const string &name, const RefPtr< VCreationPreferences > &prop)
 Construct an internal viewer.
 
 QGLViewer (const WeakPtr< MetaViewer > &myMetaViewer, const RefPtr< ValuePool > &thePool, QWidget *parent, const string &name, const RefPtr< VCreationPreferences > &prop)
 Construct an internal viewer.
 
 QGLViewer (QMetaViewer &myMetaViewer, const RefPtr< ValuePool > &thePool, QWidget *parent, const string &name, const RefPtr< VCreationPreferences > &prop)
 Construct an internal viewer.
 
VFrameBuffer::Renderer::LayeredRenderResultWithError renderToTarget (const RefPtr< FrameGrabber > &, const RefPtr< VFrameBuffer::Grab::MovieManager > &) const override
 
bool renderToTarget (const RefPtr< FrameGrabber > &, const RefPtr< VFrameBuffer::Grab::MovieManager > &) override
 
bool renderToTarget (const RefPtr< FrameGrabber > &, const RefPtr< VFrameBuffer::Grab::MovieManager > &) override
 
bool request (VRequest &R, double precision) override
 
bool request (VRequest &R, double precision, const WeakVObjectPtr &ImmediateRequestor, const WeakVObjectPtr &RootRequestor) override
 
bool request (VRequest &R, double precision, const WeakVObjectPtr &ImmediateRequestor, const WeakVObjectPtr &RootRequestor) override
 
bool request (VRequest &R, double precision, const WeakVObjectPtr &ImmediateRequestor, const WeakVObjectPtr &RootRequestor) override
 
bool requestAdditionalSources (const VRequest &request, double precision)
 
bool requestAdditionalSources (const VRequest &request, double precision) override
 
void setCacheInfoHandler (const WeakPtr< qVCacheInfo > &ci) override
 Install a callback object that is called whenever there are changes in the OpenGL render cache.
 
void setCacheInfoHandler (const WeakPtr< qVCacheInfo > &ci) override
 Install a callback object that is called whenever there are changes in the OpenGL render cache.
 
void setCacheInfoHandler (const WeakPtr< qVCacheInfo > &ci) override
 Install a callback object that is called whenever there are changes in the OpenGL render cache.
 
void setCacheInfoHandler (const WeakPtr< qVCacheInfo > &ci) override
 Install a callback object that is called whenever there are changes in the OpenGL render cache.
 
void setDLCacheSize (int MaxCache) override
 
void setDLCacheSize (int MaxCache) override
 
void setDLCacheSize (int MaxCache) override
 
void setDLCacheSize (int MaxCache) override
 
void setGPUCacheSize (long MaxCache) override
 
void setGPUCacheSize (long MaxCache) override
 
void setGPUCacheSize (long MaxCache) override
 
void setGPUCacheSize (long MaxCache) override
 
void setup (const CreationSlots_t &CreationSlots) override
 
void setViewerSizeOutputs (int X, int Y)
 
void setViewerSizeOutputs (int X, int Y)
 
void setViewerSizeOutputs (int X, int Y)
 
bool shutdown () const override
 
bool update (VRequest &, double precision=1.0) override
 
bool update (VRequest &, double precision=1.0) override
 
bool update (VRequest &, double precision=1.0) override
 
bool update (VRequest &, double precision=1.0) override
 
void Vactivate ()
 
void Vactivate ()
 
void Vactivate ()
 
void Vactivate ()
 
- Public Member Functions inherited from Wizt::QViewer
void ExecContextMenu (const QPoint &position) const
 
 QViewer (const string &name, int p, const RefPtr< VCreationPreferences > &prop)
 

Static Public Member Functions

static bool UseThreads ()
 
static bool UseThreads ()
 

Public Attributes

WeakPtr< qVCacheInfoci
 
QAction * EnablePixelZoom
 
QString GPUMemoryInfo
 
double LastCompleteRenderingTime = 0
 
inout< double > MaxGlobalRenderTime
 
inout< double > MaxLocalRenderTime
 
VOutput< VInteractionEvent > myEvents
 
RefPtr< VInputValue< VInteractionEvent > > myEvents
 
RefPtr< VInteractionEvent::InteractionGrabber > myInteractionGrabber
 
QPointer< qVRenderInfomyRenderInfo
 
QPointer< qVGLScrollAreamyScrollArea
 
QPointer< MyViewerWidgetmyStackedWidget
 
WeakPtr< ValuePoolProvider > myValuePoolProvider
 Optional reference to some object which wants to know which ValuePool is active.
 
RefPtr< VValue< VInteractionEvent > > myVInteractionEvent
 
QPointer< qVMainWindowmyVMainWindow
 
inout< int > outPixelSizeX
 
inout< int > outPixelSizeY
 
inout< Position2D > outViewerSize
 
bool PixelZoomEnabled = false
 
RefPtr< VInputValue< double > > PixelZoomFactor
 
RefPtr< VInputValue< double > > PixelZoomOffsetX
 
RefPtr< VInputValue< double > > PixelZoomOffsetY
 
int timerID
 
int timerInterval
 
MemCore::Timer TimeSinceLastCompleteRender
 
RefPtr< VInputValue< VMultiPointerDevice > > TouchInput
 
- Public Attributes inherited from Wizt::QViewer
double Completion = 1.0
 
ViewerActivationIndicatormyActivator
 
RefPtr< qVInterruptorOffScreenRenderInterruptor
 

Static Public Attributes

static QPointer< QGLWidget > shareWidget = 0
 

Detailed Description

Implementation of an OpenGL-based viewer in a Qt Environment.

It requests a MousePosition as input and provides a FrameBuffer as output.

Constructor & Destructor Documentation

◆ QGLViewer() [1/2]

Wizt::QGLViewer::QGLViewer ( QMetaViewer myMetaViewer,
const RefPtr< ValuePool > &  thePool,
QWidget *  parent,
const string &  name,
const RefPtr< VCreationPreferences > &  prop 
)

Construct an internal viewer.

Parameters
myMetaViewerwill be modified by grabbing its interaction event

Create a local value pool

References Wizt::GLThreadController::isBusyWithOffScreenRendering(), myValuePoolProvider, and Wizt::qVMainWindow::renderCancel().

◆ QGLViewer() [2/2]

Wizt::QGLViewer::QGLViewer ( const WeakPtr< MetaViewer > &  myMetaViewer,
const RefPtr< ValuePool > &  thePool,
QWidget *  parent,
const string &  name,
const RefPtr< VCreationPreferences > &  prop 
)

Construct an internal viewer.

Create a local value pool

Create a local value pool

Create a local value pool

References myValuePoolProvider.

Member Function Documentation

◆ cleanup() [1/4]

void Wizt::QGLViewer::cleanup ( )
virtual

Destructive operation to clear all GL objects that are stored in the associated cache.

Implements Wizt::QViewer.

◆ cleanup() [2/4]

void Wizt::QGLViewer::cleanup ( )
virtual

Destructive operation to clear all GL objects that are stored in the associated cache.

Implements Wizt::QViewer.

◆ cleanup() [3/4]

void Wizt::QGLViewer::cleanup ( )
virtual

Destructive operation to clear all GL objects that are stored in the associated cache.

Implements Wizt::QViewer.

◆ cleanup() [4/4]

void Wizt::QGLViewer::cleanup ( )
overridevirtual

Destructive operation to clear all GL objects that are stored in the associated cache.

Implements Wizt::QViewer.

◆ getSceneContextMenu()

QMenu * Wizt::QGLViewer::getSceneContextMenu ( ) const
overridevirtual

Implements Wizt::QViewer.

◆ myWidget() [1/8]

const QWidget * Wizt::QGLViewer::myWidget ( ) const
overridevirtual

Implements Wizt::QViewer.

◆ myWidget() [2/8]

const QWidget * Wizt::QGLViewer::myWidget ( ) const
overridevirtual

Implements Wizt::QViewer.

◆ myWidget() [3/8]

const QWidget * Wizt::QGLViewer::myWidget ( ) const
overridevirtual

Implements Wizt::QViewer.

◆ myWidget() [4/8]

const QWidget * Wizt::QGLViewer::myWidget ( ) const
overridevirtual

Implements Wizt::QViewer.

◆ myWidget() [5/8]

QWidget * Wizt::QGLViewer::myWidget ( )
overridevirtual

Implements Wizt::QViewer.

◆ myWidget() [6/8]

QWidget * Wizt::QGLViewer::myWidget ( )
overridevirtual

Implements Wizt::QViewer.

◆ myWidget() [7/8]

QWidget * Wizt::QGLViewer::myWidget ( )
overridevirtual

Implements Wizt::QViewer.

◆ myWidget() [8/8]

QWidget * Wizt::QGLViewer::myWidget ( )
overridevirtual

Implements Wizt::QViewer.

◆ setCacheInfoHandler() [1/4]

void Wizt::QGLViewer::setCacheInfoHandler ( const WeakPtr< qVCacheInfo > &  ci)
overridevirtual

Install a callback object that is called whenever there are changes in the OpenGL render cache.

The object specified here is supposed to overload the virtual setCacheInfo() function. This one is called whenever there might be changes in the OpenGL cache usage. Note that this callback function is likely to be called from a subthread and therefore MUST NOT do any Qt GUI calls. It may however set its values into some list queue to be read later by the QViewer widget implementation.

Implements Wizt::QViewer.

◆ setCacheInfoHandler() [2/4]

void Wizt::QGLViewer::setCacheInfoHandler ( const WeakPtr< qVCacheInfo > &  ci)
overridevirtual

Install a callback object that is called whenever there are changes in the OpenGL render cache.

The object specified here is supposed to overload the virtual setCacheInfo() function. This one is called whenever there might be changes in the OpenGL cache usage. Note that this callback function is likely to be called from a subthread and therefore MUST NOT do any Qt GUI calls. It may however set its values into some list queue to be read later by the QViewer widget implementation.

Implements Wizt::QViewer.

◆ setCacheInfoHandler() [3/4]

void Wizt::QGLViewer::setCacheInfoHandler ( const WeakPtr< qVCacheInfo > &  ci)
overridevirtual

Install a callback object that is called whenever there are changes in the OpenGL render cache.

The object specified here is supposed to overload the virtual setCacheInfo() function. This one is called whenever there might be changes in the OpenGL cache usage. Note that this callback function is likely to be called from a subthread and therefore MUST NOT do any Qt GUI calls. It may however set its values into some list queue to be read later by the QViewer widget implementation.

Implements Wizt::QViewer.

◆ setCacheInfoHandler() [4/4]

void Wizt::QGLViewer::setCacheInfoHandler ( const WeakPtr< qVCacheInfo > &  ci)
overridevirtual

Install a callback object that is called whenever there are changes in the OpenGL render cache.

The object specified here is supposed to overload the virtual setCacheInfo() function. This one is called whenever there might be changes in the OpenGL cache usage. Note that this callback function is likely to be called from a subthread and therefore MUST NOT do any Qt GUI calls. It may however set its values into some list queue to be read later by the QViewer widget implementation.

Implements Wizt::QViewer.

◆ setDLCacheSize() [1/4]

void Wizt::QGLViewer::setDLCacheSize ( int  MaxCache)
overridevirtual

Implements Wizt::QViewer.

◆ setDLCacheSize() [2/4]

void Wizt::QGLViewer::setDLCacheSize ( int  MaxCache)
overridevirtual

Implements Wizt::QViewer.

◆ setDLCacheSize() [3/4]

void Wizt::QGLViewer::setDLCacheSize ( int  MaxCache)
overridevirtual

Implements Wizt::QViewer.

◆ setDLCacheSize() [4/4]

void Wizt::QGLViewer::setDLCacheSize ( int  MaxCache)
overridevirtual

Implements Wizt::QViewer.

◆ setGPUCacheSize() [1/4]

void Wizt::QGLViewer::setGPUCacheSize ( long  MaxCache)
overridevirtual

Implements Wizt::QViewer.

◆ setGPUCacheSize() [2/4]

void Wizt::QGLViewer::setGPUCacheSize ( long  MaxCache)
overridevirtual

Implements Wizt::QViewer.

◆ setGPUCacheSize() [3/4]

void Wizt::QGLViewer::setGPUCacheSize ( long  MaxCache)
overridevirtual

Implements Wizt::QViewer.

◆ setGPUCacheSize() [4/4]

void Wizt::QGLViewer::setGPUCacheSize ( long  MaxCache)
overridevirtual

Implements Wizt::QViewer.

◆ shutdown()

bool Wizt::QGLViewer::shutdown ( ) const
overridevirtual

Implements Wizt::QViewer.


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