MeVisLab Scripting Reference
MLABGraphicsRenderArea Class Referenceabstract

#include <mlabGraphicsRenderArea.h>

Inherits QGraphicsWidget.

Inherited by MLABGraphicsInventorRenderArea, MLABGraphicsNetworkView, and MLABVTKGraphicsItem.

Public Slots

Scripting


void setFixedBufferSize (const QSize &size)
 
void setFixedBufferSize (int width, int height)
 
void unsetFixedBufferSize ()
 
QSize bufferSize () const
 
void setAutoRedraw (bool flag)
 
bool autoRedraw () const
 
void forceRedraw ()
 
void setOpaqueBackground (bool flag)
 
bool opaqueBackground () const
 
void setDrawReflection (float heightPercentage=0.5, float scale=1., float startAlpha=0.5)
 
void setMultiSampling (int value)
 
void setLinearFiltering (bool flag)
 

Detailed Description

Base class for Inventor/VTK graphics view items.

Member Function Documentation

◆ autoRedraw

bool MLABGraphicsRenderArea::autoRedraw ( ) const
inlineslot

get if scene is redrawn to buffer if the scene changes

◆ bufferSize

QSize MLABGraphicsRenderArea::bufferSize ( ) const
inlineslot

get the buffer size (or invalid size if it is not explicitly set)

◆ forceRedraw

void MLABGraphicsRenderArea::forceRedraw ( )
slot

force a redraw, even if autoRedraw is off

◆ opaqueBackground

bool MLABGraphicsRenderArea::opaqueBackground ( ) const
inlineslot

get if rendering has an opaque background

◆ setAutoRedraw

void MLABGraphicsRenderArea::setAutoRedraw ( bool flag)
inlineslot

set if scene is redrawn to buffer if the scene changes

◆ setDrawReflection

void MLABGraphicsRenderArea::setDrawReflection ( float heightPercentage = 0.5,
float scale = 1.,
float startAlpha = 0.5 )
slot

enables drawing of a reflection of the render area below it.

Setting heightPercentage to <=0 disables drawing of the reflection.

◆ setFixedBufferSize [1/2]

void MLABGraphicsRenderArea::setFixedBufferSize ( const QSize & size)
slot

set explicit buffer size, regardless of widget size

◆ setFixedBufferSize [2/2]

void MLABGraphicsRenderArea::setFixedBufferSize ( int width,
int height )
slot

set explicit buffer size, regardless of widget size

◆ setLinearFiltering

void MLABGraphicsRenderArea::setLinearFiltering ( bool flag)
inlineslot

enable/disable linear filtering when drawing the texture

◆ setMultiSampling

void MLABGraphicsRenderArea::setMultiSampling ( int value)
slot

sets the number of MSAA samples to use in the sample buffer (0 means no multi sampling)

◆ setOpaqueBackground

void MLABGraphicsRenderArea::setOpaqueBackground ( bool flag)
inlineslot

set if rendering has an opaque background

◆ unsetFixedBufferSize

void MLABGraphicsRenderArea::unsetFixedBufferSize ( )
slot

unset the fixed buffer size