public class TinEdgeRendererDefintion : TinSimpleRendererDefinition
Public Class TinEdgeRendererDefintion Inherits TinSimpleRendererDefinition
public class TinEdgeRendererDefintion : TinSimpleRendererDefinition
Public Class TinEdgeRendererDefintion Inherits TinSimpleRendererDefinition
Once you define a simple renderer, you can call a surface layer's CanCreateRenderer, CreateRenderer, CanSetRenderer and SetRenderer methods to create and assign a renderer to a surface layer.
//Must be on the QueuedTask.Run() var lasCP_renderers = new LasDatasetLayerCreationParams(lasDataset); lasCP_renderers.Name = "My LAS Layer"; lasCP_renderers.IsVisible = false; // create a point elevation renderer var ptR = new LasStretchRendererDefinition(); // accept all defaults // create a simple edge renderer var edgeR = new TinEdgeRendererDefintion(); // accept all defaults // add renderers to dictionary var l_dict = new Dictionary<SurfaceRendererTarget, TinRendererDefinition>(); l_dict.Add(SurfaceRendererTarget.Points, ptR); l_dict.Add(SurfaceRendererTarget.Edges, edgeR); // assign dictionary to creation params lasCP_renderers.RendererDefinitions = l_dict; //Create the layer to the LAS dataset var lasDatasetLayer_rd = LayerFactory.Instance.CreateLayer<LasDatasetLayer>(lasCP_renderers, map);
// applies to TIN or LAS dataset layers only var edgeRendererDef = new TinEdgeRendererDefintion(); edgeRendererDef.Description = "Edges"; edgeRendererDef.Label = "Edges"; edgeRendererDef.SymbolTemplate = lineSymbol.MakeSymbolReference(); if (surfaceLayer.CanCreateRenderer(edgeRendererDef)) { CIMTinRenderer renderer = surfaceLayer.CreateRenderer(edgeRendererDef); if (surfaceLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Edges)) surfaceLayer.SetRenderer(renderer, SurfaceRendererTarget.Edges); }
System.Object
ArcGIS.Desktop.Mapping.LayerDrawingDefinition
ArcGIS.Desktop.Mapping.TinRendererDefinition
ArcGIS.Desktop.Mapping.TinSimpleRendererDefinition
ArcGIS.Desktop.Mapping.TinEdgeRendererDefintion
Target Platforms: Windows 11, Windows 10