Uses of Class
com.openinventor.inventor.SbRotation
-
Packages that use SbRotation Package Description com.openinventor.inventor Open Inventor is an object-oriented and OpenGL-based API for real-time 3D visualization.com.openinventor.inventor.elements The element classes are used internally for storing information in Open Inventor's traversal state list.com.openinventor.inventor.events com.openinventor.inventor.fields com.openinventor.inventor.nodes com.openinventor.inventor.projectors com.openinventor.inventor.viewercomponents Viewer components contains helpful tools to implement a custom viewer. -
-
Uses of SbRotation in com.openinventor.inventor
Fields in com.openinventor.inventor declared as SbRotation Modifier and Type Field Description SbRotation
SbMatrix.Decomposition. rotation
SbRotation
SbMatrix.Decomposition. scaleOrientation
Methods in com.openinventor.inventor that return SbRotation Modifier and Type Method Description SbRotation
SbViewVolume. getAlignRotation()
Calls getAlignRotation(false).SbRotation
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
SbRotation. inverse()
Returns the inverse of a rotation.SbRotation
SbRotation. invert()
Changes a rotation to be its inverse.SbRotation
SbRotation. setValue(float[] components)
SbRotation
SbRotation. setValue(float[] components, int startIndex)
SbRotation
SbRotation. setValue(float q0, float q1, float q2, float q3)
Sets value of rotation from 4 individual components of a quaternion.SbRotation
SbRotation. setValue(SbMatrix m)
Sets value of rotation from a rotation matrix.SbRotation
SbRotation. setValue(SbMatrix3 m)
Sets rotation from a 3x3 rotation matrix.SbRotation
SbRotation. setValue(SbMatrixd md)
Sets rotation from a double precision rotation matrix.SbRotation
SbRotation. setValue(SbRotationd rotated)
Sets rotation from a double precision rotation.SbRotation
SbRotation. setValue(SbVec3f axis, float radians)
Sets value of vector from 3D rotation axis vector and angle in radians.SbRotation
SbRotation. setValue(SbVec3f rotateFrom, SbVec3f rotateTo)
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
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 SbRotation Modifier and Type Method Description boolean
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
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
SbRotation. times(SbRotation q2)
Multiplication of two rotations; results in product of rotations.Constructors in com.openinventor.inventor with parameters of type SbRotation Constructor Description SbRotation(SbRotation copyFrom)
-
Uses of SbRotation in com.openinventor.inventor.elements
Methods in com.openinventor.inventor.elements with parameters of type SbRotation Modifier and Type Method Description static 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 SbRotation Modifier and Type Method Description SbRotation
SbTrackerInfo. getOrientation()
Get orientation of tracker as a standard Open Inventor rotation (quaternion).SbRotation
SoControllerButtonEvent. getOrientation()
Get orientation of associated tracker as a standard Open Inventor rotation (quaternion).SbRotation
SoTrackerEvent. getOrientation()
Get orientation of associated tracker as a standard Open Inventor rotation (quaternion).SbRotation
SoMotion3Event. getRotation()
Gets the relative change in rotation since the last rotation event.Methods in com.openinventor.inventor.events with parameters of type SbRotation Modifier and Type Method Description void
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 SbRotation Modifier and Type Method Description SbRotation
SoSFRotation. getValue()
Returns this field's value.SbRotation
SoMFRotation. getValueAt(int i)
SbRotation[]
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 SbRotation Modifier and Type Method Description int
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 SbRotation Constructor Description SoSFRotation(SoFieldContainer fieldContainer, java.lang.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 SbRotation Modifier and Type Method Description SbRotation
SoRotationXYZ. getRotation()
Returns anSbRotation
equivalent to the specified rotation.Methods in com.openinventor.inventor.nodes with parameters of type SbRotation Modifier and Type Method Description SbViewVolume
SoCamera. 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 SbRotation Modifier and Type Method Description SbRotation
SbCylinderProjector. getRotation(SbVec3f point1, SbVec3f point2)
Gets a rotation given two points on this cylinder projector.SbRotation
SbSphereProjector. getRotation(SbVec3f point1, SbVec3f point2)
Gets a rotation given two points on this sphere projector.SbRotation
SbCylinderProjector. projectAndGetRotation(SbVec2f point)
Applies the projector using the given point, returning the point in three dimensions that it projects to.SbRotation
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 SbRotation Modifier and Type Method Description SbRotation
SoCameraInteractor. lookAt(SbVec3f position, SbVec3f target, SbVec3f up)
Returns 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 SbRotation Modifier and Type Method Description void
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.
-