public class SoAntiSquish extends SoTransformation
SoTrackballDragger
that need to stay uniformly scaled no matter where they are located in the scene graph.
The magnitude of the new scale is determined by the current transformation matrix and the sizing field. This node does not change the translation or rotation in the matrix.
File format/default:
AntiSquish {
sizing | AVERAGE_DIMENSION |
recalcAlways | true |
Action behavior:
SoGLRenderAction
, SoCallbackAction
, SoGetBoundingBoxAction
, SoGetMatrixAction
, SoRayPickAction
Appends the current transformation with a new matrix to create an unsquished result.
See also:
SoCenterballDragger
, SoJackDragger
, SoTrackballDragger
, SoTransformerDragger
, SoTransformation
, SoTransformBoxDragger
Modifier and Type | Class and Description |
---|---|
static class |
SoAntiSquish.Sizings
Sizing.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
AVERAGE_DIMENSION
Deprecated.
Use
SoAntiSquish.Sizings.AVERAGE_DIMENSION instead. |
static int |
BIGGEST_DIMENSION
Deprecated.
Use
SoAntiSquish.Sizings.BIGGEST_DIMENSION instead. |
static int |
LONGEST_DIAGONAL
Deprecated.
Use
SoAntiSquish.Sizings.LONGEST_DIAGONAL instead. |
SoSFBool |
recalcAlways
If recalcAlways is true, this node calculates its unsquishing matrix every time it is traversed.
|
SoSFEnum<SoAntiSquish.Sizings> |
sizing
Determines which of the algorithms enumerated by the type Sizing will be used to select the new scale when the x,y, and z scales are not equal.
|
static int |
SMALLEST_DIMENSION
Deprecated.
Use
SoAntiSquish.Sizings.SMALLEST_DIMENSION instead. |
static int |
X
Deprecated.
Use
SoAntiSquish.Sizings.X instead. |
static int |
Y
Deprecated.
Use
SoAntiSquish.Sizings.Y instead. |
static int |
Z
Deprecated.
Use
SoAntiSquish.Sizings.Z instead. |
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoAntiSquish()
Creates an anti-squish node with default settings.
|
Modifier and Type | Method and Description |
---|---|
void |
recalc()
Sets a flag so that the next time the node is traversed, it will recalculate its unsquishing matrix.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int X
SoAntiSquish.Sizings.X
instead.@Deprecated public static final int Y
SoAntiSquish.Sizings.Y
instead.@Deprecated public static final int Z
SoAntiSquish.Sizings.Z
instead.@Deprecated public static final int AVERAGE_DIMENSION
SoAntiSquish.Sizings.AVERAGE_DIMENSION
instead.@Deprecated public static final int BIGGEST_DIMENSION
SoAntiSquish.Sizings.BIGGEST_DIMENSION
instead.@Deprecated public static final int SMALLEST_DIMENSION
SoAntiSquish.Sizings.SMALLEST_DIMENSION
instead.@Deprecated public static final int LONGEST_DIAGONAL
SoAntiSquish.Sizings.LONGEST_DIAGONAL
instead.public final SoSFEnum<SoAntiSquish.Sizings> sizing
Generated on August 20, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com