Uses of Class
com.openinventor.inventor.SbRotation
Packages that use SbRotation
Package
Description
Open Inventor is an object-oriented and OpenGL-based API for real-time 3D visualization.
The element classes are used internally for storing information in Open Inventor's traversal state list.
Viewer components contains helpful tools to implement a custom viewer.
-
Uses of SbRotation in com.openinventor.inventor
Fields in com.openinventor.inventor declared as SbRotationModifier and TypeFieldDescriptionSbMatrix.Decomposition.rotation
SbMatrix.Decomposition.scaleOrientation
Methods in com.openinventor.inventor that return SbRotationModifier and TypeMethodDescriptionSbViewVolume.getAlignRotation()
Calls getAlignRotation(false).SbViewVolume.getAlignRotation
(boolean rightAngleOnly) Returns a rotation that would align a viewed object so that its positive x-axis (of its object space) is to the right in the view and its positive y-axis is up.static SbRotation
SbRotation.identity()
Returns a null rotation.SbRotation.inverse()
Returns the inverse of a rotation.SbRotation.invert()
Changes a rotation to be its inverse.SbRotation.setValue
(float[] components) SbRotation.setValue
(float[] components, int startIndex) SbRotation.setValue
(float q0, float q1, float q2, float q3) Sets value of rotation from 4 individual components of a quaternion.Sets value of rotation from a rotation matrix.Sets rotation from a 3x3 rotation matrix.Sets rotation from a double precision rotation matrix.SbRotation.setValue
(SbRotationd rotated) Sets rotation from a double precision rotation.Sets value of vector from 3D rotation axis vector and angle in radians.Sets rotation to rotate one direction vector to another.static SbRotation
SbRotation.slerp
(SbRotation rot0, SbRotation rot1, float t) Spherical linear interpolation: as t goes from 0 to 1, returned value goes from rot0 to rot1.SbRotation.times
(SbRotation q2) Multiplication of two rotations; results in product of rotations.static SbRotation[]
SbRotation.toArray
(long nativeArray, long length) Methods in com.openinventor.inventor with parameters of type SbRotationModifier and TypeMethodDescriptionboolean
SbRotation.equals
(SbRotation r, float tolerance) Equality comparison within given tolerance - the square of the length of the maximum distance between the two quaternion vectors.void
SbRotation.multiply
(SbRotation q) Multiplies by another rotation; results in product of rotations.void
SbViewVolume.rotateCamera
(SbRotation q) Rotate the camera view direction.void
SbMatrix.setRotate
(SbRotation q) Sets matrix to rotate by given rotation.void
SbMatrix3.setRotate
(SbRotation q) Sets matrix to rotate by given rotation.void
SbMatrix.setTransform
(SbVec3f t, SbRotation r, SbVec3f s) Composes the matrix based on a translation, rotation, and scale.void
SbMatrix.setTransform
(SbVec3f t, SbRotation r, SbVec3f s, SbRotation so) Composes the matrix based on a translation, rotation, scale, and orientation for scale.void
SbMatrix.setTransform
(SbVec3f translation, SbRotation rotation, SbVec3f scaleFactor, SbRotation scaleOrientation, SbVec3f center) Composes the matrix based on a translation, rotation, scale, orientation for scale, and center.void
SbRotation.setValue
(SbRotation copyFrom) SbRotationd.setValue
(SbRotation rotate) Sets rotation from a single precision rotation.static SbRotation
SbRotation.slerp
(SbRotation rot0, SbRotation rot1, float t) Spherical linear interpolation: as t goes from 0 to 1, returned value goes from rot0 to rot1.SbRotation.times
(SbRotation q2) Multiplication of two rotations; results in product of rotations.Constructors in com.openinventor.inventor with parameters of type SbRotation -
Uses of SbRotation in com.openinventor.inventor.elements
Methods in com.openinventor.inventor.elements with parameters of type SbRotationModifier and TypeMethodDescriptionstatic void
SoLocalBBoxMatrixElement.rotateBy
(SoState state, SbRotation rotation) Multiplies a matrix that performs the specified transformation into the local matrix.static void
SoModelMatrixElement.rotateBy
(SoState state, SoNode node, SbRotation rotation) This multiplies a matrix that performs the specified transformation into the model matrix.static void
SoTextureMatrixElement.rotateBy
(SoState state, SoNode node, SbRotation rotation) Multiplies a matrix that performs the specified transformation into the texture matrix. -
Uses of SbRotation in com.openinventor.inventor.events
Methods in com.openinventor.inventor.events that return SbRotationModifier and TypeMethodDescriptionSbTrackerInfo.getOrientation()
Get orientation of tracker as a standard Open Inventor rotation (quaternion).SoControllerButtonEvent.getOrientation()
Get orientation of associated tracker as a standard Open Inventor rotation (quaternion).SoTrackerEvent.getOrientation()
Get orientation of associated tracker as a standard Open Inventor rotation (quaternion).SoMotion3Event.getRotation()
Gets the relative change in rotation since the last rotation event.Methods in com.openinventor.inventor.events with parameters of type SbRotationModifier and TypeMethodDescriptionvoid
SbTrackerInfo.setOrientation
(SbRotation orientation) Set orientation value from anSbRotation
.void
SoControllerButtonEvent.setOrientation
(SbRotation orientation) Set orientation value of associated tracker from anSbRotation
.void
SoTrackerEvent.setOrientation
(SbRotation orientation) Set orientation value of associated tracker from anSbRotation
.void
SoMotion3Event.setRotation
(SbRotation r) Sets the relative change in rotation since the last rotation event. -
Uses of SbRotation in com.openinventor.inventor.fields
Methods in com.openinventor.inventor.fields that return SbRotationModifier and TypeMethodDescriptionSoSFRotation.getValue()
Returns this field's value.SoMFRotation.getValueAt
(int i) SoMFRotation.getValues
(int start) Returns a pointer into the array of values in the field, starting at index start.Methods in com.openinventor.inventor.fields with parameters of type SbRotationModifier and TypeMethodDescriptionint
SoMFRotation.find
(SbRotation targetValue) Calls find(targetValue, false).int
SoMFRotation.find
(SbRotation targetValue, boolean addIfNotFound) Finds the given targetValue in the array and returns the index of that value.void
SoMFRotation.set1Value
(int index, SbRotation newValue) Sets the index'th value in the array to newValue.void
SoMFRotation.setValue
(SbRotation newValue) Sets the first value in the array to newValue, and deletes.void
SoSFRotation.setValue
(SbRotation newValue) Sets this field to newValue.void
SoMFRotation.setValues
(int start, SbRotation[] newValues) Sets num values starting at index start to the values.Constructors in com.openinventor.inventor.fields with parameters of type SbRotationModifierConstructorDescriptionSoSFRotation
(SoFieldContainer fieldContainer, String fieldName, SoField.FieldTypes fieldType, SbRotation defaultValue) Default constructor. -
Uses of SbRotation in com.openinventor.inventor.nodes
Methods in com.openinventor.inventor.nodes that return SbRotationModifier and TypeMethodDescriptionSoRotationXYZ.getRotation()
Returns anSbRotation
equivalent to the specified rotation.Methods in com.openinventor.inventor.nodes with parameters of type SbRotationModifier and TypeMethodDescriptionSoCamera.getViewVolume
(float aspectRatio, float nearDist, float farDist, SbVec3f position, SbRotation rotation) Computes a view volume from the given parameters. -
Uses of SbRotation in com.openinventor.inventor.projectors
Methods in com.openinventor.inventor.projectors that return SbRotationModifier and TypeMethodDescriptionSbCylinderProjector.getRotation
(SbVec3f point1, SbVec3f point2) Gets a rotation given two points on this cylinder projector.SbSphereProjector.getRotation
(SbVec3f point1, SbVec3f point2) Gets a rotation given two points on this sphere projector.SbCylinderProjector.projectAndGetRotation
(SbVec2f point) Applies the projector using the given point, returning the point in three dimensions that it projects to.SbSphereProjector.projectAndGetRotation
(SbVec2f point) Applies the projector using the given point, returning the point in three dimensions that it projects to. -
Uses of SbRotation in com.openinventor.inventor.viewercomponents
Methods in com.openinventor.inventor.viewercomponents that return SbRotationModifier and TypeMethodDescriptionReturns the rotation needed to point a camera at position toward the given target point while keeping the "up" direction of the camera parallel to the specified up vector.Methods in com.openinventor.inventor.viewercomponents with parameters of type SbRotationModifier and TypeMethodDescriptionvoid
SoCameraInteractor.orbit
(SbRotation rotation) Orbit the camera by the specified rotation.void
SoCameraInteractor.rotate
(SbRotation rot) Rotate the camera.void
SoCameraInteractor.setOrientation
(SbRotation rot) Set the orientation of the camera.