Click or drag to resize

ModelVisualizer<TEntity> Class

Inheritance Hierarchy
System.Object
  AGI.Foundation.Tracking.EntityVisualizer<TEntity>
    AGI.Foundation.Tracking.ModelVisualizer<TEntity>

Namespace:  AGI.Foundation.Tracking
Assembly:  AGI.Foundation.Tracking.Graphics (in AGI.Foundation.Tracking.Graphics.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public class ModelVisualizer<TEntity> : EntityVisualizer<TEntity>
where TEntity : class, IEntityIdentifier, IEntityPosition, IEntityOrientation

Type Parameters

TEntity
The type of entity.

The ModelVisualizer<TEntity> type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCallback
Public propertyColor
Gets or sets the color.
(Overrides EntityVisualizer<TEntity>.Color.)
Public propertyDisplay
Gets or sets a value indicating whether the entities are displayed.
(Overrides EntityVisualizer<TEntity>.Display.)
Public propertyDisplayCondition
Gets or sets the DisplayCondition.
(Overrides EntityVisualizer<TEntity>.DisplayCondition.)
Public propertyEntities
Gets or sets the entities being visualized.
(Overrides EntityVisualizer<TEntity>.Entities.)
Public propertyScale
Gets or sets the scale of the models, with 1 being actual size.
Public propertyTranslucency
Gets or sets the translucency. Translucency is not supported for models, so this property always returns 0 and cannot be set.
(Overrides EntityVisualizer<TEntity>.Translucency.)
Top
Methods
  NameDescription
Public methodDispose()
Releases any resources associated with this instance.
(Inherited from EntityVisualizer<TEntity>.)
Protected methodDispose(Boolean)
Releases any resources associated with this instance.
(Overrides EntityVisualizer<TEntity>.Dispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPick(PickResult)
Given a PickResult, returns the entities that were picked.
(Overrides EntityVisualizer<TEntity>.Pick(PickResult).)
Protected methodPick(PickResult, Primitive)
Given a PickResult and Primitive, returns a list of entities that were picked. This is best used to respond to a pick involving a batch primitive.
(Inherited from EntityVisualizer<TEntity>.)
Protected methodPick<TPrimitive>(PickResult, IEnumerable<TPrimitive>)
Given a list of primitives and a PickResult, returns the primitives that were picked. The primitives in the list are expected to contain an entity in their Tag property.
(Inherited from EntityVisualizer<TEntity>.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Updates the underlying primitives to reflect the latest entity state.
(Overrides EntityVisualizer<TEntity>.Update(Transaction).)
Top
Remarks
This visualizer uses an instance ModelPrimitive for each entity. It is required that each ModelPrimitive have exactly one entity associated with it. A single instance of ModelPrimitive cannot be used for multiple entities nor can multiple ModelPrimitive instances be used for a single entity. The primitive's ReferenceFrame, Display, DisplayCondition, Color, Scale, Tag, Orientation and Position properties will be modified and should never be set explicitly. All other properties and methods, such as loading a new model file or adjusting articulations, can be used normally.
See Also