Class GeoObjectList
Simple list of GeoObjects (IGeoObject). Implemented as an ArrayList.
Inheritance
System.Object
GeoObjectList
Implements
System.Runtime.Serialization.ISerializable
System.Collections.Generic.IEnumerable<
IGeoObject>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
[Serializable]
public class GeoObjectList : ISerializable, IEnumerable<IGeoObject>, IEnumerable
Constructors
|
Improve this Doc
View Source
GeoObjectList()
Declaration
|
Improve this Doc
View Source
GeoObjectList(GeoObjectList)
Declaration
public GeoObjectList(GeoObjectList list)
Parameters
|
Improve this Doc
View Source
GeoObjectList(IGeoObject)
Declaration
public GeoObjectList(IGeoObject singleObject)
Parameters
|
Improve this Doc
View Source
GeoObjectList(IGeoObject[])
Declaration
public GeoObjectList(params IGeoObject[] l)
Parameters
|
Improve this Doc
View Source
GeoObjectList(ArrayList)
Declaration
public GeoObjectList(ArrayList al)
Parameters
| Type |
Name |
Description |
| System.Collections.ArrayList |
al |
|
|
Improve this Doc
View Source
GeoObjectList(List<IGeoObject>)
Declaration
public GeoObjectList(List<IGeoObject> list)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<IGeoObject> |
list |
|
|
Improve this Doc
View Source
GeoObjectList(ICollection)
Declaration
public GeoObjectList(ICollection list)
Parameters
| Type |
Name |
Description |
| System.Collections.ICollection |
list |
|
|
Improve this Doc
View Source
GeoObjectList(Int32)
Declaration
public GeoObjectList(int Capacity)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Capacity |
|
|
Improve this Doc
View Source
GeoObjectList(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected GeoObjectList(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
SerializationInfo
|
| System.Runtime.Serialization.StreamingContext |
context |
StreamingContext
|
Fields
|
Improve this Doc
View Source
list
Declaration
Field Value
| Type |
Description |
| System.Collections.ArrayList |
|
Properties
|
Improve this Doc
View Source
Count
Returns the number of GeoObjects in this list.
Declaration
public int Count { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Item[Int32]
Declaration
public IGeoObject this[int Index] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
Property Value
|
Improve this Doc
View Source
UserData
Declaration
public UserData UserData { get; }
Property Value
Methods
|
Improve this Doc
View Source
Add(IGeoObject)
Declaration
public void Add(IGeoObject ObjectToAdd)
Parameters
|
Improve this Doc
View Source
AddDecomposed(IGeoObject)
Declaration
public void AddDecomposed(IGeoObject ObjectToAdd)
Parameters
|
Improve this Doc
View Source
AddRange(GeoObjectList)
Declaration
public void AddRange(GeoObjectList ObjectsToAdd)
Parameters
|
Improve this Doc
View Source
AddRange(IGeoObject[])
Declaration
public void AddRange(IGeoObject[] ObjectsToAdd)
Parameters
|
Improve this Doc
View Source
AddRange(ICollection)
Declaration
public void AddRange(ICollection ObjectsToAdd)
Parameters
| Type |
Name |
Description |
| System.Collections.ICollection |
ObjectsToAdd |
|
|
Improve this Doc
View Source
AddRangeUnique(GeoObjectList)
Declaration
public void AddRangeUnique(GeoObjectList ObjectsToAdd)
Parameters
|
Improve this Doc
View Source
AddUnique(IGeoObject)
Declaration
public void AddUnique(IGeoObject ObjectToAdd)
Parameters
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
Clone()
Returns a new independent GeoObjectList that contains the same objects as
this list (shallow copy)
Declaration
public GeoObjectList Clone()
Returns
|
Improve this Doc
View Source
CloneObjects()
Returns a deep clone of the list.
Declaration
public GeoObjectList CloneObjects()
Returns
|
Improve this Doc
View Source
Contains(IGeoObject)
Declaration
public bool Contains(IGeoObject ToTest)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
DecomposeAll()
Declaration
public void DecomposeAll()
|
Improve this Doc
View Source
DecomposeBlockRefs()
Declaration
public void DecomposeBlockRefs()
|
Improve this Doc
View Source
DecomposeBlocks()
Declaration
public void DecomposeBlocks()
|
Improve this Doc
View Source
DecomposeBlocks(Boolean)
Declaration
public void DecomposeBlocks(bool decomposeHatch)
Parameters
| Type |
Name |
Description |
| System.Boolean |
decomposeHatch |
|
|
Improve this Doc
View Source
GetExtent()
Declaration
public BoundingCube GetExtent()
Returns
|
Improve this Doc
View Source
GetExtent(Projection, Boolean, Boolean)
Declaration
public BoundingRect GetExtent(Projection projection, bool Use2DWorld, bool RegardLineWidth)
Parameters
| Type |
Name |
Description |
| Projection |
projection |
|
| System.Boolean |
Use2DWorld |
|
| System.Boolean |
RegardLineWidth |
|
Returns
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
The System.Runtime.Serialization.SerializationInfo to populate with data.
|
| System.Runtime.Serialization.StreamingContext |
context |
The destination (System.Runtime.Serialization.StreamingContext) for this serialization.
|
|
Improve this Doc
View Source
HasSameContent(GeoObjectList)
Tests, weather this list and the list l have the same content
(maybe in a different order)
Declaration
public bool HasSameContent(GeoObjectList l)
Parameters
| Type |
Name |
Description |
| GeoObjectList |
l |
The GeoObjectList to compare with this list
|
Returns
| Type |
Description |
| System.Boolean |
true if the lists have the same content
|
|
Improve this Doc
View Source
IndexOf(IGeoObject)
Declaration
public int IndexOf(IGeoObject ToTest)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Insert(Int32, IGeoObject)
Declaration
public void Insert(int index, IGeoObject ObjectToAdd)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| IGeoObject |
ObjectToAdd |
|
|
Improve this Doc
View Source
Modify(ModOp)
Declaration
public void Modify(ModOp m)
Parameters
| Type |
Name |
Description |
| ModOp |
m |
|
|
Improve this Doc
View Source
Reduce(FilterList)
Remove all objects that are not accepted by the given filter.
Declaration
public void Reduce(FilterList filterList)
Parameters
| Type |
Name |
Description |
| FilterList |
filterList |
List of filters to check with
|
|
Improve this Doc
View Source
ReduceToOwner()
A GeoObjectList is reduced to the owners of the contained objects. I.e. when an object has an owner
of type IGeoObject (like a child of a Block), it is removed from the list and the owner is
added instead. As a result, the list contains only objects that are owned by a Model or
don't have an owner at all.
Declaration
public void ReduceToOwner()
|
Improve this Doc
View Source
Remove(IGeoObject)
Declaration
public void Remove(IGeoObject ObjectToRemove)
Parameters
|
Improve this Doc
View Source
Remove(Int32)
Declaration
public void Remove(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
|
Improve this Doc
View Source
RemoveChildrenOf(IGeoObject)
Removes all GeoObjects that are owned by Parent
Declaration
public void RemoveChildrenOf(IGeoObject Parent)
Parameters
|
Improve this Doc
View Source
Reverse()
Declaration
Events
|
Improve this Doc
View Source
ObjectAddedEvent
Declaration
public event GeoObjectList.ObjectAddedDelegate ObjectAddedEvent
Event Type
|
Improve this Doc
View Source
ObjectRemovedEvent
Declaration
public event GeoObjectList.ObjectRemovedDelegate ObjectRemovedEvent
Event Type
Operators
|
Improve this Doc
View Source
Implicit(GeoObjectList to IGeoObject[])
Declaration
public static implicit operator IGeoObject[](GeoObjectList l)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable<IGeoObject>.GetEnumerator()
Declaration
IEnumerator<IGeoObject> IEnumerable<IGeoObject>.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerator<IGeoObject> |
|
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
Implements
System.Runtime.Serialization.ISerializable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable