SoToggleOnResolution

InventorModule
genre InventorMain
author Christian Schumann
package FMEwork/ReleaseMeVis
dll SoToggleOnResolution
definition SoToggleOnResolution.def
see also SoSwitchOnViewingDirection

Purpose

This module toggles the visibility of the child graph based on the resolution.

Usage

Use like a normal SoToggle. However, the module automatically toggles visibility.

Details

The module considers the current viewport region, not the viewers resolution! See SoViewportRegion for details.

Windows

Default Panel

../../../Projects/SoToggleOnResolution/Modules/mhelp/Images/Screenshots/SoToggleOnResolution._default.png

Input Fields

child

name: child, type: SoNode

The graph for which this module toggles the visibility.

Output Fields

self

name: self, type: SoNode

Parameter Fields

Field Index

Auto scale high DPI: Bool
Height Range End: Integer
Height Range Start: Integer
On: Bool
Ratio Range End: Float
Ratio Range Start: Float
Width Range End: Integer
Width Range Start: Integer

Visible Fields

On

name: on, type: Bool, default: TRUE

Enables this module.

Width Range Start

name: widthRangeStart, type: Integer, default: -1

Child graph is only traversed if the width is greater than this value or if this value is -1.

Width Range End

name: widthRangeEnd, type: Integer, default: -1

Child graph is only traversed if the width is less or equal this value or if this value is -1.

Height Range Start

name: heightRangeStart, type: Integer, default: -1

Child graph is only traversed if the height is greater than this value or if this value is -1.

Height Range End

name: heightRangeEnd, type: Integer, default: -1

Child graph is only traversed if the height is less or equal this value or if this value is -1.

Ratio Range Start

name: ratioRangeStart, type: Float, default: -1

Child graph is only traversed if the aspect ratio (width/heigh) is greater than this value or if this value is -1.

Ratio Range End

name: ratioRangeEnd, type: Float, default: -1

Child graph is only traversed if the aspect ratio (width/heigh) is less or equal this value or if this value is -1.

Auto scale high DPI

name: autoScaleHiDPI, type: Bool, default: TRUE

Enable automatic rescaling of values in high DPI rendering. If true, the values for the range parameters don’t have to be adapted for HiDPI displays.