C# Класс FdoToolbox.Core.Feature.FdoFeatureTable

A FDO-friendly DataTable
Наследование: System.Data.DataTable, IEnumerable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
InitClass void
InitVars void

Открытые методы

Метод Описание
AddRow ( FdoFeature feature ) : void

Adds a row (feature) to this table

AddSpatialContext ( SpatialContextInfo ctx ) : void

Adds a spatial context.

Clone ( ) : FdoFeatureTable

Clones this table

Contains ( RTree.Rectangle r ) : FdoToolbox.Core.Feature.FdoFeature[]

Returns a list of features that contains the specified rectangle.

CreateClassDefinition ( bool createAutoGeneratedId ) : ClassDefinition

Creates a ClassDefinition from this instance

FdoFeatureTable ( ) : System

Initializes a new instance of the FdoFeatureTable class.

FdoFeatureTable ( DataTable table ) : System

Initializes a new instance of the FdoFeatureTable class.

GetEnumerator ( ) : IEnumerator

Returns an enumerator for enumerating that rows of this table

GetFeaturesNear ( Point pt, float distance ) : FdoToolbox.Core.Feature.FdoFeature[]

Returns a list of features near the specified point

GetSpatialContext ( string name ) : SpatialContextInfo

Gets a spatial context by name

InitTable ( IFdoReader reader, ClassDefinition origClass, bool ignorePk ) : void

Initializes the table from a reader

Intersects ( RTree.Rectangle r ) : FdoToolbox.Core.Feature.FdoFeature[]

Returns a list of features that intersect with the specified rectangle.

NewRow ( ) : FdoFeature

Creates a new feature with the same schema as the table

RemoveRow ( FdoFeature row ) : void

Removes the row (feature) from the table

this ( int index ) : FdoFeature

Gets the row (feature) at the specified index

Защищенные методы

Метод Описание
CreateInstance ( ) : DataTable

Creates a new instance

GetRowType ( ) : Type

Gets the row type

NewRowFromBuilder ( DataRowBuilder builder ) : DataRow

Creates a new Feature with the same schema as the table based on a DataRow builder

OnRowChanged ( DataRowChangeEventArgs e ) : void

Raises feature changed

OnRowChanging ( DataRowChangeEventArgs e ) : void

Raises feature changing

OnRowDeleted ( DataRowChangeEventArgs e ) : void

Raises feature deleted

OnRowDeleting ( DataRowChangeEventArgs e ) : void

Raises feature deleting

Приватные методы

Метод Описание
InitClass ( ) : void
InitVars ( ) : void

Описание методов

AddRow() публичный Метод

Adds a row (feature) to this table
public AddRow ( FdoFeature feature ) : void
feature FdoFeature
Результат void

AddSpatialContext() публичный Метод

Adds a spatial context.
public AddSpatialContext ( SpatialContextInfo ctx ) : void
ctx SpatialContextInfo The context.
Результат void

Clone() публичный Метод

Clones this table
public Clone ( ) : FdoFeatureTable
Результат FdoFeatureTable

Contains() публичный Метод

Returns a list of features that contains the specified rectangle.
public Contains ( RTree.Rectangle r ) : FdoToolbox.Core.Feature.FdoFeature[]
r RTree.Rectangle The r.
Результат FdoToolbox.Core.Feature.FdoFeature[]

CreateClassDefinition() публичный Метод

Creates a ClassDefinition from this instance
public CreateClassDefinition ( bool createAutoGeneratedId ) : ClassDefinition
createAutoGeneratedId bool If true, will add an auto-generated id property to this class definition
Результат ClassDefinition

CreateInstance() защищенный Метод

Creates a new instance
protected CreateInstance ( ) : DataTable
Результат System.Data.DataTable

FdoFeatureTable() публичный Метод

Initializes a new instance of the FdoFeatureTable class.
public FdoFeatureTable ( ) : System
Результат System

FdoFeatureTable() публичный Метод

Initializes a new instance of the FdoFeatureTable class.
public FdoFeatureTable ( DataTable table ) : System
table System.Data.DataTable The table.
Результат System

GetEnumerator() публичный Метод

Returns an enumerator for enumerating that rows of this table
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetFeaturesNear() публичный Метод

Returns a list of features near the specified point
public GetFeaturesNear ( Point pt, float distance ) : FdoToolbox.Core.Feature.FdoFeature[]
pt Point The point.
distance float The distance.
Результат FdoToolbox.Core.Feature.FdoFeature[]

GetRowType() защищенный Метод

Gets the row type
protected GetRowType ( ) : Type
Результат System.Type

GetSpatialContext() публичный Метод

Gets a spatial context by name
public GetSpatialContext ( string name ) : SpatialContextInfo
name string The name.
Результат SpatialContextInfo

InitTable() публичный Метод

Initializes the table from a reader
public InitTable ( IFdoReader reader, ClassDefinition origClass, bool ignorePk ) : void
reader IFdoReader The reader.
origClass ClassDefinition The original class definition
ignorePk bool If true, will not convert the identity properties of the class definition to primary keys
Результат void

Intersects() публичный Метод

Returns a list of features that intersect with the specified rectangle.
public Intersects ( RTree.Rectangle r ) : FdoToolbox.Core.Feature.FdoFeature[]
r RTree.Rectangle The intersection rectangle.
Результат FdoToolbox.Core.Feature.FdoFeature[]

NewRow() публичный Метод

Creates a new feature with the same schema as the table
public NewRow ( ) : FdoFeature
Результат FdoFeature

NewRowFromBuilder() защищенный Метод

Creates a new Feature with the same schema as the table based on a DataRow builder
protected NewRowFromBuilder ( DataRowBuilder builder ) : DataRow
builder System.Data.DataRowBuilder
Результат System.Data.DataRow

OnRowChanged() защищенный Метод

Raises feature changed
protected OnRowChanged ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
Результат void

OnRowChanging() защищенный Метод

Raises feature changing
protected OnRowChanging ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
Результат void

OnRowDeleted() защищенный Метод

Raises feature deleted
protected OnRowDeleted ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
Результат void

OnRowDeleting() защищенный Метод

Raises feature deleting
protected OnRowDeleting ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
Результат void

RemoveRow() публичный Метод

Removes the row (feature) from the table
public RemoveRow ( FdoFeature row ) : void
row FdoFeature
Результат void

this() публичный Метод

Gets the row (feature) at the specified index
public this ( int index ) : FdoFeature
index int
Результат FdoFeature