MeVisLab Resolution Independence API
|
Namespaces | |
namespace | ml |
Platform independent interface class to manage an OpenGL context. | |
Functions | |
void | ml::glLineWidthScaled (GLfloat width) |
Sets the width of rasterized lines. | |
void | ml::glPointSizeScaled (GLfloat size) |
Sets the diameter of rasterized points. | |
void | ml::glLineStippleScaled (GLint factor, GLushort pattern) |
Sets the line stipple pattern. | |
template<class T > | |
T | GLHiDPIScale (T x) |
Convenience template function to scale a value. | |
static double | SoViewerElement::getDevicePixelRatio (SoState *state) |
Convenience method which calls the corresponding method of SoViewerProxy. | |
virtual double | SoViewerProxy::getDevicePixelRatio () |
Returns the ratio between physical pixels and device-independent pixels for the viewer. | |
Variables | |
SoSFFloat | SoPixelScaleAccess::scaleFactorOut |
Ratio between physical pixels and device-independent pixels of the connected viewer. | |
FloatField * | ml::OffscreenRenderer::_pixelScaleFld |
Scale factor for pixel size. | |
SoSFFloat | SoFramebufferSampler::pixelScale |
Scale factor for pixel size. | |
Function support for high resolution displays.
|
inlinevirtual |
Returns the ratio between physical pixels and device-independent pixels for the viewer.
Reimplemented in SoResolutionIndependentViewerProxy, and SoQtViewerProxy.
Definition at line 221 of file SoViewerProxy.h.
|
static |
Convenience method which calls the corresponding method of SoViewerProxy.
Convenience template function to scale a value.
Definition at line 68 of file mlGLHiDPI.h.
References T.
void ml::glLineStippleScaled | ( | GLint | factor, |
GLushort | pattern ) |
Sets the line stipple pattern.
The resulting pattern multiplier is guaranteed to be at least 1.
References ml::glLineStippleScaled().
Referenced by ml::glLineStippleScaled().
void ml::glLineWidthScaled | ( | GLfloat | width | ) |
Sets the width of rasterized lines.
The resulting line with is guaranteed to be at least 1.0.
References ml::glLineWidthScaled().
Referenced by ml::glLineWidthScaled().
void ml::glPointSizeScaled | ( | GLfloat | size | ) |
Sets the diameter of rasterized points.
The resulting point size is guaranteed to be at least 1.0.
References ml::glPointSizeScaled().
Referenced by ml::glPointSizeScaled().
|
protected |
Scale factor for pixel size.
Definition at line 124 of file mlOffscreenRender.h.
SoSFFloat SoFramebufferSampler::pixelScale |
Scale factor for pixel size.
Definition at line 93 of file SoFramebufferSampler.h.
SoSFFloat SoPixelScaleAccess::scaleFactorOut |
Ratio between physical pixels and device-independent pixels of the connected viewer.
Definition at line 41 of file SoPixelScaleAccess.h.