C# Class CustomRasterBuilder.ThumbnailBuilder

Inheritance: IThumbnailBuilder, IPersistVariant, IRasterBuilderInit
Afficher le fichier Open project: Esri/arcobjects-sdk-community-samples Class Usage Examples

Méthodes publiques

Свойство Type Description
innerRasterBuilder IRasterBuilder

Private Properties

Свойство Type Description
AddingNewField void
Resampling void

Méthodes publiques

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

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

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

Build() public méthode

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

ConstructURIs() public méthode

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

EndConstruction() public méthode

Finish Construction of the URI's
public EndConstruction ( ) : IItemURIArray
Résultat IItemURIArray

GetNextURI() public méthode

Generate the next URI.
public GetNextURI ( ) : IItemURI
Résultat IItemURI

GetRecommendedCrawler() public méthode

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

IPersistVariant() public méthode

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

IsStale() public méthode

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

ThumbnailBuilder() public méthode

public ThumbnailBuilder ( ) : System
Résultat System

Property Details

innerRasterBuilder public_oe property

public IRasterBuilder innerRasterBuilder
Résultat IRasterBuilder