State
-
class
cee.usg.State() A state connects a geometry to the results (scalar, vector, displacement and transformations) for a given time, frequency, load case etc.
A model can have an arbitrary number of states, but only one can be shown at any given time.
To create an animation you can create multiple states, and then only change the
UnstructGridModel.currentStateIndexproperty to advance the animation.A state must have one and only one geometry.
The state can also have a scalar, vector, displacement and transformation result.
For the results, you only have to specify the results for the parts that have results. Results are mapped to part via the zero based part index.
Index
Accessors
Methods
getBoundingBoxgetFringesResultRangegetPartDisplacementsAtgetPartFringesAtgetPartTransformationAtgetPartVectorsAtgetVectorLengthRangeremoveAllPartDisplacementsremoveAllPartFringesremoveAllPartTransformationsremoveAllPartVectorssetPartDisplacementsAtsetPartFringesAtsetPartTransformationAtsetPartVectorsAt
Accessors
-
cee.usg.State.geometry() - get geometry():
GeometryThe one and only geometry in this state
Returns:
Geometryset geometry(geometry:Geometry): voidParameters
geometry:GeometryReturns: void
-
cee.usg.State.name() - get name(): string
The user defined name of the state
Returns: string
set name(name: string): voidParameters
name: stringReturns: void
-
cee.usg.State.referenceValue() - get referenceValue(): number
The user defined reference value of the state (time, frequency, load case index, etc)
Returns: number
set referenceValue(value: number): voidParameters
value: numberReturns: void
Methods
-
cee.usg.State.getBoundingBox() - getBoundingBox():
BoundingBoxReturns the
BoundingBox(in world coordinates) of the model.Returns:
BoundingBox
-
cee.usg.State.getFringesResultRange() - getFringesResultRange():
RangeGet the min/max value of the scalar result in this part.
Returns:
Range
-
cee.usg.State.getPartDisplacementsAt() - getPartDisplacementsAt(partIndex: number):
PartDisplacementsGet the displacement result at the given zero based index, otherwise null.
Parameters
partIndex: numberReturns:
PartDisplacements
-
cee.usg.State.getPartFringesAt() - getPartFringesAt(partIndex: number):
PartScalarsReturns the
PartScalarsdefining the fringes result shown on the given part. Null when none is specified.Parameters
partIndex: numberReturns:
PartScalars
-
cee.usg.State.getPartTransformationAt() - getPartTransformationAt(partIndex: number):
Mat4Get the transformation matrix for the given part in this state, null if none is specified.
Parameters
partIndex: numberReturns:
Mat4
-
cee.usg.State.getPartVectorsAt() - getPartVectorsAt(partIndex: number):
PartVectorsReturns the
PartVectorsdefining the vector result shown on the given part. Null if not specified.Parameters
partIndex: numberReturns:
PartVectors
-
cee.usg.State.getVectorLengthRange() - getVectorLengthRange():
RangeThe range (min/max) of the vector lengths in all parts
Returns:
Range
-
cee.usg.State.removeAllPartDisplacements() - removeAllPartDisplacements(): void
Remove all displacement results in this state
Returns: void
-
cee.usg.State.removeAllPartFringes() - removeAllPartFringes(): void
Remove all scalar fringes results from this state
Returns: void
-
cee.usg.State.removeAllPartTransformations() - removeAllPartTransformations(): void
Remove the transformation matrices for all parts in this state
Returns: void
-
cee.usg.State.removeAllPartVectors() - removeAllPartVectors(): void
Remove all vector results for all parts in this state
Returns: void
-
cee.usg.State.setPartDisplacementsAt() - setPartDisplacementsAt(partIndex: number, partDisplacements:
PartDisplacements): voidSet the displacement result for the given part in this state
Note: The
PartSettings.displacementVisibleproperty must be true to show the result (default true)Parameters
partIndex: number
partDisplacements:
PartDisplacementsReturns: void
-
cee.usg.State.setPartFringesAt() - setPartFringesAt(partIndex: number, partFringes:
PartScalars): voidSet the scalar result that should be shown as fringes for the given part in this state.
Note: The
PartSettings.fringesVisibleproperty must be true to show the result (default true)Parameters
partIndex: number
partFringes:
PartScalarsReturns: void
-
cee.usg.State.setPartTransformationAt() - setPartTransformationAt(partIndex: number, partTransformationMatrix:
Mat4): voidSet the transformation result (matrix) for the given part in this state.
Parameters
partIndex: number
partTransformationMatrix:
Mat4Returns: void
-
cee.usg.State.setPartVectorsAt() - setPartVectorsAt(partIndex: number, partVectors:
PartVectors): voidSet the vector result that should be shown as vector arrows for the given part in this state.
Note: The
PartSettings.vectorsVisibleproperty must be true to show the result (default true)Parameters
partIndex: number
partVectors:
PartVectorsReturns: void