MeVisLab Toolbox Reference
HiDPIPublic

Function support for high resolution displays. More...

Functions

static double SoViewerElement::getDevicePixelRatio (SoState *state)
virtual double SoViewerProxy::getDevicePixelRatio ()
ML_OPENGL_START_NAMESPACE MLOPENGL_EXPORT void glLineWidthScaled (GLfloat width)
 Sets the width of rasterized lines.
MLOPENGL_EXPORT void glPointSizeScaled (GLfloat size)
 Sets the diameter of rasterized points.
MLOPENGL_EXPORT void glLineStippleScaled (GLint factor, GLushort pattern)
 Sets the line stipple pattern.
template<class T>
ML_OPENGL_END_NAMESPACE T GLHiDPIScale (T x)

Variables

SoSFFloat SoPixelScaleAccess::scaleFactorOut
SoSFFloat SoFramebufferSampler::pixelScale

Detailed Description

Function support for high resolution displays.

Function Documentation

◆ getDevicePixelRatio() [1/2]

double SoViewerElement::getDevicePixelRatio ( SoState * state)
static

Convenience method which calls the corresponding method of SoViewerProxy.

◆ getDevicePixelRatio() [2/2]

virtual double SoViewerProxy::getDevicePixelRatio ( )
inlinevirtual

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

Reimplemented in SoResolutionIndependentViewerProxy.

Definition at line 221 of file SoViewerProxy.h.

◆ GLHiDPIScale()

template<class T>
ML_OPENGL_END_NAMESPACE T GLHiDPIScale ( T x)

Convenience template function to scale a value.

Definition at line 68 of file mlGLHiDPI.h.

References T.

Referenced by SoView2DRectangle::isPointInsideDeviceCornerHandle().

◆ glLineStippleScaled()

MLOPENGL_EXPORT void glLineStippleScaled ( GLint factor,
GLushort pattern )

Sets the line stipple pattern.

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

References MLOPENGL_EXPORT.

◆ glLineWidthScaled()

ML_OPENGL_START_NAMESPACE MLOPENGL_EXPORT void glLineWidthScaled ( GLfloat width)

Sets the width of rasterized lines.

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

References MLOPENGL_EXPORT.

◆ glPointSizeScaled()

MLOPENGL_EXPORT void glPointSizeScaled ( GLfloat size)

Sets the diameter of rasterized points.

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

References MLOPENGL_EXPORT.

Variable Documentation

◆ 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.