Skip To Content ArcGIS for Developers Sign In Dashboard

SimpleMarkerSceneSymbol Class

(Esri::ArcGISRuntime::SimpleMarkerSceneSymbol)

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

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

Public Functions

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

Static Public Members

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

Additional Inherited Members

Detailed Description

A 3D marker symbol based on simple shapes.

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(QObject *parent = nullptr)

Default constructor with an optional parent.

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

Constructs a simple marker scene symbol by providing several properties.

  • style - The SimpleMarkerSceneSymbolStyle (i.e. cone, cube, cylinder, sphere (default) etc).
  • color - The color.
  • height - The height.
  • width - The width.
  • depth - The depth.
  • anchorPosition - The placement of the symbol relative to the geoelement's geometry.
  • parent - An optional parent.

SimpleMarkerSceneSymbol::~SimpleMarkerSceneSymbol()

Destructor.

[static] 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] SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cone(const QColor &color, double diameter, double height, 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] 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] SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cube(const QColor &color, double size, 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] 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] SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::cylinder(const QColor &color, double diameter, double height, 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] 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] SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::diamond(const QColor &color, double size, double height, 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(SimpleMarkerSceneSymbolStyle style)

Sets the style of the symbol.

See also style().

[static] 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] SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::sphere(const QColor &color, double diameter, 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.

SimpleMarkerSceneSymbolStyle SimpleMarkerSceneSymbol::style() const

Returns the style of the symbol.

If unset, this defaults to SimpleMarkerSceneSymbolStyle::Sphere

See also setStyle().

[static] 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] SimpleMarkerSceneSymbol *SimpleMarkerSceneSymbol::tetrahedron(const QColor &color, double size, double height, 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.

Feedback on this topic?