MeVisLab Resolution Independence API
MeVisLab Resolution Independence API for Direct Usage

Function support for high resolution displays. More...

Functions

void ml::glLineWidthScaled (GLfloat width)
 Sets the width of rasterized lines. More...
 
void ml::glPointSizeScaled (GLfloat size)
 Sets the diameter of rasterized points. More...
 
void ml::glLineStippleScaled (GLint factor, GLushort pattern)
 Sets the line stipple pattern. More...
 
template<class T >
T GLHiDPIScale (T x)
 Convenience template function to scale a value. More...
 
static double SoViewerElement::getDevicePixelRatio (SoState *state)
 Convenience method which calls the corresponding method of SoViewerProxy. More...
 
virtual double SoViewerProxy::getDevicePixelRatio ()
 Returns the ratio between physical pixels and device-independent pixels for the viewer. More...
 

Variables

SoSFFloat SoPixelScaleAccess::scaleFactorOut
 Ratio between physical pixels and device-independent pixels of the connected viewer. More...
 
FloatField * ml::OffscreenRenderer::_pixelScaleFld
 Scale factor for pixel size. More...
 
SoSFFloat SoFramebufferSampler::pixelScale
 Scale factor for pixel size. More...
 

Detailed Description

Function support for high resolution displays.

Function Documentation

◆ getDevicePixelRatio() [1/2]

virtual double SoViewerProxy::getDevicePixelRatio ( )
inlinevirtual

Returns the ratio between physical pixels and device-independent pixels for the viewer.

Reimplemented in SoQtViewerProxy, and SoResolutionIndependentViewerProxy.

Definition at line 221 of file SoViewerProxy.h.

◆ getDevicePixelRatio() [2/2]

static double SoViewerElement::getDevicePixelRatio ( SoState *  state)
static

Convenience method which calls the corresponding method of SoViewerProxy.

◆ GLHiDPIScale()

template<class T >
T GLHiDPIScale ( T  x)

Convenience template function to scale a value.

Definition at line 68 of file mlGLHiDPI.h.

References ml::getGLHiDPIScaleFactor(), and T.

◆ glLineStippleScaled()

void ml::glLineStippleScaled ( GLint  factor,
GLushort  pattern 
)

Sets the line stipple pattern.

The resulting pattern multiplier is guaranteed to be at least 1.

◆ glLineWidthScaled()

void ml::glLineWidthScaled ( GLfloat  width)

Sets the width of rasterized lines.

The resulting line with is guaranteed to be at least 1.0.

◆ glPointSizeScaled()

void ml::glPointSizeScaled ( GLfloat  size)

Sets the diameter of rasterized points.

The resulting point size is guaranteed to be at least 1.0.

Variable Documentation

◆ _pixelScaleFld

FloatField* ml::OffscreenRenderer::_pixelScaleFld
protected

Scale factor for pixel size.

Definition at line 126 of file mlOffscreenRender.h.

◆ pixelScale

SoSFFloat SoFramebufferSampler::pixelScale

Scale factor for pixel size.

Definition at line 93 of file SoFramebufferSampler.h.

◆ scaleFactorOut

SoSFFloat SoPixelScaleAccess::scaleFactorOut

Ratio between physical pixels and device-independent pixels of the connected viewer.

Definition at line 41 of file SoPixelScaleAccess.h.