C# Class FdoToolbox.Core.Feature.FdoFeatureTable

A FDO-friendly DataTable
Inheritance: System.Data.DataTable, IEnumerable
Afficher le fichier Open project: jumpinjackie/fdotoolbox Class Usage Examples

Private Properties

Свойство Type Description
InitClass void
InitVars void

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
InitClass ( ) : void
InitVars ( ) : void

Method Details

AddRow() public méthode

Adds a row (feature) to this table
public AddRow ( FdoFeature feature ) : void
feature FdoFeature
Résultat void

AddSpatialContext() public méthode

Adds a spatial context.
public AddSpatialContext ( SpatialContextInfo ctx ) : void
ctx SpatialContextInfo The context.
Résultat void

Clone() public méthode

Clones this table
public Clone ( ) : FdoFeatureTable
Résultat FdoFeatureTable

Contains() public méthode

Returns a list of features that contains the specified rectangle.
public Contains ( RTree.Rectangle r ) : FdoToolbox.Core.Feature.FdoFeature[]
r RTree.Rectangle The r.
Résultat FdoToolbox.Core.Feature.FdoFeature[]

CreateClassDefinition() public méthode

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
Résultat ClassDefinition

CreateInstance() protected méthode

Creates a new instance
protected CreateInstance ( ) : DataTable
Résultat System.Data.DataTable

FdoFeatureTable() public méthode

Initializes a new instance of the FdoFeatureTable class.
public FdoFeatureTable ( ) : System
Résultat System

FdoFeatureTable() public méthode

Initializes a new instance of the FdoFeatureTable class.
public FdoFeatureTable ( DataTable table ) : System
table System.Data.DataTable The table.
Résultat System

GetEnumerator() public méthode

Returns an enumerator for enumerating that rows of this table
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetFeaturesNear() public méthode

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.
Résultat FdoToolbox.Core.Feature.FdoFeature[]

GetRowType() protected méthode

Gets the row type
protected GetRowType ( ) : Type
Résultat System.Type

GetSpatialContext() public méthode

Gets a spatial context by name
public GetSpatialContext ( string name ) : SpatialContextInfo
name string The name.
Résultat SpatialContextInfo

InitTable() public méthode

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
Résultat void

Intersects() public méthode

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.
Résultat FdoToolbox.Core.Feature.FdoFeature[]

NewRow() public méthode

Creates a new feature with the same schema as the table
public NewRow ( ) : FdoFeature
Résultat FdoFeature

NewRowFromBuilder() protected méthode

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
Résultat System.Data.DataRow

OnRowChanged() protected méthode

Raises feature changed
protected OnRowChanged ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
Résultat void

OnRowChanging() protected méthode

Raises feature changing
protected OnRowChanging ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
Résultat void

OnRowDeleted() protected méthode

Raises feature deleted
protected OnRowDeleted ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
Résultat void

OnRowDeleting() protected méthode

Raises feature deleting
protected OnRowDeleting ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
Résultat void

RemoveRow() public méthode

Removes the row (feature) from the table
public RemoveRow ( FdoFeature row ) : void
row FdoFeature
Résultat void

this() public méthode

Gets the row (feature) at the specified index
public this ( int index ) : FdoFeature
index int
Résultat FdoFeature