Click or drag to resize

SceneVisual Methods

The SceneVisual type exposes the following members.

Methods
  NameDescription
Public methodAddAspect(Object) (Inherited from CoreVisual.)
Public methodAddAspect(Object, Boolean) Obsolete. (Inherited from Visual.)
Public methodCode exampleAddAspectT(T)
Add an aspect instance.
(Inherited from Visual.)
Public methodAddAspectT(T, Boolean) Obsolete. (Inherited from Visual.)
Public methodCode exampleAddCustomProperty(String, Object, String)
Add a custom property to the visual. If the custom property already exists, then this call will update its value and description.
(Inherited from Visual.)
Public methodCode exampleAddCustomProperty(String, Type, Object, String)
Add a custom property to the visual. If the custom property already exists, then this call will update its value, type and description.

Note: For most uses, AddCustomProperty(String, Object, String) or AddSimpleProperty(String, Object, String) is more suitable, because there is no need to pass the type parameter; it is taken automatically from the value. The only exception is if the value passed in is null, since we can't extract the type.

(Inherited from Visual.)
Public methodAddSimpleProperty(String, Object, String)
Add a custom property and also add a PropertyAlias for that new customer property making it appear as a Simple Property.
(Inherited from Visual.)
Public methodAddSimpleProperty(String, Type, Object, String)
Add a custom property and also add a PropertyAlias for that new customer property making it appear as a Simple Property.
(Inherited from Visual.)
Public methodAddTemporaryProperty(String, Object)
Create a temporary custom property that won't persistent on disk when saved. The property will also be hidden in the user interface.
(Inherited from Visual.)
Public methodAddTemporaryProperty(String, Object, String)
Create a temporary custom property that won't persistent on disk when saved. The property will also be hidden in the user interface.
(Inherited from Visual.)
Public methodAddTemporaryProperty(String, Type, Object)
Create a temporary custom property that won't persistent on disk when saved. The property will also be hidden in the user interface.
(Inherited from Visual.)
Public methodAddTemporaryProperty(String, Type, Object, String)
Create a temporary custom property that won't persistent on disk when saved. The property will also be hidden in the user interface.
(Inherited from Visual.)
Public methodCode exampleAlignToFloor
Align the mesh bounding box of the Visual to the default FloorVisual of the Scene.
(Inherited from Visual.)
Public methodCode exampleAlignToFloor(Visual)
Align the mesh bounding box of the Visual to the specified FloorVisual. Pass 'null' or the SceneVisual to align to the default FloorVisual of the Scene.
(Inherited from Visual.)
Public methodCancelAnimators
Cancel any animations that are currently in progress.
(Inherited from Visual.)
Public methodChildrenAsList
Return a List<Visual> representing all the children of this visual
(Inherited from Visual.)
Public methodCode exampleClone
Create a copy of a visual and its children placed in the top level scene.
(Inherited from Visual.)
Public methodConnectedVisual
Find the visual that is attached to the supplied connectorName.
(Inherited from Visual.)
Public methodCode exampleConnectTo(String, Visual, String)
Connect the visual to another visual with the corresponding connector names. This connection replaces any existing connections on this or the other visual's connector.
(Inherited from Visual.)
Public methodCode exampleConnectTo(String, Visual, String, Boolean)
Connect the visual to another visual with the corresponding connector names. This connection replaces any existing connections on this or the other visual's connector, unless allowMultiple is true, in which case this connection is added to existing connections.
(Inherited from Visual.)
Public methodContains
Is the visual contained by the visual tree from this point down?
(Inherited from Visual.)
Public methodContainsChild
Is the child a direct child of the visual.
(Inherited from Visual.)
Public methodCustomPropertyDefined

DEPRECATED: USE HasCustomProperty(String) INSTEAD.

