Click or drag to resize

RendererSceneProperties Class

Collection of properties for renderers that participate in a Scene.
Inheritance Hierarchy

Namespace:  Esri.ArcGISRuntime.Symbology
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
public sealed class RendererSceneProperties : INotifyPropertyChanged

The RendererSceneProperties type exposes the following members.

Public methodRendererSceneProperties
Initializes a new instance of the RendererSceneProperties class.
Public methodRendererSceneProperties(String, ExtrusionMode)
Initializes a new instance of the RendererSceneProperties class with the specified extrusion properties.
Public methodRendererSceneProperties(String, String, String)
Initializes a new instance of the RendererSceneProperties class with the specified rotation properties
Public propertyCode exampleExtrusionExpression
Gets or sets the extrusion expression.
Public propertyCode exampleExtrusionMode
Gets or sets the extrusion mode.
Public propertyCode exampleHeadingExpression
Gets or sets the heading expression.
Public propertyCode examplePitchExpression
Gets or sets the pitch expression.
Public propertyCode exampleRollExpression
Gets or sets the roll expression.
Public eventPropertyChanged
Occurs when a property value changes.


Example Name: ScenePropertiesExpressions

Update the orientation of a graphic using expressions based on its attributes.

Code example screen shot.

// Copyright 2019 Esri.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
// language governing permissions and limitations under the License.

using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Mapping;
using Esri.ArcGISRuntime.Symbology;
using Esri.ArcGISRuntime.UI;
using Color = System.Drawing.Color;

namespace ArcGISRuntime.WPF.Samples.ScenePropertiesExpressions
        name: "Scene properties expressions",
        category: "GraphicsOverlay",
        description: "Update the orientation of a graphic using expressions based on its attributes.",
        instructions: "Adjust the heading and pitch sliders to rotate the cone.",
        tags: new[] { "3D", "expression", "graphics", "heading", "pitch", "rotation", "scene", "symbology" })]
    public partial class ScenePropertiesExpressions
        public ScenePropertiesExpressions()

        private void Initialize()
            // Set up the scene with an imagery basemap.
            MySceneView.Scene = new Scene(BasemapStyle.ArcGISImageryStandard);

            // Set the initial viewpoint for the scene.
            MapPoint point = new MapPoint(83.9, 28.4, 1000, SpatialReferences.Wgs84);
            Camera initialCamera = new Camera(point, 1000, 0, 50, 0);

            // Create a graphics overlay.
            GraphicsOverlay overlay = new GraphicsOverlay();
            overlay.SceneProperties.SurfacePlacement = SurfacePlacement.Relative;

            // Add a renderer using rotation expressions.
            SimpleRenderer renderer = new SimpleRenderer();
            renderer.SceneProperties.HeadingExpression = "[HEADING]";
            renderer.SceneProperties.PitchExpression = "[PITCH]";

            // Apply the renderer to the graphics overlay.
            overlay.Renderer = renderer;

            // Create a red cone graphic.
            SimpleMarkerSceneSymbol coneSymbol = SimpleMarkerSceneSymbol.CreateCone(Color.Red, 100, 100);
            coneSymbol.Pitch = -90;
            MapPoint conePoint = new MapPoint(83.9, 28.41, 200, SpatialReferences.Wgs84);
            Graphic cone = new Graphic(conePoint, coneSymbol);

            // Add the cone graphic to the overlay.

            // Listen for changes in slider values and update graphic properties.
            HeadingSlider.ValueChanged += (sender, e) => { cone.Attributes["HEADING"] = HeadingSlider.Value; };
            PitchSlider.ValueChanged += (sender, e) => { cone.Attributes["PITCH"] = PitchSlider.Value; };
<UserControl x:Class="ArcGISRuntime.WPF.Samples.ScenePropertiesExpressions.ScenePropertiesExpressions"
        <esri:SceneView x:Name="MySceneView"/>
        <Border Style="{StaticResource BorderStyle}">
                <Label Content="Heading:" />
                <Slider x:Name="HeadingSlider" Minimum="0" Maximum="360" />
                <Label Content="Pitch:" />
                <Slider x:Name="PitchSlider" Minimum="-90" Maximum="90" />
See Also
Additional Examples
Hyperlink to ExampleDescription
Animate3DGraphicAn `OrbitGeoElementCameraController` follows a graphic while the graphic's position and rotation are animated.
FeatureLayerExtrusionExtrude features based on their attributes.
ScenePropertiesExpressionsUpdate the orientation of a graphic using expressions based on its attributes.
ViewshedGeoElementAnalyze the viewshed for an object (GeoElement) in a scene.