TMtxComponentList Class

Source: MtxBaseComp.cs · Assembly: Dew.Math
ComponentTMtxComponentTMtxComponentList

public class TMtxComponentList : TMtxComponent

Manages a list of TMtxComponents.

Manages a list of TMtxComponent. The class can be quickly customized to manage a list of components derived from TMtxComponent. The components in the list are owned by the object and are created and destroyed automatically when setting the Count property.

Properties

NameTypeDescription
BlockAssignBooleanBlock streaming of specific properties when storing only a "template".
CountInt32Defines the size of the list.
EditorActiveBooleanReturns True, if the component editor is displayed.
FirstTMtxComponentReturns the pointer to Items[0].
ItemTMtxComponentDefault property to access elements from the stored list.
LastTMtxComponentReturns Items[Count - 1].
OnItemAddTMtxComponentAddEventEvent triggered after a new item has been added.
OnItemDeleteTMtxComponentDeleteEventEvent triggered before the Item will be deleted.
PropagateTemplateBooleanDefines how Dew.Math.TMtxComponentList.Propagate will proparage properties.
ReferenceTReferenceListStores a list of components that have to be notified, when this component is destroyed.

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
ClearDeletes all items from the list.
DeleteDeletes the item from the list.
EditorClassTo be overriden in descendanr classses.
ExchangeSwaps the position of two items in the Items array.
ExtractExtracts the item from the list.
InsertInserts an item at position Index
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
MoveChanges the position of an item in the Items array.
PropagateAssign all property values of the defined item to the items specified with their indexes in the DstIndex array.
RemoveDeletes the first reference to the Item parameter from the Items array.
ResetReset is called after loading the data from stream or file.
RotateRotate the list up or down.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.

Events

NameDescription
OnItemAddEventEvent triggered after a new item has been added.
OnItemDeleteEventEvent triggered before the Item will be deleted.