Determines whether a custom property has been defined or not.
(Inherited from Visual.)
Public methodStatic memberDefaultFactory
Public methodDelete
Delete this visual. If it is in a Document, it is removed from the document as well.
(Inherited from Visual.)
Public methodCode exampleDisconnect
Disconnect any connections on the supplied connector name.
(Inherited from Visual.)
Public methodFadeToColorDeep
Animate the primary color of a visual and all its descendants in a given time.
(Inherited from Visual.)
Public methodFadeToTransparencyDeep
Animate the transparency of a visual and all its descendants in a given time.
(Inherited from Visual.)
Public methodFilteredChildren
Return the collection of child Visuals that match the given predicate.
(Inherited from Visual.)
Public methodFilteredDescendants
Return all visuals below this point in the Visual hierarchy that match the given predicate.
(Inherited from Visual.)
Public methodFindAncestorsAspectT
Find the first aspect of type T on one of the visuals ancestors (parent, grand-parent, etc.).
(Inherited from Visual.)
Public methodFindAncestorsAspectsT
Finds all aspects of type T on any of this visual's ancestors.
(Inherited from Visual.)
Public methodFindAspect(Type)
Finds and returns an aspect of a given type.
(Inherited from CoreVisual.)
Public methodFindAspectT
Finds and returns an aspect of a given type.
(Inherited from CoreVisual.)
Public methodFindAspectsT
Find all aspects that can be cast to the given type.
(Inherited from CoreVisual.)
Public methodFindChild
Look through children and their children to find the first visual of a given name. Breadth first search.
(Inherited from Visual.)
Public methodFindConnector
Find a named connector on a conveyor object, e.g. "Start"
(Inherited from Visual.)
Public methodFindCreateAspect(Type)
Finds an aspect if it exists or Adds a new one if it doesn't exist.
(Inherited from CoreVisual.)
Public methodFindCreateAspectT
Finds an aspect if it exists or adds a new one if it doesn't exist.
(Inherited from CoreVisual.)
Public methodFindCreateConnector
Find or create a connector of the supplied name.
(Inherited from Visual.)
Public methodFindCreateManagedAspectT (Inherited from Visual.)
Public methodFindCustomProperty
Find a custom property by name if it exists. Otherwise return null.
(Inherited from Visual.)
Public methodFindDotNetType (Inherited from Visual.)
Public methodFindFirstOfType
Like FindType except it return the first instance of that type.
(Inherited from Visual.)
Public methodFindImmediateChild
Look through children to find a named visual.
(Inherited from Visual.)
Public methodFindImmediateChildren
Look through children to find all immediate children with a given name.
(Inherited from Visual.)
Public methodFindImmediateType(Type)
Find all the objects in the Children of type Type (immediate children only)
(Inherited from Visual.)
Public methodFindImmediateType(Type, IList)
Find all the objects in the Children of type Type (immediate children only)
(Inherited from Visual.)
Public methodFindParent(PredicateVisual)
Go back up through the parents of visuals to find a particular parent that matches the supplied predicate.
(Inherited from Visual.)
Public methodFindParent(Type)
Go back up through the parents of visuals to find a particular parent type.
(Inherited from Visual.)
Public methodFindType(Type)
Find all the objects in the Descendants of type Type (all descendants)
(Inherited from Visual.)
Public methodFindType(Type, IList)
Find all the objects in the Descendants of type Type (all descendants)
(Inherited from Visual.)
Public methodCode exampleFindVisualAndAncestorsAspectT
Find the first aspect of type T on this visual or one of its ancestors (parents, grand-parents, etc.).
(Inherited from Visual.)
Public methodCode exampleFindVisualAndAncestorsAspectsT
Finds all aspects of type T on this visual or its ancestors.
(Inherited from Visual.)
Public methodCode exampleFindVisualAndDescendantsAspectT
Find the first aspect of type T on this visual or one of its descendents (children recursively)
(Inherited from Visual.)
Public methodCode exampleFindVisualAndDescendantsAspectsT
Find all aspects of type T on this visual or one of its descendents (children recursively)
(Inherited from Visual.)
Public methodFindVisualType
Find all the visuals that have their Type field set to 'type'.
(Inherited from Visual.)
Public methodFreeze
Hold the load in one position by making it kinematic.
(Inherited from Visual.)
Public methodGetCustomProperty
Get the container class for a custom property, or null if it doesn't exist.
(Inherited from Visual.)
Public methodGetCustomPropertyValue(String)
Get the value of a custom property, or null if it doesn't exist.
(Inherited from Visual.)
Public methodGetCustomPropertyValueT(String, T)
Get the value of a custom property, or a defaultValue if it doesn't exist.
(Inherited from Visual.)
Public methodGoToInitialPosition
Set the Location and Rotation of the Visual to be the same as the InitialLocation and InitialRotation.
(Inherited from Visual.)
Public methodGoToInitialRotation
Set the Rotation of the Visual to be the same as the InitialRotation. The Location remains unchanged.
(Inherited from Visual.)
Public methodCode exampleHasAspectT
Returns whether an aspect of a given type can be found on the visual.
(Inherited from Visual.)
Public methodCode exampleHasCustomProperty
Determines whether a custom property has been defined or not.
(Inherited from Visual.)
Public methodInitializeDefault (Inherited from Visual.)
Public methodIsAncestorOf
Is this Visual a parent, grandparent, great grandparent etc. of the potentialChild.
(Inherited from Visual.)
Public methodIsDeleted
Determine if the Visual been deleted.
(Inherited from Visual.)
Public methodMenuSetInitialPosition
(Inherited from Visual.)
Public methodCode exampleMoveTo(Matrix)
Move to a new matrix location instantly.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Vector3)
Move to a new location instantly.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Matrix, SpeedProfile)
Move to a new matrix location using a speed profile.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Matrix, Double)
Move to a new matrix location at a given speed.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Vector3, SpeedProfile)
Move to a new location given a speed profile.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Vector3, Double)
Move to a new location given a speed.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Matrix, Double, Double)
Move to a new matrix location at a given speed and acceleration.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Vector3, Double, Double)
Move to a new location given a speed and acceleration.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Visual, Matrix, SpeedProfile)
Move to a new matrix location relative to another visual.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Visual, Matrix, Double)
Move to a new matrix location relative to another visual.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Visual, Vector3, SpeedProfile)
Move to a new location relative to another visual.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Visual, Vector3, Double)
Move to a new location relative to another visual.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Matrix, Double, Double, Double)
Move to a new matrix location at a given speed, acceleration and deceleration.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Vector3, Double, Double, Double)
Move to a new location given a speed, acceleration, and deceleration.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Visual, Matrix, Double, Double)
Move to a new matrix location relative to another visual.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Visual, Vector3, Double, Double)
Move to a new location relative to another visual.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Visual, Matrix, Double, Double, Double)
Move to a new matrix location relative to another visual.
(Inherited from Visual.)
Public methodCode exampleMoveTo(Visual, Vector3, Double, Double, Double)
Move to a new location relative to another visual.
(Inherited from Visual.)
Public methodMoveToInitialPosition
Move to the InitialPosition and InitialRotation.
(Inherited from Visual.)
Protected methodNotifyMeshChanged (Inherited from Visual.)
Public methodNotifyOnMouseUp (Inherited from Visual.)
Public methodPopRoutingTarget
Pop a routing target from the current routing target stack, making the next target down the stack the new current routing target. Remove this visual from the previous target's custom property called "RoutingTargetAllocators".
(Inherited from Visual.)
Public methodPushRoutingTarget
Push a new routing target onto the stack of routing targets, making this the new current routing target. Add this visual to a custom property on the target called "RoutingTargetAllocators". This is normally called for loads.
(Inherited from Visual.)
Public methodRecalculateConnections
Attach or detach connectors and accessories to or from valid connections on this visual and all children.
(Inherited from Visual.)
Public methodRemoveAspect(Object) (Inherited from CoreVisual.)
Public methodCode exampleRemoveAspect(Type)
Removes an aspect of a given type.
(Inherited from Visual.)
Public methodRemoveAspect(Object, Boolean) Obsolete. (Inherited from Visual.)
Public methodCode exampleRemoveAspectT
Removes an aspect.
(Inherited from Visual.)
Public methodRemoveAspectT(T)
Removes an aspect instance.
(Inherited from Visual.)
Public methodRemoveAspectT(T, Boolean) Obsolete. (Inherited from Visual.)
Public methodRemoveConnector
Remove a connector with a certain name.
(Inherited from Visual.)
Public methodRemoveCustomProperty
Remove a custom property from the Visual.
(Inherited from Visual.)
Public methodReparent
Remove this visual from the current parent's list of children (if current parent is not null), and add it to the new parent's list of children (if new parent is not null). The visual's matrix is adjusted accordingly, such that its top-level world location and orientation is preserved.
(Inherited from Visual.)
Public methodCode exampleRotate(Axis, SpeedProfile)
Set the visual rotating.
(Inherited from Visual.)
Public methodCode exampleRotate(Axis, Double)
Set the visual rotating.
(Inherited from Visual.)
Public methodCode exampleRotate(Axis, Double, Double)
Set the visual rotating.
(Inherited from Visual.)
Public methodCode exampleRotate(Visual, Axis, SpeedProfile)
Set the visual rotating.
(Inherited from Visual.)
Public methodCode exampleRotate(Visual, Axis, SpeedProfile, RotationDirection)
Set the visual rotating.
(Inherited from Visual.)
Public methodRotateByImmediate (Inherited from Visual.)
Public methodCode exampleRotateToImmediate
Rotate immediately around a given local axis to a given angle relative to the visual's initial position.
(Inherited from Visual.)
Public methodCode exampleRotateToLocalX
Rotate around the local X axis a given amount at a given speed.
(Inherited from Visual.)
Public methodCode exampleRotateToLocalY
Rotate around the local Y axis a given amount at a given speed.
(Inherited from Visual.)
Public methodCode exampleRotateToLocalZ
Rotate around the local Z axis a given amount at a given speed.
(Inherited from Visual.)
Public methodSetCustomPropertyValueT
Set the value of a custom property or do nothing if it doesn't exist.
(Inherited from Visual.)
Public methodSetInitialPosition
Set InitialLocation to be the current Location and InitialRotation to be the current Rotation.
(Inherited from Visual.)
Public methodSetIsStaticDeep
Set the IsStatic property for this Visual and all children recursively.
(Inherited from Visual.)
Public methodCode exampleSetNativeObject
Set the native C# scripting class instance for this visual
(Inherited from Visual.)
Public methodSetScriptNativeTypeName
Atomically set the Script and NativeTypeName together but only create the NativeObject once.
(Inherited from Visual.)
Public methodSimulateLoad
Indicates that this Visual should now be in control of simulating the supplied load.
(Inherited from CoreVisual.)
Public methodSortChildrenAscendingT (Inherited from Visual.)
Public methodSortChildrenAscendingDeepT (Inherited from Visual.)
Public methodStick
Reparents this visual to a specified parents and disables physics. This is intended for use with loads, where parent is generally a vehicle or some visual that will be moving the load.
(Inherited from Visual.)
Public methodStickKinematic
Reparents this visual to a specified parents and sets visual to be kinematic This is intended for use with loads, where parent is generally a vehicle or some visual that will be moving the load.
(Inherited from Visual.)
Public methodToStream
Convert a visual to a stream containing XML. Use Document.CreateVisual to turn it back into a copy of the original visual.
(Inherited from Visual.)
Public methodToXml
Convert a visual to XML. Use Document.CreateVisual to turn it back into a copy of the original visual.
(Inherited from Visual.)
Public methodTransformFromWorld
Transform a world coordinate to a local coordinate
(Inherited from Visual.)
Public methodTransformFromWorldNormal
Transform a world normal to a local normal
(Inherited from Visual.)
Public methodTransformFromWorldRotationDegrees
Transform a world rotation (in degrees) to a local rotation (in degrees).
(Inherited from Visual.)
Public methodTransformFromWorldRotationRadians
Transform a world rotation (in radians) to a local rotation (in radians).
(Inherited from Visual.)
Public methodTransformToParent
Transform a local coordinate to coordinate local to parent.
(Inherited from Visual.)
Public methodTransformToParentNormal
Transform a local normal to normal local to parent
(Inherited from Visual.)
Public methodTransformToWorld
Transform a local coordinate to a world coordinate.
(Inherited from Visual.)
Public methodTransformToWorldNormal
Transform a local normal to a world normal.
(Inherited from Visual.)
Public methodTransformToWorldRotationDegrees
Transform a local rotation (in radians) to a world rotation (in radians).
(Inherited from Visual.)
Public methodTransformToWorldRotationRadians
Transform a local rotation (in radians) to a world rotation (in radians).
(Inherited from Visual.)
Public methodTranslateLocalX(Double)
Instantly move the visual along its local X axis by xOffset units
(Inherited from Visual.)
Public methodTranslateLocalX(Double, Double)
Move the visual along its local X axis by xOffset units, at the given speed.
(Inherited from Visual.)
Public methodTranslateLocalX(Double, Double, Double, Double)
Move the visual along its local X axis by xOffset units, at the given speed and acceleration
(Inherited from Visual.)
Public methodTranslateLocalY(Double)
Instantly move the visual along its local Y axis by yOffset units
(Inherited from Visual.)
Public methodTranslateLocalY(Double, Double)
Move the visual along its local Y axis by yOffset units, at the given speed.
(Inherited from Visual.)
Public methodTranslateLocalY(Double, Double, Double, Double)
Move the visual along its local Y axis by yOffset units, at the given speed and acceleration
(Inherited from Visual.)
Public methodTranslateLocalZ(Double)
Instantly move the visual along its local Z axis by zOffset units
(Inherited from Visual.)
Public methodTranslateLocalZ(Double, Double)
Move the visual along its local Z axis by zOffset units, at the given speed.
(Inherited from Visual.)
Public methodTranslateLocalZ(Double, Double, Double, Double)
Move the visual along its local Z axis by zOffset units, at the given speed and acceleration
(Inherited from Visual.)
Public methodTranslateX(Double)
Instantly move the visual along the model's X axis by xOffset units
(Inherited from Visual.)
Public methodTranslateX(Double, Double)
Move the visual along the model's X axis by xOffset units, at the given speed.
(Inherited from Visual.)
Public methodTranslateX(Double, Double, Double, Double)
Move the visual along the model's X axis by xOffset units, at the given speed and acceleration
(Inherited from Visual.)
Public methodTranslateY(Double)
Instantly move the visual along the model's Y axis by yOffset units
(Inherited from Visual.)
Public methodTranslateY(Double, Double)
Move the visual along the model's Y axis by yOffset units, at the given speed.
(Inherited from Visual.)
Public methodTranslateY(Double, Double, Double, Double)
Move the visual along the model's Y axis by yOffset units, at the given speed and acceleration.
(Inherited from Visual.)
Public methodTranslateZ(Double)
Instantly move the visual along the model's Z axis by zOffset units
(Inherited from Visual.)
Public methodTranslateZ(Double, Double)
Move the visual along the model's Z axis by zOffset units, at the given speed.
(Inherited from Visual.)
Public methodTranslateZ(Double, Double, Double, Double)
Move the visual along the model's Z axis by zOffset units, at the given speed and acceleration.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Matrix)
Immediate Matrix TurnTo
(Inherited from Visual.)
Public methodCode exampleTurnTo(Vector3)
Turn to a new yaw pitch roll instantly.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Matrix, SpeedProfile)
Main Matrix TurnTo method
(Inherited from Visual.)
Public methodCode exampleTurnTo(Matrix, Double)
Matrix TurnTo method
(Inherited from Visual.)
Public methodCode exampleTurnTo(Vector3, Double)
Turn to a new yaw pitch roll in a fixed time.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Axis, Double, SpeedProfile)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Axis, Double, Double)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Matrix, Double, Double)
Matrix TurnTo method
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Matrix, SpeedProfile)
Main Matrix TurnTo method
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Matrix, Double)
Matrix TurnTo method
(Inherited from Visual.)
Public methodCode exampleTurnTo(Axis, Double, SpeedProfile, RotationDirection)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Axis, Double, Double, Double)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Matrix, Double, Double, Double)
Matrix TurnTo method
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Axis, Double, SpeedProfile)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Axis, Double, Double)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Matrix, Double, Double)
Matrix TurnTo method
(Inherited from Visual.)
Public methodCode exampleTurnTo(Axis, Double, Double, Double, Double)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Axis, Double, SpeedProfile, RotationDirection)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Axis, Double, Double, Double)
Turns to a target rotation.
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Matrix, Double, Double, Double)
Matrix TurnTo method
(Inherited from Visual.)
Public methodCode exampleTurnTo(Visual, Axis, Double, Double, Double, Double)
Turns to a target rotation.
(Inherited from Visual.)
Public methodUnfreeze
Release the load in one position by making it dynamic.
(Inherited from Visual.)
Public methodUnstick
Reparents this (stuck) visual to the scene and restores its physics state.
(Inherited from Visual.)
Public methodWaitForAnimator (Inherited from Visual.)
Public methodWakeUpSurroundingVisuals
Wake up any surrounding loads that might have been disabled so they don't remain in midair.
(Inherited from Visual.)
Top
See Also