Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SoRotationXYZ — node representing a 3D rotation about the x-, y-, or z-axis

Action Behavior

SoGLRenderAction,SoCallbackAction,SoGetBoundingBoxAction,SoRayPickAction
          Accumulates rotation transformation into the current transformation.

     SoGetMatrixAction
          Returns the matrix corresponding to the rotation.

Description

       This  node  defines a 3D rotation about one of the three principal axes. The rotation is accumulated into
       the current transformation, which is applied to subsequent shapes.

Fields

SoSFEnumaxis
          Rotation axis.

     SoSFFloatangle
          Rotation angle (in radians), using the right-hand rule.

File Format/Defaults

RotationXYZ{axisXangle0}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoTransformation > SoRotationXYZ

Methods

SoRotationXYZ()
          Creates a rotation node with default settings.

     SbRotationgetRotation()const
          Returns an SbRotation equivalent to the specified rotation.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoRotationXYZ — node representing a 3D rotation about the x-, y-, or z-axis

See Also

SoRotation,SoTransformSoRotationXYZ(3IV)()

Synopsis

#include<Inventor/nodes/SoRotationXYZ.h>enumAxis{SoRotationXYZ::X    The x-axis
          SoRotationXYZ::Y    The y-axis
          SoRotationXYZ::Z    The z-axis
     }

          Fields from class SoRotationXYZ:

     SoSFEnumaxisSoSFFloatangle

          Methods from class SoRotationXYZ:

                         SoRotationXYZ()SbRotationgetRotation()conststaticSoTypegetClassTypeId()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also