Click or drag to resize

Overlay Class

A visible element drawn in screen space. Overlays are useful for floating logos, heads up displays, and integrating user interfaces into the 3D window.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public abstract class Overlay : IScreenOverlayContainer, 
	IDisposable

The Overlay type exposes the following members.

Properties
  NameDescription
Public propertyBorderColor
Gets or sets the overlay's border color. By default, the border color is White. However, also by default, the overlay has a BorderSize of 0.0 so the border is not displayed.
Public propertyBorderSize
Gets or sets the size of the overlay's border. By default, this is 0.0 so the border is not displayed.
Public propertyBorderTranslucency
Gets or sets the translucency of the overlay border. Translucency is a value between 0.0 and 1.0, where 0.0 is completely opaque and 1.0 is completely transparent.
Public propertyBounds
Gets the bounds of the overlay relative to its parent.
Public propertyClipToParent
Gets or sets a value indicating whether or not the overlay will be clipped by the Bounds of its parent. If this property is , part of this overlay may be visible outside of its parent's bounds.
Public propertyColor
Gets or sets the overlay's color. By default, the overlay is White.
Public propertyControlBounds
Gets the bounds of the overlay in coordinates relative to the overall Insight3D control.
Public propertyControlPosition
Gets the position of the overlay in coordinates relative to the overall Insight3D control.
Public propertyControlSize
Gets the size of the overlay in coordinates relative to the overall Insight3D control.
Public propertyDisplay
Gets or sets if this overlay and the collection of overlays that are contained within this overlay should be rendered.
Public propertyDisplayCondition
Gets or sets the display condition that determines if the overlay should be rendered. Both this and Display must evaulate to true for the overlay to be rendered.
Public propertyFlipX
Gets or sets whether the overlay will be flipped along its X axis.
Public propertyFlipY
Gets or sets whether the overlay will be flipped along its Y axis.
Public propertyHeight
Gets or sets the height of the overlay. The unit in which the height is defined is specified by the HeightUnit property.
Public propertyHeightUnit
Gets or sets the unit of the Height property.
Public propertyMaximumSize
Gets or sets the maximum size of the overlay. The overlay will never be larger than this size, even if the overlay's Size is specified as a percentage of its parent and its parent is very large. It will also not become larger than this size as a result of a Scale transformation.
Public propertyMinimumSize
Gets or sets the minimum size of the overlay. The overlay will never be smaller than this size, even if the overlay's Size is specified as a percentage of its parent and its parent is very small. It will also not become smaller than this size as a result of a Scale transformation.
Public propertyOrigin
Gets or sets the origin from which the overlay's position is defined. By default, the value of this property is ScreenOverlayOrigin.BottomLeft. See ScreenOverlayOrigin for a list of the possible origins and a description of how the origin affects the measurement of the overlay's position and size properties.
Public propertyOverlays
Gets the collection of overlays that are contained within this overlay.
Public propertyPadding
Gets or sets the padding surrounding the Overlays that are contained within this overlay.
Public propertyParent
Gets the overlay's parent. This may be another overlay if this overlay was added to that overlay's Overlays collection. Or, it may be the ScreenOverlayManager if this overlay was added to the SceneManager'sScreenOverlays collection.
Public propertyPickingEnabled
Gets or sets a value indicating whether or not picking on the overlay is enabled. If picking is disabled, this overlay will never show up in the result of Scene.PickScreenOverlay, even if it occupies the specified pick position.
Public propertyPinningOrigin
Gets or sets the origin of the PinningPosition property, relative to the overlay. By default, the value of this property is ScreenOverlayPinningOrigin.Automatic, which indicates that the origin of the PinningPosition property is the same as the Origin property of the screen overlay. See ScreenOverlayPinningOrigin for a list of the possible pinning origins and a description of how the pinning origin affects the measurement of the overlay's position property.
Public propertyPinningPosition
Gets or sets the pinning position of the overlay, relative to the overlay, which determines the point on the overlay that corresponds to the Position property.
Public propertyPosition
Gets or sets the position of the overlay relative to its parent.
Public propertyRotationAngle
Gets or sets the counter-clockwise rotation of the overlay, in radians. The overlay is rotated around the point specified by the RotationPoint property.
Public propertyRotationPoint
Gets or sets the point that the overlay is rotated around when the RotationAngle property has a value other than 0.0.
Public propertyScale
Gets or sets the fractional value used to scale the overlay's Size property. A value greater than 1.0 will make the overlay larger while a value less than 1.0 will make it smaller.
Public propertySize
Gets or sets the size of the overlay.
Public propertyTag
Gets or sets custom data associated with this screen overlay.
Public propertyTranslationX
Gets or sets the value with which the overlay will be translated from the X value of the Position property.
Public propertyTranslationY
Gets or sets the value with which the overlay will be translated from the Y value of the Position property.
Public propertyTranslucency
Gets or sets the overlay's translucency. Translucency is a value between 0.0 and 1.0, where 0.0 is completely opaque and 1.0 is completely transparent.
Public propertyWidth
Gets or sets the width of the overlay. The unit in which the width is defined is specified by the WidthUnit property.
Public propertyWidthUnit
Gets or sets the unit of the Width property.
Public propertyX
Gets or sets the X position of the overlay relative to its parent. The unit in which the position is defined is specified by the XUnit property. The position is measured horizontally from the Origin, which is, by default, the lower-left corner.
Public propertyXUnit
Gets or sets the unit of the X property.
Public propertyY
Gets or sets the Y position of the overlay relative to its parent. The unit in which the position is defined is specified by the YUnit property. The position is measured vertically from the Origin, which is, by default, the lower-left corner.
Public propertyYUnit
Gets or sets the unit of the Y property.
Top
Methods
  NameDescription
Public methodBringToFront
Brings the overlay to the front of the z-order, so it is on top of all other overlays with the same Parent
Public methodControlToOverlay
Transforms a given position, specified relative to the overall Insight3D control, into coordinates relative to this overlay.
Public methodDispose
Protected methodDispose(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 methodOverlayToControl
Transforms a given position, specified relative to the overlay, into coordinates relative to the overall Insight3D control.
Public methodSendToBack
Sends the overlay to the back of the z-order, so it is underneath all other overlays with the same Parent
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also