SORESETTRANSFORM(3iv)
π SoResetTransform π
okay bestie, gather round, because this page is SoResetTransform(3IV) and it's honestly a whole vibe check for your scene graph. It's the node that hits the "undo my whole entire position" button. Let's get into it π
π¦ NAME
SoResetTransform β the node that resets the current transformation back to identity. Like, boom, you're at the origin again, no cap.
𧬠INHERITS FROM
SoBase > SoFieldContainer > SoNode > SoTransformation > SoResetTransform
so it's got the whole family tree behind it, generations of glow-up β¨
π SYNOPSIS
#include <Inventor/nodes/SoResetTransform.h>
enum ResetType {
SoResetTransform::TRANSFORM Reset the current transformation to
identity
SoResetTransform::BBOX Reset the bounding box to empty
}
Fields from class SoResetTransform:
SoSFBitMask whatToReset
Methods from class SoResetTransform:
SoResetTransform()static SoType getClassTypeId()
Methods from class SoNode β the hand-me-downs, and we love them:
void setOverride(SbBool state)SbBool isOverride() constSoNode * copy(SbBool copyConnections = FALSE) constvirtual SbBool affectsState() conststatic SoNode * getByName(const SbName &name)static int getByName(const SbName &name, SoNodeList &list)
Methods from class SoFieldContainer β the whole squad:
void setToDefaults()SbBool hasDefaultValues() constSbBool fieldsAreEqual(const SoFieldContainer *fc) constvoid copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)SbBool set(const char *fieldDataString)void get(SbString &fieldDataString)virtual int getFields(SoFieldList &resultList) constvirtual SoField * getField(const SbName &fieldName) constSbBool getFieldName(const SoField *field, SbName &fieldName) constSbBool isNotifyEnabled() constSbBool enableNotify(SbBool flag)
Methods from class SoBase β the ancestors, iconic as always:
void ref()void unref() constvoid unrefNoDelete() constvoid touch()virtual SoType getTypeId() constSbBool isOfType(SoType type) constvirtual void setName(const SbName &name)virtual SbName getName() const
π DESCRIPTION
So this node resets the current transformation to identity. That's the main character move. You use it when you wanna apply an absolute world space transformation afterwards β like translating to a specific point from inside a hierarchy, which, yes, is exactly as powerful as it sounds.
bestie listen: anSoResetTransformnode should probably live under anSoSeparatororSoTransformSeparator, so it won't go changing transformations for the rest of the scene graph. Nobody wants that kind of chaos in their file π«Ά
It can also do a second little trick: resetting the current bounding box to empty during traversal of an SoGetBoundingBoxAction, but only if the whatToReset field has the BBOX bit set. Bit flags, we stan.
π FIELDS
SoSFBitMask whatToResetβ tells the node which items to reset when it gets traversed. That's it, that's the field, she's simple and she's efficient.
πΈ METHODS
SoResetTransform()β creates a reset transformation node with default settings. Fresh out the box, defaults on, ready to go β¨static SoType getClassTypeId()β returns the type identifier for this class. iykyk.
π₯ ACTION BEHAVIOR
SoGLRenderAction,SoCallbackAction,SoRayPickActionβ if specified, resets the current transformation matrix to identity. Slay.SoGetBoundingBoxActionβ if specified, resets the current transformation matrix to identity and sets the current computed bounding box to be empty. Double reset, double iconic πSoGetMatrixActionβ returns the identity matrix. Periodt.
π FILE FORMAT/DEFAULTS
ResetTransform {
whatToReset TRANSFORM
}
look at her, defaulting to TRANSFORM, minding her own business π§
π«Ά SEE ALSO
SoTransform
and that's the page, bestie π this one lives in the 3IV manual set, and the footer stamp on it reads SoResetTransform(3IV)() β that's your source/version tag right there, no date on it, so don't come for me about timestamps π go forth and reset those transformations, you absolute legend ππ
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms