C# Class FdoToolbox.Core.Feature.FdoFeatureTable

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

Private Properties

Property Type Description
InitClass void
InitVars void

Public Methods

Method 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

Protected Methods

Method 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

Method Description
InitClass ( ) : void
InitVars ( ) : void

Method Details

AddRow() public method

Adds a row (feature) to this table
public AddRow ( FdoFeature feature ) : void
feature FdoFeature
return void

AddSpatialContext() public method

Adds a spatial context.
public AddSpatialContext ( SpatialContextInfo ctx ) : void
ctx SpatialContextInfo The context.
return void

Clone() public method

Clones this table
public Clone ( ) : FdoFeatureTable
return FdoFeatureTable

Contains() public method

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

CreateClassDefinition() public method

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
return ClassDefinition

CreateInstance() protected method

Creates a new instance
protected CreateInstance ( ) : DataTable
return System.Data.DataTable

FdoFeatureTable() public method

Initializes a new instance of the FdoFeatureTable class.
public FdoFeatureTable ( ) : System
return System

FdoFeatureTable() public method

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

GetEnumerator() public method

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

GetFeaturesNear() public method

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.
return FdoToolbox.Core.Feature.FdoFeature[]

GetRowType() protected method

Gets the row type
protected GetRowType ( ) : Type
return System.Type

GetSpatialContext() public method

Gets a spatial context by name
public GetSpatialContext ( string name ) : SpatialContextInfo
name string The name.
return SpatialContextInfo

InitTable() public method

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
return void

Intersects() public method

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.
return FdoToolbox.Core.Feature.FdoFeature[]

NewRow() public method

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

NewRowFromBuilder() protected method

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
return System.Data.DataRow

OnRowChanged() protected method

Raises feature changed
protected OnRowChanged ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
return void

OnRowChanging() protected method

Raises feature changing
protected OnRowChanging ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
return void

OnRowDeleted() protected method

Raises feature deleted
protected OnRowDeleted ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
return void

OnRowDeleting() protected method

Raises feature deleting
protected OnRowDeleting ( DataRowChangeEventArgs e ) : void
e System.Data.DataRowChangeEventArgs
return void

RemoveRow() public method

Removes the row (feature) from the table
public RemoveRow ( FdoFeature row ) : void
row FdoFeature
return void

this() public method

Gets the row (feature) at the specified index
public this ( int index ) : FdoFeature
index int
return FdoFeature