Optimized Renderer

Created:9/7/1999
Description:

This sample implements the ICommand and IFeatureRenderer interfaces. It illustrates the implementation of a Feature Renderer that is optimised for drawing speed.

How to use:
  1. In the Customize dialog, click on 'Add from file' and select this sample's dll.
  2. Under the Commands tab, select the Optimised Renderer command from the Developer Samples category, and drag it on to a toolbar. Dismiss the Customize dialog.
  3. Load some polygon data into the display and wait for it to redraw. Perform a redraw of the display and time how long this redraw takes.
  4. Now press the Optimised Renderer button. This will convert the simple renderer settings to the optimised renderer and set the optimised renderer to be the current renderer for the feature layer.
  5. Redraw the display and time the redraw. The redraw time should be reduced.

Application:
ArcMap

Difficulty: Advanced


Visual C++
File Description
dlldata.c Automatically generated file from the MIDL compiler.
resource.h Resource file.
StdAfx.cpp Source file that includes just the standard includes.
StdAfx.h Header file that includes standard system include files.
OptimisedRenderer.cpp Implementation file for Optimised COM object.
OptimisedRenderer.h Header file for Optimised COM object
OptimizedRenderer.rgs Registry script file for Optimised COM Class.
Optimised.aps Binary file of current resource file.
Optimised.cpp Implementation of DLL Exports.
Optimised.h Definition file for interfaces.
Optimised.def Module Definition file, listing exported functions.
Optimised.dsp Project file.
Optimised.dsw Workspace file.
Optimised.idl The IDL file for the sample.
Optimised.rc Resource file.
Optimised.mak Make file for Project.
Optimised_i.c Definition of IIDs and CLSIDs.
Optimised_p.c Proxy stub code generated by the MIDL compiler.
Optimisedps.def Module definition file for proxy-stub Code.
Optimisedps.mk Make file for proxy-stub code.
Optimised.dll Compiled DLL for project.


Key CoClasses: , SimpleRenderer
Key Interfaces: IFeatureRenderer, IScreenDisplay, ISymbol, IFeatureCursor, IGeoFeatureLayer, ISimpleRenderer, IFeatureIDSet