SoSFRotation Class |
Field containing a rotation.
Namespace: OIV.Inventor.Fields
The SoSFRotation type exposes the following members.
Name | Description | |
---|---|---|
SoSFRotation | Default constructor. |
Name | Description | |
---|---|---|
AppendConnection(SoEngineOutput) | Appends this field to the list of connections from another engineOutput. | |
AppendConnection(SoField) | Appends this field to the list of connections from another field. | |
ConnectFrom(SoEngineOutput) | Connects this field from an engine output. | |
ConnectFrom(SoField) | Connects this field to another field. | |
CopyFrom | Copy from another field of same type. | |
Disconnect | Disconnect the field from whatever it was connected to. | |
Disconnect(SoEngineOutput) | Disconnect the field from the requested engineOutput. | |
Disconnect(SoField) | Disconnect the field from the requested field. | |
EnableConnection | Field connections may be enabled and disabled. | |
Equals | (Overrides SoFieldEquals(Object).) | |
Get | Returns the value of the field in the Open Inventor file format, even if the field has its default value. | |
GetConnectedEngine | Returns true if this field is being written into by an engine, and returns the engine output it is connected to in engineOutput. | |
GetConnectedField | Returns true if this field is being written into by another field, and returns the field it is connected to in writingField. | |
GetConnections | Returns a list of the connections to this field. | |
GetContainer | Returns the object that contains this field. | |
GetForwardConnections | Adds references to all of the fields that this field is writing into (either fields in nodes, global fields or engine inputs) to the given field list, and returns the number of forward connections. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetNumConnections | Returns the number of connections to this field. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue | Obsolete. Returns this field's value. | |
GetValue(SbVec3f, Single) | Gets the value of the field as an axis/angle. | |
GetValueSize | Gets the size of the value. | |
IsConnected | Returns true if the field is connected to anything. | |
IsConnectedFromEngine | Returns true if the field is connected to an engine's output. | |
IsConnectedFromField | Returns true if the field is connected to another field. | |
IsConnectedFromVRMLInterp | Returns true if the field is connected to a VRML interpOutput. | |
IsConnectionEnabled | Returns false if connections to this field are disabled. | |
IsDefault | Gets the state of default flag of the field. | |
IsIgnored | Gets the ignore flag for this field. | |
Set | Sets the field to the given value, which is an ASCII string in the Open Inventor file format. | |
SetIgnored | Sets the ignore flag for this field. | |
SetValue(Single) | Sets the field to the given quaternion (x, y, z, w). | |
SetValue(SbRotation) | Obsolete. Sets this field to newValue. | |
SetValue(SbRotationd) | Convenience method that allows you to specify a field value using a double precision variable. | |
SetValue(SbVec3f, Single) | Sets the field to the rotation given by axis/angle. | |
SetValue(Single, Single, Single, Single) | Sets the field to the given quaternion (x, y, z, w). | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Touch | Simulates a change to the field, causing attached sensors to fire, connected fields and engines to be marked as needing evaluation, and so forth. |
Name | Description | |
---|---|---|
Equality | ||
Inequality |
A field containing a single OIV.Inventor.SbRotation (an arbitrary rotation).
SoSFRotations are written to file as four floating point values separated by whitespace. The 4 values represent an axis of rotation followed by the amount of right-handed rotation about that axis, in radians. For example, a 180 degree rotation about the Y axis is:
0 1 0 3.14159265NOTE: When you specify an OIV.Inventor.Fields.SoSFRotation value using setValue with 4 floating point values, those values will be interpreted as a quaternion (x, y, z, w) rather than an axis and a rotation. To specify an OIV.Inventor.Fields.SoSFRotation value using an axis and a rotation, you must use the following method: OIV.Inventor.Fields.SoSFRotation.SetValue(OIV.Inventor.SbVec3f, System.Single).