Click or drag to resize

VectorPrimitive Class

Renders a vector in the 3D scene. A vector is defined by a source (given by an ISystem) and a direction (given by an IVector or IPoint). Length is auto-calculated or can be set separately.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public sealed class VectorPrimitive : Primitive

The VectorPrimitive type exposes the following members.

Constructors
  NameDescription
Public methodVectorPrimitive
Initializes a vector primitive with the specified ISystem sys as its source and pointing in direction dir.
Top
Properties
  NameDescription
Public propertyAutomaticallyComputeBoundingSphere
Gets or sets if the primitive's BoundingSphere is automatically computed.
(Inherited from Primitive.)
Public propertyBoundingSphere
Gets or sets the bounding sphere that encompasses the primitive. The center is defined in the primitive's ReferenceFrame.
(Overrides PrimitiveBoundingSphere.)
Public propertyColor
Gets or sets the primitive's color.
(Overrides PrimitiveColor.)
Public propertyDisplay
Gets or sets if the primitive should be rendered. Both this and DisplayCondition must evaluate to true for the primitive to be rendered.
(Overrides PrimitiveDisplay.)
Public propertyDisplayCondition
Gets or sets the display condition that determines if the primitive should be rendered. Both this and Display must evaluate to true for the primitive to be rendered.
(Overrides PrimitiveDisplayCondition.)
Public propertyDisplayLabel
Gets or Sets whether the vector's label is displayed.
Public propertyDisplayLines
Gets or Sets whether persistence lines are displayed.
Public propertyDisplayMagnitude
Gets or Sets whether the vector's magnitude is displayed. Formatter controls unit conversions.
Public propertyDisplayRADec
Gets or Sets whether the vector's RA-Dec is displayed. Formatter controls unit conversions.
Public propertyDisplaySweep
Gets or Sets whether the persistence sweep (triangles) is displayed.
Public propertyDisplayTrace
Gets or Sets whether the persistence trace (points) is displayed.
Public propertyFadePersistence
Gets or Sets whether the persistence path should fade over time.
Public propertyLabel
Gets or Sets the a user-defined label.
Public propertyLength
Gets or Sets the vector's source-to-arrow-tip length.
Public propertyLighting
Gets or Sets whether the primitive is lit.
Public propertyPersistenceDuration
Gets or Sets the maximum length (in seconds) of the persistence path.
Public propertyPersistenceWidth
Gets or Sets persistence point/line width.
Public propertyReferenceFrame
Gets or sets the reference frame this primitive is defined and rendered in.
(Inherited from Primitive.)
Public propertyTag
Gets or sets custom data associated with this primitive.
(Inherited from Primitive.)
Public propertyTranslucency
Gets or sets the primitive's translucency. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent.
(Overrides PrimitiveTranslucency.)
Public propertyTrueScale
Gets or Sets whether vector's "true scale" length (based on how the primitive was created) should be used.
Public propertyWidth
Gets or Sets the vector's width in pixels. As the camera distances changes from this primitive, the geometry will autoscale to maintain this thickness.
Top
Methods
  NameDescription
Public methodDispose (Inherited from Primitive.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(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.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also