Click or drag to resize

CompositeDisplayCondition Class

A composite of display conditions combined using a BinaryLogicOperation. For example, several TimeIntervalDisplayCondition objects can be added to a composite. The composite can then be assigned to an object so the object is only rendered when the current animation time is within one of the time intervals.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.GraphicsDisplayCondition
    AGI.Foundation.GraphicsCompositeDisplayCondition

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public sealed class CompositeDisplayCondition : DisplayCondition, 
	IEnumerable<DisplayCondition>

The CompositeDisplayCondition type exposes the following members.

Constructors
  NameDescription
Public methodCompositeDisplayCondition
Initializes an empty composite display condition.
Top
Properties
  NameDescription
Public propertyCapacity
Gets the number of display conditions for which memory has been allocated. This will always be greater or equal to Count.
Public propertyCount
Gets the number of display conditions in the composite.
Public propertyItem
Returns the condition at the given zero-based index.
Public propertyLogicOperation
Gets or sets the binary logic operation applied to all display conditions in the composite when the composite is evaluated. To combine logical and and or operations in the same expression, create composites containing composites.
Top
Methods
  NameDescription
Public methodAdd(DisplayCondition)
Adds a display condition to the end of the composite.
Public methodAdd(DisplayCondition, Boolean)
Adds a display condition to the end of the composite.
Public methodClear
Removes all display conditions from the composite.
Public methodDispose (Inherited from DisplayCondition.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNegate(DisplayCondition)
Determines if a logical not operation is applied to a display condition in the composite.
Public methodGetNegate(Int32)
Determines if a logical not operation is applied to a display condition in the composite.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert(Int32, DisplayCondition)
Inserts a display condition at the given zero-based index, shifting existing display conditions.
Public methodInsert(Int32, DisplayCondition, Boolean)
Inserts a display condition at the given zero-based index, shifting existing display conditions.
Public methodRemove(DisplayCondition)
Removes a display condition from the composite.
Public methodRemove(Int32)
Removes the display condition at the given zero-based index, shifting existing display conditions.
Public methodReserve
Requests enough memory for the composite to contain at least count display conditions. Count will not be affected but Capacity may be.
Public methodSetNegate(DisplayCondition, Boolean)
Sets if a logical not operation is applied to a display condition in the composite when the composite is evaluated.
Public methodSetNegate(Int32, Boolean)
Sets if a logical not operation is applied to a display condition in the composite when the composite is evaluated.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also