Transform

Transform class

A transform contains information that allow access to object’s translate/scale/rotation or transform matrix at minimum cost This is used by local transform. @hideconstructor

Methods

getGeometricTranslation

NameDescription
getGeometricTranslation()Gets or sets the geometric translation. Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


setGeometricTranslation

NameDescription
setGeometricTranslation(value)Gets or sets the geometric translation. Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


getGeometricScaling

NameDescription
getGeometricScaling()Gets or sets the geometric scaling. Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


setGeometricScaling

NameDescription
setGeometricScaling(value)Gets or sets the geometric scaling. Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


getGeometricRotation

NameDescription
getGeometricRotation()Gets or sets the geometric Euler rotation(measured in degree). Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


setGeometricRotation

NameDescription
setGeometricRotation(value)Gets or sets the geometric Euler rotation(measured in degree). Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


getTranslation

NameDescription
getTranslation()Gets or sets the translation

Result:


setTranslation

NameDescription
setTranslation(value)Gets or sets the translation

Result:


getScale

NameDescription
getScale()Gets or sets the scale

Result:


setScale

NameDescription
setScale(value)Gets or sets the scale

Result:


getPreRotation

NameDescription
getPreRotation()Gets or sets the pre-rotation represented in degree

Result:


setPreRotation

NameDescription
setPreRotation(value)Gets or sets the pre-rotation represented in degree

Result:


getPostRotation

NameDescription
getPostRotation()Gets or sets the post-rotation represented in degree

Result:


setPostRotation

NameDescription
setPostRotation(value)Gets or sets the post-rotation represented in degree

Result:


getEulerAngles

NameDescription
getEulerAngles()Gets or sets the rotation represented in Euler angles, measured in degree

Result:


setEulerAngles

NameDescription
setEulerAngles(value)Gets or sets the rotation represented in Euler angles, measured in degree

Result:


getRotation

NameDescription
getRotation()Gets or sets the rotation represented in quaternion.

Result:


setRotation

NameDescription
setRotation(value)Gets or sets the rotation represented in quaternion.

Result:


getTransformMatrix

NameDescription
getTransformMatrix()Gets or sets the transform matrix. Assign on this will reset the Translation, Scale and Rotation, the GeometricRotation, GeometricScaling and GeometricTranslation will not be affected.

Result:


setTransformMatrix

NameDescription
setTransformMatrix(value)Gets or sets the transform matrix. Assign on this will reset the Translation, Scale and Rotation, the GeometricRotation, GeometricScaling and GeometricTranslation will not be affected.

Result:


getName

NameDescription
getName()Gets or sets the name. The name.

Result:


setName

NameDescription
setName(value)Gets or sets the name. The name.

Result:


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result:


setGeometricTranslation

NameDescription
setGeometricTranslation(x, y, z)Sets the geometric translation. Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


setGeometricScaling

NameDescription
setGeometricScaling(sx, sy, sz)Sets the geometric scaling. Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


setGeometricRotation

NameDescription
setGeometricRotation(rx, ry, rz)Sets the geometric Euler rotation(measured in degree). Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

Result:


setTranslation

NameDescription
setTranslation(tx, ty, tz)Sets the translation of current transform.

Parameters:

NameTypeDescription
tNumbernull
tNumbernull
tNumbernull

Result: Transform


setScale

NameDescription
setScale(sx, sy, sz)Sets the scale of current transform.

Parameters:

NameTypeDescription
sNumbernull
sNumbernull
sNumbernull

Result: Transform


setEulerAngles

NameDescription
setEulerAngles(rx, ry, rz)Sets the Euler angles in degrees of current transform.

Parameters:

NameTypeDescription
rNumbernull
rNumbernull
rNumbernull

Result: Transform


setRotation

NameDescription
setRotation(rw, rx, ry, rz)Sets the rotation(as quaternion components) of current transform.

Parameters:

NameTypeDescription
rNumbernull
rNumbernull
rNumbernull
rNumbernull

Result: Transform


setPreRotation

NameDescription
setPreRotation(rx, ry, rz)Sets the pre-rotation represented in degree

Result: Transform


setPostRotation

NameDescription
setPostRotation(rx, ry, rz)Sets the post-rotation represented in degree

Result: Transform


removeProperty

NameDescription
removeProperty(property)Removes a dynamic property.

Parameters:

NameTypeDescription
propertyPropertyWhich property to remove

Result: boolean


removeProperty

NameDescription
removeProperty(property)Remove the specified property identified by name

Parameters:

NameTypeDescription
propertStringnull

Result: boolean


getProperty

NameDescription
getProperty(property)Get the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name

Result: Object


setProperty

NameDescription
setProperty(property, value)Sets the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name
valueObjectThe value of the property

Result: Object


findProperty

NameDescription
findProperty(propertyName)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

NameTypeDescription
propertyNameStringProperty name.

Result: Property