Table of Contents

Interface IIndexedGeoPoint

Namespace
CADability.UserInterface
Assembly
CADability.dll

Interface for the treatment of a list or array of GeoPoints. This interface is used for the communication of user-interface objects (e.g. MultiGeoPointProperty) with various containers of GeoPoints.

public interface IIndexedGeoPoint

Methods

GetGeoPoint(int)

Yields the value of the GeoPoint with the given index.

GeoPoint GetGeoPoint(int index)

Parameters

index int

Index of the GeoPoint

Returns

GeoPoint

Value of the GeoPoint

GetGeoPointCount()

Yields the number of GeoPoints in the list or array.

int GetGeoPointCount()

Returns

int

Number of GeoPoints

InsertGeoPoint(int, GeoPoint)

Inserts a new GeoPoint before the given index. Index==-1: Append

void InsertGeoPoint(int index, GeoPoint thePoint)

Parameters

index int

Where to insert

thePoint GeoPoint

Value to insert

MayDelete(int)

Asks, whether the point with the given index may be deleted.

bool MayDelete(int index)

Parameters

index int

Index of the point

Returns

bool

MayInsert(int)

Asks, whether a point may be inserted before the given index.

bool MayInsert(int index)

Parameters

index int

Index where insertion is requested, -1: append

Returns

bool

RemoveGeoPoint(int)

Removes the GeoPoint at the given Index.

void RemoveGeoPoint(int index)

Parameters

index int

Index of the point to be removed, -1: LastPoint

SetGeoPoint(int, GeoPoint)

Sets the GeoPoint with the given index

void SetGeoPoint(int index, GeoPoint thePoint)

Parameters

index int

Index of the GeoPoint

thePoint GeoPoint

Value to set