|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITinRenderer
Provides access to members that control functions common to all TIN renderers.
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.
Method Summary | |
---|---|
boolean |
canRender()
Indicates if renderer can draw. |
void |
copy(ITinRenderer pSource)
Copies the properties of the given renderer. |
void |
draw(int drawPhase,
IDisplay display,
ISpatialReference aSpatialReference,
ITrackCancel trackCancel)
Draws the TIN. |
String |
getName()
The descriptive name of a renderer. |
ITin |
getTin()
The TIN associated with the renderer. |
boolean |
isVisible()
Indicates if the renderer is currently visible. |
void |
setName(String name)
The descriptive name of a renderer. |
void |
setTinByRef(ITin ppTin)
The TIN associated with the renderer. |
void |
setVisible(boolean visible)
Indicates if the renderer is currently visible. |
Method Detail |
---|
void draw(int drawPhase, IDisplay display, ISpatialReference aSpatialReference, ITrackCancel trackCancel) throws IOException, AutomationException
drawPhase
- A com.esri.arcgis.system.esriDrawPhase constant (in)display
- A reference to a com.esri.arcgis.display.IDisplay (in)aSpatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void copy(ITinRenderer pSource) throws IOException, AutomationException
pSource
- A reference to a com.esri.arcgis.carto.ITinRenderer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean canRender() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTinByRef(ITin ppTin) throws IOException, AutomationException
ppTin
- A reference to a com.esri.arcgis.geodatabase.ITin (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITin getTin() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isVisible() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setVisible(boolean visible) throws IOException, AutomationException
visible
- The visible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |