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 SbRotationSbMatrix.Decomposition. rotationSbRotationSbMatrix.Decomposition. scaleOrientationMethods in com.openinventor.inventor that return SbRotation Modifier and Type Method Description SbRotationSbViewVolume. getAlignRotation()Calls getAlignRotation(false).SbRotationSbViewVolume. 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 SbRotationSbRotation. identity()Returns a null rotation.SbRotationSbRotation. inverse()Returns the inverse of a rotation.SbRotationSbRotation. invert()Changes a rotation to be its inverse.SbRotationSbRotation. setValue(float[] components)SbRotationSbRotation. setValue(float[] components, int startIndex)SbRotationSbRotation. setValue(float q0, float q1, float q2, float q3)Sets value of rotation from 4 individual components of a quaternion.SbRotationSbRotation. setValue(SbMatrix m)Sets value of rotation from a rotation matrix.SbRotationSbRotation. setValue(SbMatrix3 m)Sets rotation from a 3x3 rotation matrix.SbRotationSbRotation. setValue(SbMatrixd md)Sets rotation from a double precision rotation matrix.SbRotationSbRotation. setValue(SbRotationd rotated)Sets rotation from a double precision rotation.SbRotationSbRotation. setValue(SbVec3f axis, float radians)Sets value of vector from 3D rotation axis vector and angle in radians.SbRotationSbRotation. setValue(SbVec3f rotateFrom, SbVec3f rotateTo)Sets rotation to rotate one direction vector to another.static SbRotationSbRotation. slerp(SbRotation rot0, SbRotation rot1, float t)Spherical linear interpolation: as t goes from 0 to 1, returned value goes from rot0 to rot1.SbRotationSbRotation. 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 booleanSbRotation. equals(SbRotation r, float tolerance)Equality comparison within given tolerance - the square of the length of the maximum distance between the two quaternion vectors.voidSbRotation. multiply(SbRotation q)Multiplies by another rotation; results in product of rotations.voidSbViewVolume. rotateCamera(SbRotation q)Rotate the camera view direction.voidSbMatrix. setRotate(SbRotation q)Sets matrix to rotate by given rotation.voidSbMatrix3. setRotate(SbRotation q)Sets matrix to rotate by given rotation.voidSbMatrix. setTransform(SbVec3f t, SbRotation r, SbVec3f s)Composes the matrix based on a translation, rotation, and scale.voidSbMatrix. setTransform(SbVec3f t, SbRotation r, SbVec3f s, SbRotation so)Composes the matrix based on a translation, rotation, scale, and orientation for scale.voidSbMatrix. 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.voidSbRotation. setValue(SbRotation copyFrom)SbRotationdSbRotationd. setValue(SbRotation rotate)Sets rotation from a single precision rotation.static SbRotationSbRotation. slerp(SbRotation rot0, SbRotation rot1, float t)Spherical linear interpolation: as t goes from 0 to 1, returned value goes from rot0 to rot1.SbRotationSbRotation. 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 voidSoLocalBBoxMatrixElement. rotateBy(SoState state, SbRotation rotation)Multiplies a matrix that performs the specified transformation into the local matrix.static voidSoModelMatrixElement. rotateBy(SoState state, SoNode node, SbRotation rotation)This multiplies a matrix that performs the specified transformation into the model matrix.static voidSoTextureMatrixElement. 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 SbRotationSbTrackerInfo. getOrientation()Get orientation of tracker as a standard Open Inventor rotation (quaternion).SbRotationSoControllerButtonEvent. getOrientation()Get orientation of associated tracker as a standard Open Inventor rotation (quaternion).SbRotationSoTrackerEvent. getOrientation()Get orientation of associated tracker as a standard Open Inventor rotation (quaternion).SbRotationSoMotion3Event. 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 voidSbTrackerInfo. setOrientation(SbRotation orientation)Set orientation value from anSbRotation.voidSoControllerButtonEvent. setOrientation(SbRotation orientation)Set orientation value of associated tracker from anSbRotation.voidSoTrackerEvent. setOrientation(SbRotation orientation)Set orientation value of associated tracker from anSbRotation.voidSoMotion3Event. 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 SbRotationSoSFRotation. getValue()Returns this field's value.SbRotationSoMFRotation. 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 intSoMFRotation. find(SbRotation targetValue)Calls find(targetValue, false).intSoMFRotation. find(SbRotation targetValue, boolean addIfNotFound)Finds the given targetValue in the array and returns the index of that value.voidSoMFRotation. set1Value(int index, SbRotation newValue)Sets the index'th value in the array to newValue.voidSoMFRotation. setValue(SbRotation newValue)Sets the first value in the array to newValue, and deletes.voidSoSFRotation. setValue(SbRotation newValue)Sets this field to newValue.voidSoMFRotation. 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 SbRotationSoRotationXYZ. getRotation()Returns anSbRotationequivalent to the specified rotation.Methods in com.openinventor.inventor.nodes with parameters of type SbRotation Modifier and Type Method Description SbViewVolumeSoCamera. 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 SbRotationSbCylinderProjector. getRotation(SbVec3f point1, SbVec3f point2)Gets a rotation given two points on this cylinder projector.SbRotationSbSphereProjector. getRotation(SbVec3f point1, SbVec3f point2)Gets a rotation given two points on this sphere projector.SbRotationSbCylinderProjector. projectAndGetRotation(SbVec2f point)Applies the projector using the given point, returning the point in three dimensions that it projects to.SbRotationSbSphereProjector. 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 SbRotationSoCameraInteractor. 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 voidSoCameraInteractor. orbit(SbRotation rotation)Orbit the camera by the specified rotation.voidSoCameraInteractor. rotate(SbRotation rot)Rotate the camera.voidSoCameraInteractor. setOrientation(SbRotation rot)Set the orientation of the camera.
-