ArcObjects Library Reference (Carto)  

ITinRenderer Interface

Provides access to members that control functions common to all TIN renderers.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Method CanRender Indicates if renderer can draw.
Method Copy Copies the properties of the given renderer.
Method Draw Draws the TIN.
Read/write property Name The descriptive name of a renderer.
Read/write property Tin The TIN associated with the renderer.
Read/write property Visible Indicates if the renderer is currently visible.

CoClasses that implement ITinRenderer

CoClasses and Classes Description
TerrainDirtyAreaRenderer Terrain dirty area renderer component.
TerrainPointAttributeRenderer Terrain point renderer component.
TerrainPointElevationRenderer Terrain point renderer component.
TerrainPointUniqueValueRenderer Terrain point unique value renderer component.
TinAspectRenderer TIN aspect renderer component.
TinBreaklineRenderer TIN breakline renderer component.
TinContourRenderer TIN contour renderer component.
TinEdgeRenderer TIN edge renderer component.
TinElevationRenderer TIN elevation renderer component.
TinFaceRenderer TIN face renderer component.
TinFaceValueRenderer TIN face value renderer component.
TinNodeElevationRenderer TIN node elevation renderer component.
TinNodeRenderer TIN node renderer component.
TinNodeValueRenderer TIN node value renderer component.
TinSlopeRenderer TIN slope renderer component.

Remarks

This interface is implemented by all ten TIN renderers at ArcGIS 9.0.  It provides the basic info for a specific TIN renderer.  The following sample VBA code shows a way to query a TIN renderer's name and visibility properties in ArcMap:

Sub ShowTinRenderer()
  Dim pDoc As IMxDocument: Set pDoc = ThisDocument
  Dim pMap As IMap: Set pMap = pDoc.Maps.Item(0)     'assuming we're working on the first map
  Dim pTinLyr As ITinLayer: Set pTinLyr = pMap.Layer(0)    'assuming the first layer is a TIN layer
 
  Dim i As Integer
  For i = 0 To pTinLyr.RendererCount - 1
    Dim pTinRenderer As ITinRenderer
    Set pTinRenderer = pTinLyr.GetRenderer(i)
    Debug.Print pTinRenderer.Name, pTinRenderer.Visible
  Next i
End Sub

A TIN layer can have one of more TIN renderers.  When you load a TIN dataset into an application, two default TIN renderers are added.  Depending on applications, the two default TIN renderers vary.  In ArcMap, the two default TIN renderers are Edge Type and Elevation renderers.  In ArcScene, they're Edge Type and Faces.

The order of TIN renderers in the application has an effect on how the TIN is drawn.  In ArcMap, the effect is the same as that in the the TOC in general; higher ones get drawn on top of the lower ones.  In ArcScene, rendering conflict may arise if multiple renderers are drawn simultaneously (especially with face renderers) and that should be avoided.