MeVisLab Resolution Independence API
MeVisLab Resolution Independence API used for Extension of the API

Functions

GLfloat ml::setGLHiDPIScaleFactor (GLfloat factor)
 Sets the scale factor that is applied to size parameters of GL functions.
 
GLfloat ml::getGLHiDPIScaleFactor ()
 Returns the scale factor that is applied to size parameters of GL functions.
 
void ml::pushAndSetGLHiDPIScaleFactor (GLfloat factor)
 Pushes the current scale factor onto the scale factor stack and sets the given scale factor.
 
void ml::popGLHiDPIScaleFactor ()
 Restores the previous scale factor from the scale factor stack.
 
double SoResolutionIndependentViewerProxy::getDevicePixelRatio () override
 Returns the ratio between physical pixels and device-independent pixels for the viewer.
 
double SoQtViewerProxy::getDevicePixelRatio () override
 Returns the ratio between physical pixels and device-independent pixels for the viewer.
 

Detailed Description

Function Documentation

◆ getDevicePixelRatio() [1/2]

double SoResolutionIndependentViewerProxy::getDevicePixelRatio ( )
overridevirtual

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

Reimplemented from SoViewerProxy.

◆ getDevicePixelRatio() [2/2]

double SoQtViewerProxy::getDevicePixelRatio ( )
overridevirtual

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

Reimplemented from SoViewerProxy.

◆ getGLHiDPIScaleFactor()

GLfloat ml::getGLHiDPIScaleFactor ( )

Returns the scale factor that is applied to size parameters of GL functions.

References ml::getGLHiDPIScaleFactor().

Referenced by ml::getGLHiDPIScaleFactor().

◆ popGLHiDPIScaleFactor()

void ml::popGLHiDPIScaleFactor ( )

Restores the previous scale factor from the scale factor stack.

References ml::popGLHiDPIScaleFactor().

Referenced by ml::popGLHiDPIScaleFactor().

◆ pushAndSetGLHiDPIScaleFactor()

void ml::pushAndSetGLHiDPIScaleFactor ( GLfloat factor)

Pushes the current scale factor onto the scale factor stack and sets the given scale factor.

References ml::pushAndSetGLHiDPIScaleFactor().

Referenced by ml::pushAndSetGLHiDPIScaleFactor().

◆ setGLHiDPIScaleFactor()

GLfloat ml::setGLHiDPIScaleFactor ( GLfloat factor)

Sets the scale factor that is applied to size parameters of GL functions.

Returns the previous scale factor.

References ml::setGLHiDPIScaleFactor().

Referenced by ml::setGLHiDPIScaleFactor().