;

SimpleMarkerSceneSymbol Class

  • SimpleMarkerSceneSymbol
  • class Esri::ArcGISRuntime::SimpleMarkerSceneSymbol

    A 3D marker symbol based on simple shapes. More...

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

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    SimpleMarkerSceneSymbol(Esri::ArcGISRuntime::SimpleMarkerSceneSymbolStyle style, const QColor &color, double height, double width, double depth, Esri::ArcGISRuntime::SceneSymbolAnchorPosition anchorPosition, QObject *parent = nullptr)
    SimpleMarkerSceneSymbol(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

    SimpleMarkerSceneSymbol symbolize Graphics and Features that have a Point or Multipoint geometry using simple predefined styles.

    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.

    Member Function Documentation

    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.

    • style - The SimpleMarkerSceneSymbolStyle (i.e. cone, cube, cylinder, sphere (default) etc).
    • color - The color.
    • 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 placement of the symbol relative to the geoelement's geometry.
    • parent - An optional parent.

    SimpleMarkerSceneSymbol::SimpleMarkerSceneSymbol(QObject *parent = nullptr)

    Default constructor with an optional parent.

    [override virtual] SimpleMarkerSceneSymbol::~SimpleMarkerSceneSymbol()

    Destructor.

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

    A static function that returns a cone SimpleMarkerSceneSymbol.

    • color - The color.
    • diameter - The diameter
    • height - The height.
    • parent - An optional parent.

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

    A static function that returns a cone SimpleMarkerSceneSymbol.

    • color - The color.
    • diameter - The diameter
    • height - The height.
    • anchorPosition - The placement of the symbol relative to the geoelement's geometry.
    • parent - An optional parent.

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

    A static function that returns a cube SimpleMarkerSceneSymbol.

    • color - The color.
    • size - The size.
    • parent - An optional parent.

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

    A static function that returns a cube SimpleMarkerSceneSymbol.

    • color - The color.
    • size - The size.
    • anchorPosition - The placement of the symbol relative to the geoelement's geometry.
    • parent - An optional parent.

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

    A static function that returns a cylinder SimpleMarkerSceneSymbol.

    • color - The color.
    • diameter - The diameter.
    • height - The height.
    • parent - An optional parent.

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

    A static function that returns a cylinder SimpleMarkerSceneSymbol.

    • color - The color.
    • diameter - The diameter.
    • height - The height.
    • anchorPosition - The placement of the symbol relative to the geoelement's geometry.
    • parent - An optional parent.

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

    A static function that returns a diamond SimpleMarkerSceneSymbol.

    • color - The color.
    • size - The size.
    • height - The height.
    • parent - An optional parent.

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

    A static function that returns a diamond SimpleMarkerSceneSymbol.

    • color - The color.
    • size - The size.
    • height - The height.
    • anchorPosition - The placement of the symbol relative to the geoelement's geometry.
    • parent - An optional parent.

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

    Sets the style of the symbol.

    See also style().

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

    A static function that returns a sphere SimpleMarkerSceneSymbol.

    • color - The color.
    • diameter - The diameter.
    • parent - An optional parent.

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

    A static function that returns a sphere SimpleMarkerSceneSymbol.

    • color - The color.
    • diameter - The diameter.
    • anchorPosition - The placement of the symbol relative to the geoelement's geometry.
    • parent - An optional parent.

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

    Returns the style of the symbol.

    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)

    A static function that returns a tetrahedron SimpleMarkerSceneSymbol.

    • color - The color.
    • size - The size.
    • height - The height.
    • parent - An optional parent.

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

    A static function that returns a tetrahedron SimpleMarkerSceneSymbol.

    • color - The color.
    • size - The size.
    • height - The height.
    • anchorPosition - The placement of the symbol relative to the geoelement's geometry.
    • parent - An optional parent.

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