MeVisLab Scripting Reference
MLABGraphicsInventorRenderArea Class Reference

#include <mlabGraphicsInventorRenderArea.h>

Inherits MLABGraphicsRenderArea.

Public Types

enum  TransparencyType {
  SCREEN_DOOR = SoGLRenderAction::SCREEN_DOOR , ADD = SoGLRenderAction::ADD , DELAYED_ADD = SoGLRenderAction::DELAYED_ADD , SORTED_OBJECT_ADD = SoGLRenderAction::SORTED_OBJECT_ADD ,
  BLEND = SoGLRenderAction::BLEND , DELAYED_BLEND = SoGLRenderAction::DELAYED_BLEND , SORTED_OBJECT_BLEND = SoGLRenderAction::SORTED_OBJECT_BLEND
}
 

Public Slots

Scripting


void setTransparencyType (TransparencyType type)
 
TransparencyType transparencyType () const
 
void setBackgroundColor (const QColor &color)
 
QColor backgroundColor () const
 
void setAutoFocus (bool flag)
 
bool autoFocus () const
 
void registerNamedDevices (const QStringList &devices)
 
- Public Slots inherited from MLABGraphicsRenderArea
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

InventorRenderArea graphics view item.

Member Enumeration Documentation

◆ TransparencyType

The transparency type to use:

Enumerator
SCREEN_DOOR 

Use GL patterns for screen-door transparency.

ADD 

Use additive GL alpha blending.

DELAYED_ADD 

Use additive blending, do transp objs last.

SORTED_OBJECT_ADD 

Use additive blending, sort objects by bbox.

BLEND 

Use GL alpha blending.

DELAYED_BLEND 

Use GL alpha blending, do transp objs last.

SORTED_OBJECT_BLEND 

Use GL alpha blending, sort objects by bbox.

Member Function Documentation

◆ autoFocus

bool MLABGraphicsInventorRenderArea::autoFocus ( ) const
inlineslot

gets the auto focus flag

◆ backgroundColor

QColor MLABGraphicsInventorRenderArea::backgroundColor ( ) const
inlineslot

gets the background color

◆ registerNamedDevices

void MLABGraphicsInventorRenderArea::registerNamedDevices ( const QStringList & devices)
slot

registers the devices given by their Open Inventor type names

◆ setAutoFocus

void MLABGraphicsInventorRenderArea::setAutoFocus ( bool flag)
inlineslot

sets the auto focus flag

◆ setBackgroundColor

void MLABGraphicsInventorRenderArea::setBackgroundColor ( const QColor & color)
inlineslot

sets the background color

◆ setTransparencyType

void MLABGraphicsInventorRenderArea::setTransparencyType ( TransparencyType type)
slot

set the transparency type. Default is BLEND.

◆ transparencyType

TransparencyType MLABGraphicsInventorRenderArea::transparencyType ( ) const
slot

get the transparency type