Click or drag to resize

ViewEntityFromOffsetTEntity Class

Tracks an entity with a Camera.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Tracking
Assembly:  AGI.Foundation.Tracking.Graphics (in AGI.Foundation.Tracking.Graphics.dll) Version: 23.1.416.0 (23.1.416.0)
public class ViewEntityFromOffset<TEntity>
where TEntity : class, IEntityPosition

Type Parameters

The type of entity.

The ViewEntityFromOffsetTEntity type exposes the following members.

Public propertyCamera
Gets or sets the Camera.
Public propertyCentralBody
Gets or sets the CentralBody about which to rotate the camera. Defaults to EarthCentralBody
Public propertyEntity
Gets or sets the entity to track.
Public propertyOffset
Gets or sets the initial offset from the entity to place the camera, specified as AxesEastNorthUp.
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 methodResetView
Resets the camera view to look at the entity from the initial offset.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Moves the camera's reference point to the position of the tracked entity while offsetting the camera position by amount of entity movement.
By default, Insight3D allows the user to control the view with the mouse, and this class does not interfere with that. While this view is active, the user can use the mouse to zoom in and out as well as rotate around the specified entity, even while this view makes sure the entity remains the focus point of the camera. If you would like to lock the view to a specific offset, you must disable Insight3D's default mouse handling. See MouseOptions for details on adjusting mouse handling. This class only modifies camera properties related to Position and ReferencePoint. All other properties can still be adjusted manually.
See Also