SimpleMarkerSceneSymbol Class

  • SimpleMarkerSceneSymbol
  • class Esri::ArcGISRuntime::SimpleMarkerSceneSymbol

    Uses a 3D marker symbol to symbolize graphics and features that have point or multipoint geometry. More...

    Header: #include <SimpleMarkerSceneSymbol.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::MarkerSceneSymbol

    Public Functions

    SimpleMarkerSceneSymbol(QObject *parent = nullptr)
    SimpleMarkerSceneSymbol(Esri::ArcGISRuntime::SimpleMarkerSceneSymbolStyle style, const QColor &color, double height, double width, double depth, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)
    virtual ~SimpleMarkerSceneSymbol() override
    void setStyle(Esri::ArcGISRuntime::SimpleMarkerSceneSymbolStyle style)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbolStyle style() const

    Static Public Members

    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *cone(const QColor &color, double diameter, double height, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *cone(const QColor &color, double diameter, double height, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *cube(const QColor &color, double size, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *cube(const QColor &color, double size, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *cylinder(const QColor &color, double diameter, double height, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *cylinder(const QColor &color, double diameter, double height, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *diamond(const QColor &color, double size, double height, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *diamond(const QColor &color, double size, double height, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *sphere(const QColor &color, double diameter, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *sphere(const QColor &color, double diameter, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *tetrahedron(const QColor &color, double size, double height, QObject *parent = nullptr)
    Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *tetrahedron(const QColor &color, double size, double height, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)

    Detailed Description

    Simple marker scene symbols display graphics and features (collectively referred to as geoelements) using predefined 3D markers such as SimpleMarkerSceneSymbolStyle::Cone, SimpleMarkerSceneSymbolStyle::Cube, and SimpleMarkerSceneSymbolStyle::Sphere.

    The shapes rendered are dependent on the style and dimensions (width, height, depth):

    • If the style is sphere (the default), and dimensions are different, then the shape rendered is an ellipsoid.
    • If the style is cube, and dimensions are different, then the shape rendered is a cuboid.
    • If the style is cone, and the width and depth are different, then the cone rendered has elliptic base.
    • If the style is cylinder, and the width and depth are different, then the cylinder rendered has elliptic ends.
    • If the style is diamond, and the width and depth are different, then the two halves of the diamond are connected by a rectangle (instead of the standard square).
    • If the style is a tetrahedron, and the width and depth are different, then the base is not an equilateral triangle.

    Example:

    Create a red SimpleMarkerSceneSymbol that is in the shape of a cone:

    const SimpleMarkerSceneSymbolStyle style = SimpleMarkerSceneSymbolStyle::Cone;
    const QColor color("red");
    constexpr double height = 75.0;
    constexpr double width = 75.0;
    constexpr double depth = 75.0;
    const SceneSymbolAnchorPosition anchorPosition = SceneSymbolAnchorPosition::Bottom;
    SimpleMarkerSceneSymbol* smss = new SimpleMarkerSceneSymbol(style, color, height, width, depth, anchorPosition, this);

    Note that SimpleMarkerSceneSymbol will not display using static rendering mode.

    See also Symbol.

    Member Function Documentation

    [explicit] SimpleMarkerSceneSymbol::SimpleMarkerSceneSymbol(QObject *parent = nullptr)

    Creates a simple marker scene symbol with sphere as the default style.

    • parent - The optional parent QObject.

    SimpleMarkerSceneSymbol::SimpleMarkerSceneSymbol(Esri::ArcGISRuntime::SimpleMarkerSceneSymbolStyle style, const QColor &color, double height, double width, double depth, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)

    Creates a simple marker scene symbol with the given values.

    • style - The style of the symbol SimpleMarkerSceneSymbolStyle.
    • color - The color of the symbol QColor.
    • height - The height in meters of the symbol.
    • width - The width in meters of the symbol.
    • depth - The depth in meters of the symbol.
    • anchorPosition - The anchor_position of the symbol SceneSymbolAnchorPosition.
    • parent - The optional parent QObject.

    [override virtual] SimpleMarkerSceneSymbol::~SimpleMarkerSceneSymbol()

    Destructor.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cone(const QColor &color, double diameter, double height, QObject *parent = nullptr)

    Returns a simple marker scene symbol with cone style.

    • color - The color of the symbol.
    • diameter - The diameter in meters of base of the cone symbol.
    • height - The height in meters of the cone symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cone(const QColor &color, double diameter, double height, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)

    Returns a simple marker scene symbol with cone style.

    • color - The color of the symbol.
    • diameter - The diameter in meters of base of the cone symbol.
    • height - The height in meters of the cone symbol.
    • anchorPosition - The anchor position SceneSymbolAnchorPosition of the cone symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cube(const QColor &color, double size, QObject *parent = nullptr)

    Returns a simple marker scene symbol with cube style.

    • color - The color of the symbol.
    • size - The size in meters of base of the cube in each dimension symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cube(const QColor &color, double size, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)

    Returns a simple marker scene symbol with cube style.

    • color - The color of the symbol.
    • size - The size in meters of base of the cube in each dimension symbol.
    • anchorPosition - The anchor position SceneSymbolAnchorPosition of the cube symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cylinder(const QColor &color, double diameter, double height, QObject *parent = nullptr)

    Returns a simple marker scene symbol with cylinder style.

    • color - The color of the symbol.
    • diameter - The diameter in meters of base of the cylinder symbol.
    • height - The height in meters of the cylinder symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cylinder(const QColor &color, double diameter, double height, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)

    Returns a simple marker scene symbol with cylinder style.

    • color - The color of the symbol.
    • diameter - The diameter in meters of base of the cylinder symbol.
    • height - The height in meters of the cylinder symbol.
    • anchorPosition - The anchor position SceneSymbolAnchorPosition of the cube symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::diamond(const QColor &color, double size, double height, QObject *parent = nullptr)

    Returns a simple marker scene symbol with diamond style.

    • color - The color of the symbol.
    • size - The size in meters of width and depth of the diamond symbol.
    • height - The height in meters of the diamond symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::diamond(const QColor &color, double size, double height, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)

    Returns a simple marker scene symbol with diamond style.

    • color - The color of the symbol.
    • size - The size in meters of width and depth of the diamond symbol.
    • height - The height in meters of the diamond symbol.
    • anchorPosition - The anchor position SceneSymbolAnchorPosition of the cube symbol.
    • parent - The optional parent QObject.

    void SimpleMarkerSceneSymbol::setStyle(Esri::ArcGISRuntime::SimpleMarkerSceneSymbolStyle style)

    Sets the style to style.

    See also style.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::sphere(const QColor &color, double diameter, QObject *parent = nullptr)

    Returns a simple marker scene symbol with sphere style.

    • color - The color of the symbol.
    • diameter - The diameter in meters of sphere symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::sphere(const QColor &color, double diameter, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)

    Returns a simple marker scene symbol with sphere style.

    • color - The color of the symbol.
    • diameter - The diameter in meters of sphere symbol.
    • anchorPosition - The anchor position SceneSymbolAnchorPosition of the cube symbol.
    • parent - The optional parent QObject.

    Esri::ArcGISRuntime::SimpleMarkerSceneSymbolStyle SimpleMarkerSceneSymbol::style() const

    Returns the style of the simple marker scene symbol.

    The style of the simple scene marker symbol SimpleMarkerSceneSymbolStyle. Returns SimpleMarkerSceneSymbolStyle::Cone if an error occurs.

    If unset, this defaults to SimpleMarkerSceneSymbolStyle::Sphere

    See also setStyle().

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::tetrahedron(const QColor &color, double size, double height, QObject *parent = nullptr)

    Returns a simple marker scene symbol with tetrahedron style.

    • color - The color of the symbol.
    • size - The size in meters of width and depth of the tetrahedron symbol.
    • height - The height in meters of the tetrahedron symbol.
    • parent - The optional parent QObject.

    [static] Esri::ArcGISRuntime::SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::tetrahedron(const QColor &color, double size, double height, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)

    Returns a simple marker scene symbol with tetrahedron style.

    • color - The color of the symbol.
    • size - The size in meters of width and depth of the tetrahedron symbol.
    • height - The height in meters of the tetrahedron symbol.
    • anchorPosition - The anchor position SceneSymbolAnchorPosition of the cube symbol.
    • parent - The optional parent QObject.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.