MeVisLab Scripting Reference
SoViewportRegionWrapper Class Reference

#include <SoViewportRegionWrapper.h>

Inherits QObject.

Public Slots

void forceRedraw ()
 
void setViewportRegionDefinitionCallback (const PythonQtObjectPtr &callable)
 
void unsetViewportRegionDefinitionCallback ()
 

Detailed Description

A class that wraps SoViewportRegion modules for use in Python.

Its main purpose is to be able to define more complex / application specific viewport region definition via a python callback function.

Note
Usage in python:
wrapper = ctx.module("SoViewportRegion").object()
wrapper.setViewportRegionDefinitionCallback(pythonFunction)

Member Function Documentation

◆ forceRedraw

void SoViewportRegionWrapper::forceRedraw ( )
slot

Force redraw.

◆ setViewportRegionDefinitionCallback

void SoViewportRegionWrapper::setViewportRegionDefinitionCallback ( const PythonQtObjectPtr & callable)
slot

Register the python callback function.

◆ unsetViewportRegionDefinitionCallback

void SoViewportRegionWrapper::unsetViewportRegionDefinitionCallback ( )
slot

Deregister the currently set python callback function.