File: SoXtConstrainedViewer.ivm

package info (click to toggle)
inventor 2.1.5-10-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 32,884 kB
  • ctags: 21,728
  • sloc: ansic: 33,861; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 358; perl: 234; awk: 141; makefile: 74; csh: 35; sed: 11
file content (25 lines) | stat: -rw-r--r-- 927 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
NAME SoXtConstrainedViewer SoXtConstrVwr "" {
base viewer class which adds camera constraints given a world up direction
}

INCLUDE Xt/viewers/SoXtConstrainedViewer.h

DESC {
This is a base class for the \cSoXtWalkViewer\.  and \cSoXtFlyViewer\.
component viewers. This class adds methods and convenience routines 
available to subclasses to constrain the camera given a world up direction.
This prevents the camera from looking upside down. By default the +Y 
direction is used.
}

METHOD setUpDir void setUpDirection(const SbVec3f &newUpDirection) {}
METHOD getUpDir SbVec3f	    getUpDirection()
{
Specifies the upward direction of the viewer. This up direction is
used by the viewers to constrain the camera when tilting up/down, and
also used when rotating the camera right/left.
The default is the +Y (0,1,0) direction.
}

ALSO { SoXtFullViewer, SoXtViewer, SoXtComponent, SoXtRenderArea, 
SoXtWalkViewer, SoXtFlyViewer }