Purpose

The module SwapViewer swaps two SoExaminerViewer with individual settings.

Windows

Viewer

../../../Modules/Macros/Viewers/mhelp/Images/Screenshots/SwapViewer.Viewer.png

Settings

../../../Modules/Macros/Viewers/mhelp/Images/Screenshots/SwapViewer.Settings.png

Input Fields

inputScene1

name: inputScene1, type: SoNode

inputScene2

name: inputScene2, type: SoNode

Output Fields

outputScene1

name: outputScene1, type: SoNode

outputScene2

name: outputScene2, type: SoNode

Parameter Fields

Visible Fields

Show decoration (viewer1Decoration)

name: viewer1Decoration, type: Bool, default: FALSE

If checked, the decoration for viewer 1 is shown.

Viewing mode (viewer1Viewing)

name: viewer1Viewing, type: Bool, default: FALSE

If checked, the viewer 1 is in navigation mode; otherwise, it is in editing mode.

View All (viewer1ViewAll)

name: viewer1ViewAll, type: Trigger

If pressed, the whole scene of viewer 1 is shown.

Preset View (viewer1ChooseView)

name: viewer1ChooseView, type: Enum, default: VIEW_ANTERIOR

Defines a preset viewing direction in viewer 1.

Values:

Title Name
Anterior VIEW_ANTERIOR
Posterior VIEW_POSTERIOR
Left VIEW_LEFT
Right VIEW_RIGHT
Superior VIEW_SUPERIOR
Inferior VIEW_INFERIOR

Show ‘Pick/View’ buttons (viewer1ShowPickNView)

name: viewer1ShowPickNView, type: Bool, default: TRUE

If checked, a button for toggling viewing/editing mode in viewer 1 is shown.

Show ‘Home’ buttons (viewer1ShowHome)

name: viewer1ShowHome, type: Bool, default: TRUE

If checked, a button for moving the camera to a home position in viewer 1 is shown.

Show ‘View All’ button (viewer1ShowViewAll)

name: viewer1ShowViewAll, type: Bool, default: TRUE

If checked, a button for showing the whole scene in viewer 1 is shown.

Show ‘Seek’ button (viewer1ShowSeek)

name: viewer1ShowSeek, type: Bool, default: TRUE

If checked, a button for setting a new rotation center in viewer 1 is shown.

Show ‘Projection Type’ button (viewer1ShowProjType)

name: viewer1ShowProjType, type: Bool, default: TRUE

If checked, a button for toggling the projection type in viewer 1 is shown.

Show ASC buttons (viewer1ShowASC)

name: viewer1ShowASC, type: Bool, default: FALSE

If checked, a buttons for setting the viewing direction in viewer 1 is shown.

Alt. Background Color (viewer1BackgroundColor)

name: viewer1BackgroundColor, type: Color, default: 0 0 0

Sets an alternative background color for viewer 1.

Show background (viewer1BackgroundOn)

name: viewer1BackgroundOn, type: Bool, default: FALSE

If checked, a background gradient is shown in viewer 1.

Show decoration (viewer2Decoration)

name: viewer2Decoration, type: Bool, default: TRUE

If checked, the decoration for viewer 2 is shown.

Viewing mode (viewer2Viewing)

name: viewer2Viewing, type: Bool, default: TRUE

If checked, the viewer 2 is in navigation mode; otherwise, it is in editing mode.

View All (viewer2ViewAll)

name: viewer2ViewAll, type: Trigger

If pressed, the whole scene of viewer 2 is shown.

Preset View (viewer2ChooseView)

name: viewer2ChooseView, type: Enum, default: VIEW_ANTERIOR

Defines a preset viewing direction in viewer 2.

Values:

Title Name
Anterior VIEW_ANTERIOR
Posterior VIEW_POSTERIOR
Left VIEW_LEFT
Right VIEW_RIGHT
Superior VIEW_SUPERIOR
Inferior VIEW_INFERIOR

Show ‘Pick/View’ buttons (viewer2ShowPickNView)

name: viewer2ShowPickNView, type: Bool, default: FALSE

If checked, a button for toggling viewing/editing mode in viewer 2 is shown.

Show ‘Home’ buttons (viewer2ShowHome)

name: viewer2ShowHome, type: Bool, default: FALSE

If checked, a button for moving the camera to a home position in viewer 1 is shown.

Show ‘View All’ button (viewer2ShowViewAll)

name: viewer2ShowViewAll, type: Bool, default: TRUE

If checked, a button for showing the whole scene in viewer 2 is shown.

Show ‘Seek’ button (viewer2ShowSeek)

name: viewer2ShowSeek, type: Bool, default: FALSE

If checked, a button for setting a new rotation center in viewer 2 is shown.

Show ‘Projection Type’ button (viewer2ShowProjType)

name: viewer2ShowProjType, type: Bool, default: FALSE

If checked, a button for toggling the projection type in viewer 2 is shown.

Show ASC buttons (viewer2ShowASC)

name: viewer2ShowASC, type: Bool, default: TRUE

If checked, a buttons for setting the viewing direction in viewer 2 is shown.

Alt. Background Color (viewer2BackgroundColor)

name: viewer2BackgroundColor, type: Color, default: 1 1 1

Sets an alternative background color for viewer 2.

Show background (viewer2BackgroundOn)

name: viewer2BackgroundOn, type: Bool, default: FALSE

If checked, a background gradient is shown in viewer 2.

Swap

name: swap, type: Trigger

If pressed, the two viewers are swapped.

Use Viewer 1 settings for Viewer 2

name: synchronizeViewerSettings, type: Bool, default: FALSE

If checked, the settings of viewer 1 are used for viewer 2.

Hidden Fields

swapped

name: swapped, type: Bool, default: FALSE

swappedInt

name: swappedInt, type: Integer, default: 0, minimum: 0, maximum: 1