QVISH 0.1
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
ImgViewer Class Reference

Implementation of an viewer in a Qt Environment. More...

#include <ImgViewer.hpp>

Inheritance diagram for ImgViewer:
Wizt::QViewer

Public Member Functions

void enableThreading (bool)
 
RefPtr< VParameter > getImplementation (const type_info &what, const string &)
 
 ImgViewer (const string &name, int p, const RefPtr< VCreationPreferences > &prop)
 Construct an external viewer.
 
 ImgViewer (const WeakPtr< ValuePoolProvider > &myValuePoolProvider, const RefPtr< VInputValue< VInteractionEvent > > &myMouseInput, QWidget *parent, const string &name, int p, const RefPtr< VCreationPreferences > &prop)
 Construct an internal viewer.
 
QWidget * myWidget ()
 
const QWidget * myWidget () const
 
virtual bool NotifyRenderObject (int RenderId, int SubRenderId, int log2_MaxRenderId) const override
 
bool request (VRequest &R, double precision) override
 
bool update (VRequest &, double precision=1.0) override
 
void Vactivate ()
 
- Public Member Functions inherited from Wizt::QViewer
virtual void cleanup ()=0
 Destructive operation to clear all GL objects that are stored in the associated cache.
 
void ExecContextMenu (const QPoint &position) const
 
virtual QMenu * getSceneContextMenu () const =0
 
 QViewer (const string &name, int p, const RefPtr< VCreationPreferences > &prop)
 
virtual void setCacheInfoHandler (const WeakPtr< qVCacheInfo > &ci)=0
 Install a callback object that is called whenever there are changes in the OpenGL render cache.
 
virtual void setDLCacheSize (int MaxCache)=0
 
virtual void setGPUCacheSize (long MaxCache)=0
 
virtual bool shutdown () const =0
 

Public Attributes

ViewerActivationIndicatormyActivator
 
int timerID
 
int timerInterval
 
- Public Attributes inherited from Wizt::QViewer
double Completion = 1.0
 
ViewerActivationIndicatormyActivator
 
RefPtr< qVInterruptorOffScreenRenderInterruptor
 

Static Public Attributes

static QGLWidget * shareWidget
 

Protected Member Functions

void focusInEvent (QFocusEvent *) override
 
void initializeGL () override
 
void initRender ()
 
void keyPressEvent (QKeyEvent *e) override
 
void keyReleaseEvent (QKeyEvent *e) override
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *e) override
 
void paintGL () override
 
pair< RefPtr< VRenderObject >, int > pickObject (int ButtonMask, char Key, int x, int y, bool CallCb)
 
bool requestAdditionalSources (const VRequest &request, double precision) override
 
void resizeGL (int, int) override
 
void showEvent (QShowEvent *) override
 
void timerEvent (QTimerEvent *) override
 

Detailed Description

Implementation of an viewer in a Qt Environment.

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

Internally it uses OpenGL for painting, but this functionality is not exposed.

Constructor & Destructor Documentation

◆ ImgViewer()

ImgViewer::ImgViewer ( const WeakPtr< ValuePoolProvider > &  myValuePoolProvider,
const RefPtr< VInputValue< VInteractionEvent > > &  myMouseInput,
QWidget *  parent,
const string &  name,
int  p,
const RefPtr< VCreationPreferences > &  prop 
)

Construct an internal viewer.

Create a local value pool

Member Function Documentation

◆ myWidget() [1/2]

QWidget * ImgViewer::myWidget ( )
inlinevirtual

Implements Wizt::QViewer.

◆ myWidget() [2/2]

const QWidget * ImgViewer::myWidget ( ) const
inlinevirtual

Implements Wizt::QViewer.


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