C# Class CustomRasterBuilder.ThumbnailBuilder

Inheritance: IThumbnailBuilder, IPersistVariant, IRasterBuilderInit
显示文件 Open project: Esri/arcobjects-sdk-community-samples Class Usage Examples

Public Properties

Property Type Description
innerRasterBuilder IRasterBuilder

Private Properties

Property Type Description
AddingNewField void
Resampling void

Public Methods

Method Description
BeginConstruction ( IDataSourceCrawler pCrawler ) : void

Prepare the Raster Type for generating Crawler items

Build ( IItemURI pItemURI ) : IBuilderItem

Call the build function of the inner Raster Type and generate a thumbnail from the Builder Item created.

ConstructURIs ( object crawlerItem ) : void

Construct a Unique Resource Identifier (URI) for each crawler item

EndConstruction ( ) : IItemURIArray

Finish Construction of the URI's

GetNextURI ( ) : IItemURI

Generate the next URI.

GetRecommendedCrawler ( IPropertySet pDataSourceProperties ) : IDataSourceCrawler

Get the recommended data crawler for the Raster Type based on properties provided by the user.

IPersistVariant ( IVariantStream Stream ) : void

Load the object from the stream provided

IsStale ( IItemURI pItemURI ) : bool

Check if the item provided is "stale" or not valid

ThumbnailBuilder ( ) : System

Private Methods

Method Description
AddingNewField ( IFields myFields ) : void

The following function creates a field called "ThumbNail" and adds it to the existing fields in the mosaic dataset catalog as a blob.

Resampling ( IBuilderItem mybuilderItem ) : void

Each BuilderItem contains a Function Raster Dataset which is used to create the thumbnail. The thumbnail is created by Nearest Neighbor resampling of the Function Raster Dataset. The resampled raster is exported as a byte array and saved Into the IMemoryBlobStreamVariant. The blob is then inserted into the Thumbnail field.

Method Details

BeginConstruction() public method

Prepare the Raster Type for generating Crawler items
public BeginConstruction ( IDataSourceCrawler pCrawler ) : void
pCrawler IDataSourceCrawler Crawler to use to generate the crawler items
return void

Build() public method

Call the build function of the inner Raster Type and generate a thumbnail from the Builder Item created.
public Build ( IItemURI pItemURI ) : IBuilderItem
pItemURI IItemURI URI of the Item to be built
return IBuilderItem

ConstructURIs() public method

Construct a Unique Resource Identifier (URI) for each crawler item
public ConstructURIs ( object crawlerItem ) : void
crawlerItem object Crawled Item from which the URI is generated
return void

EndConstruction() public method

Finish Construction of the URI's
public EndConstruction ( ) : IItemURIArray
return IItemURIArray

GetNextURI() public method

Generate the next URI.
public GetNextURI ( ) : IItemURI
return IItemURI

GetRecommendedCrawler() public method

Get the recommended data crawler for the Raster Type based on properties provided by the user.
public GetRecommendedCrawler ( IPropertySet pDataSourceProperties ) : IDataSourceCrawler
pDataSourceProperties IPropertySet List of properties provided by the user
return IDataSourceCrawler

IPersistVariant() public method

Load the object from the stream provided
public IPersistVariant ( IVariantStream Stream ) : void
Stream IVariantStream Stream that represents the serialized Raster Type
return void

IsStale() public method

Check if the item provided is "stale" or not valid
public IsStale ( IItemURI pItemURI ) : bool
pItemURI IItemURI URI for the item to be checked
return bool

ThumbnailBuilder() public method

public ThumbnailBuilder ( ) : System
return System

Property Details

innerRasterBuilder public_oe property

public IRasterBuilder innerRasterBuilder
return IRasterBuilder