SoTouchCameraInteraction

InventorModule
author Uwe Siems
package FMEwork/ReleaseMeVis
dll SoTouchCameraInteraction
definition SoTouchCameraInteraction.def
see also SoRenderArea, SoExaminerViewer, RemoteRendering
keywords view, touch

Purpose

This module implements camera steering with an additional headlight, similar to that provided by a SoExaminerViewer.

Usage

Attach the part of the scene you want to have camera control over to the inScene input and the module itself to your inventor scene. If you need to change the mouse button or key bindings from their current defaults, you need to use a SoInteractionMapping module.

Interaction

The default interaction for this module is: Left mouse button: Rotate camera Shift+left mouse button: Pan camera Control+left mouse button: Zoom camera. Middle mouse button: Pan camera Left+Middle mouse button: Zoom camera

You need a SoInteractionMapping module to change this bindings. It is also needed to connect the commands “ViewAll”, “SetHome”, “GotoHome” and “ToggleCamera” to key bindings.

Windows

Default Panel

../../../Modules/Inventor/SoTouchCameraInteraction/mhelp/Images/Screenshots/SoTouchCameraInteraction._default.png

Input Fields

inScene

name: inScene, type: SoNode

Attach the part of the scene you want to have camera control over to this input (if you need to attach more than one element, you need to combine them with a SoGroup or SoSeparator).

Output Fields

self

name: self, type: SoNode

Connect the output e.g. to a SoRenderArea.

Parameter Fields

Field Index

cameraType: Enum isDelayedPan: Bool showSagittal: Trigger
Detect Camera From Scene: Trigger nearDistance: Float Toggle Camera Type: Trigger
Event Mode: Enum orientation: Rotation View All: Trigger
farDistance: Float position: Vector3  
focalDistance: Float Set Home: Trigger  
Goto Home: Trigger showAxial: Trigger  
Headlight: Bool showCoronal: Trigger  
height: Float showOpposite: Trigger  

Visible Fields

View All

name: viewAll, type: Trigger

Set Home

name: setHome, type: Trigger

Goto Home

name: gotoHome, type: Trigger

Toggle Camera Type

name: toggleCamera, type: Trigger

Detect Camera From Scene

name: detectCamera, type: Trigger

Headlight

name: headlight, type: Bool, default: TRUE

Event Mode

name: eventMode, type: Enum, default: SceneFirst

Values:

Title Name
Camera Only CameraOnly
Scene Only SceneOnly
Camera First CameraFirst
Scene First SceneFirst

Hidden Fields

showAxial

name: showAxial, type: Trigger

showCoronal

name: showCoronal, type: Trigger

showSagittal

name: showSagittal, type: Trigger

showOpposite

name: showOpposite, type: Trigger

cameraType

name: cameraType, type: Enum, default: CAMERA_PERSPECTIVE

Values:

Title Name
Perspective CAMERA_PERSPECTIVE
Orthographic CAMERA_ORTHOGRAPHIC

height

name: height, type: Float, default: 0

position

name: position, type: Vector3, default: 0 0 0

orientation

name: orientation, type: Rotation, default: 0 0 1 0

nearDistance

name: nearDistance, type: Float, default: 0

farDistance

name: farDistance, type: Float, default: 0

focalDistance

name: focalDistance, type: Float, default: 0

isDelayedPan

name: isDelayedPan, type: Bool, default: FALSE