ArcGIS Runtime SDK for iOS: AGSSimpleMarkerSceneSymbol Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSSimpleMarkerSceneSymbol Class Reference

Description

A 3D marker symbol based on simple shapes.

Instances of this class represent 3D marker scene symbols such as cone, cube, cylinder, sphere, diamond, and tetrahedron that can be rendered by AGSSceneView in a scene.

Since
100
Inheritance diagram for AGSSimpleMarkerSceneSymbol:
AGSMarkerSceneSymbol AGSSymbol AGSObject <AGSJSONSerializable>

Instance Methods

(id< AGSCancelable >) - createSwatchWithBackgroundColor:screen:completion:
 
(id< AGSCancelable >) - createSwatchWithCompletion:
 
(id< AGSCancelable >) - createSwatchWithGeometry:width:height:screen:backgroundColor:completion:
 
(nullable id< AGSCancelable >) - createSwatchWithWidth:height:screen:backgroundColor:completion:
 
(instancetype) - initWithStyle:color:height:width:depth:anchorPosition:
 
(BOOL) - isEqualToSymbol:
 
(nullable id) - toJSON:
 

Class Methods

(instancetype) + coneWithColor:diameter:height:
 
(instancetype) + coneWithColor:diameter:height:anchorPosition:
 
(instancetype) + cubeWithColor:size:
 
(instancetype) + cubeWithColor:size:anchorPosition:
 
(instancetype) + cylinderWithColor:diameter:height:
 
(instancetype) + cylinderWithColor:diameter:height:anchorPosition:
 
(instancetype) + diamondWithColor:size:height:
 
(instancetype) + diamondWithColor:size:height:anchorPosition:
 
(nullable id< AGSJSONSerializable >) + fromJSON:error:
 
(instancetype) + simpleMarkerSceneSymbol
 
(instancetype) + simpleMarkerSceneSymbolWithStyle:color:height:width:depth:anchorPosition:
 
(instancetype) + sphereWithColor:diameter:
 
(instancetype) + sphereWithColor:diameter:anchorPosition:
 
(instancetype) + tetrahedronWithColor:size:height:
 
(instancetype) + tetrahedronWithColor:size:height:anchorPosition:
 

Properties

AGSSceneSymbolAnchorPosition anchorPosition
 
AGSColorcolor
 
double depth
 
double heading
 
double height
 
double pitch
 
double roll
 
AGSSimpleMarkerSceneSymbolStyle style
 
NSDictionary< NSString *, id > * unknownJSON
 
NSDictionary< NSString *, id > * unsupportedJSON
 
double width
 

Method Documentation

◆ coneWithColor:diameter:height:

+ (instancetype) coneWithColor: (AGSColor *)  color
diameter: (double)  diameter
height: (double)  height 

Creates a new 3D cone symbol with the provided arguments.

Parameters
colorof the symbol.
diameterof cone's base, in meters.
heightof the cone, in meters.
Returns
A new 3D cone symbol.
Since
100

◆ coneWithColor:diameter:height:anchorPosition:

+ (instancetype) coneWithColor: (AGSColor *)  color
diameter: (double)  diameter
height: (double)  height
anchorPosition: (AGSSceneSymbolAnchorPosition anchorPosition 

Creates a new 3D cone symbol with the provided arguments.

Parameters
colorof the symbol.
diameterof cone's base, in meters.
heightof the cone, in meters.
anchorPositionof the symbol in 3D space.
Returns
A new 3D cone symbol.
Since
100

◆ createSwatchWithBackgroundColor:screen:completion:

- (id<AGSCancelable>) createSwatchWithBackgroundColor: (nullable AGSColor *)  backgroundColor
screen: (nullable AGSScreen *)  screen
completion: (void(^)(AGSImage *__nullable swatch, NSError *__nullable error))  completion 

Creates swatch with provided background color.

Parameters
backgroundColorDesired background color of the image.
screenScreen that the swatch will be rendered for. If you specify nil then the main screen will be used.
completionA block that is invoked when the operation completes.
Since
100

◆ createSwatchWithCompletion:

- (id<AGSCancelable>) createSwatchWithCompletion: (void(^)(AGSImage *__nullable swatch, NSError *__nullable error))  completion

Creates a swatch with a clear background color. This method uses main screen's scale to determine the size of the image.

Parameters
completionblock that is invoked when operation completes.
Since
100

◆ createSwatchWithGeometry:width:height:screen:backgroundColor:completion:

- (id<AGSCancelable>) createSwatchWithGeometry: (AGSGeometry *)  geometry
width: (NSInteger)  width
height: (NSInteger)  height
screen: (nullable AGSScreen *)  screen
backgroundColor: (nullable AGSColor *)  backgroundColor
completion: (void(^)(AGSImage *__nullable swatch, NSError *__nullable error))  completion 

Creates a swatch using the provided geometry and other parameters. This is the most configurable of the methods to create swatches. You can pass the pixels per inch that you would like the image to be rendered at. This will determine how many pixels are used to render symbols of sizes that are specified in points.

Parameters
geometryThe geometry of the symbol to be drawn in the swatch image. The specified geometry is in DIPs, with the point {0,0} located at the center of the swatch image. The X-axis increases towards the right side of the swatch image. The Y-axis increases towards the top of the swatch image. For example: when creating a swatch for an AGSMarkerSymbol, specifying a geometry of {10,10} will draw the marker 10 DIPs up and to the right of the center of the swatch. The geometry type (AGSPoint, AGSPolyline, AGSPolygon) should correspond to the symbol type (AGSMarkerSymbol, AGSLineSymbol, AGSFillSymbol). The geometry's spatial reference is ignored.
widthDesired width of the image in pixels.
heightDesired height of the image in pixels.
screenThe screen that the swatch will be rendered for. If you specify nil then the main screen will be used.
backgroundColorThe desired background color of the image.
completionA block that is invoked when operation completes.
Since
100

◆ createSwatchWithWidth:height:screen:backgroundColor:completion:

- (nullable id<AGSCancelable>) createSwatchWithWidth: (NSInteger)  width
height: (NSInteger)  height
screen: (nullable AGSScreen *)  screen
backgroundColor: (nullable AGSColor *)  backgroundColor
completion: (void(^)(AGSImage *__nullable swatch, NSError *__nullable error))  completion 

◆ cubeWithColor:size:

+ (instancetype) cubeWithColor: (AGSColor *)  color
size: (double)  size 

Creates a new 3D cube symbol with the provided arguments.

Parameters
colorof the symbol.
sizeof the symbol, in meters.
Returns
A new 3D cube symbol.
Since
100

◆ cubeWithColor:size:anchorPosition:

+ (instancetype) cubeWithColor: (AGSColor *)  color
size: (double)  size
anchorPosition: (AGSSceneSymbolAnchorPosition anchorPosition 

Creates a new 3D cube symbol with the provided arguments.

Parameters
colorof the symbol.
sizeof the symbol, in meters.
anchorPositionof the symbol in 3D space.
Returns
A new 3D cube symbol.
Since
100

◆ cylinderWithColor:diameter:height:

+ (instancetype) cylinderWithColor: (AGSColor *)  color
diameter: (double)  diameter
height: (double)  height 

Creates a new 3D cylinder symbol with the provided arguments.

Parameters
colorof the symbol.
diameterof cylinder's base, in meters.
heightof the cylinder, in meters.
Returns
A new 3D cylinder symbol.
Since
100

◆ cylinderWithColor:diameter:height:anchorPosition:

+ (instancetype) cylinderWithColor: (AGSColor *)  color
diameter: (double)  diameter
height: (double)  height
anchorPosition: (AGSSceneSymbolAnchorPosition anchorPosition 

Creates a new 3D cylinder symbol with the provided arguments.

Parameters
colorof the symbol.
diameterof cylinder's base, in meters.
heightof the cylinder, in meters.
anchorPositionof the symbol in 3D space.
Returns
A new 3D cylinder symbol.
Since
100

◆ diamondWithColor:size:height:

+ (instancetype) diamondWithColor: (AGSColor *)  color
size: (double)  size
height: (double)  height 

Creates a new 3D diamond symbol with the provided arguments.

Parameters
colorof the symbol.
sizeof the symbol, in meters.
Returns
A new 3D diamond symbol.
Since
100

◆ diamondWithColor:size:height:anchorPosition:

+ (instancetype) diamondWithColor: (AGSColor *)  color
size: (double)  size
height: (double)  height
anchorPosition: (AGSSceneSymbolAnchorPosition anchorPosition 

Creates a new 3D diamond symbol with the provided arguments.

Parameters
colorof the symbol.
sizeof the symbol, in meters.
anchorPositionof the symbol in 3D space.
Returns
A new 3D diamond symbol.
Since
100

◆ fromJSON:error:

+ (nullable id<AGSJSONSerializable>) fromJSON: (id)  JSONObject
error: (NSError **)  error 
staticrequiredinherited

Initializes and returns an object from its JSON representation.

Parameters
JSONObjectNSDictionary or NSArray containing the JSON.
errorencountered during the operation, if any.
Since
100

◆ initWithStyle:color:height:width:depth:anchorPosition:

- (instancetype) initWithStyle: (AGSSimpleMarkerSceneSymbolStyle style
color: (AGSColor *)  color
height: (double)  height
width: (double)  width
depth: (double)  depth
anchorPosition: (AGSSceneSymbolAnchorPosition anchorPosition 

Creates a new 3D simple marker scene symbol with the provided arguments.

Parameters
styleof the symbol.
colorof the symbol.
heightof the symbol, in meters.
widthof the symbol, in meters.
depthof the symbol, in meters.
anchorPositionof the symbol in 3D space.
Since
100

◆ isEqualToSymbol:

- (BOOL) isEqualToSymbol: (AGSSymbol *)  other

Compares this symbol to another for equality.

Parameters
otherThe other symbol to compare this one to.
Returns
YES if the two symbols are equal, otherwise NO.
Since
100

◆ simpleMarkerSceneSymbol

+ (instancetype) simpleMarkerSceneSymbol

◆ simpleMarkerSceneSymbolWithStyle:color:height:width:depth:anchorPosition:

+ (instancetype) simpleMarkerSceneSymbolWithStyle: (AGSSimpleMarkerSceneSymbolStyle style
color: (AGSColor *)  color
height: (double)  height
width: (double)  width
depth: (double)  depth
anchorPosition: (AGSSceneSymbolAnchorPosition anchorPosition 

Creates a new 3D simple marker scene symbol with the provided arguments.

Parameters
styleof the symbol.
colorof the symbol.
heightof the symbol, in meters.
widthof the symbol, in meters.
depthof the symbol, in meters.
anchorPositionof the symbol in 3D space.
Returns
A new 3D marker scene symbol.
Since
100

◆ sphereWithColor:diameter:

+ (instancetype) sphereWithColor: (AGSColor *)  color
diameter: (double)  diameter 

Creates a new 3D sphere symbol with the provided arguments.

Parameters
colorof the symbol.
diameterof the symbol, in meters.
Returns
A new 3D sphere symbol.
Since
100

◆ sphereWithColor:diameter:anchorPosition:

+ (instancetype) sphereWithColor: (AGSColor *)  color
diameter: (double)  diameter
anchorPosition: (AGSSceneSymbolAnchorPosition anchorPosition 

Creates a new 3D sphere symbol with the provided arguments.

Parameters
colorof the symbol.
diameterof the symbol, in meters.
anchorPositionof the symbol in 3D space.
Returns
A new 3D sphere symbol.
Since
100

◆ tetrahedronWithColor:size:height:

+ (instancetype) tetrahedronWithColor: (AGSColor *)  color
size: (double)  size
height: (double)  height 

Creates a new 3D tetrahedron symbol with the provided arguments.

Parameters
colorof the symbol.
sizeof the symbol, in meters.
heightof the symbol, in meters.
Returns
A new 3D tetrahedron symbol.
Since
100

◆ tetrahedronWithColor:size:height:anchorPosition:

+ (instancetype) tetrahedronWithColor: (AGSColor *)  color
size: (double)  size
height: (double)  height
anchorPosition: (AGSSceneSymbolAnchorPosition anchorPosition 

Creates a new 3D tetrahedron symbol with the provided arguments.

Parameters
colorof the symbol.
sizeof the symbol, in meters.
heightof the symbol, in meters.
anchorPositionof the symbol in 3D space.
Returns
A new 3D tetrahedron symbol.
Since
100

◆ toJSON:

- (nullable id) toJSON: (NSError **)  error
requiredinherited

Returns JSON representation for this object.

Parameters
errorencountered during the operation, if any.
Returns
NSDictionary or NSArray containing the JSON.
Since
100

Reimplemented in AGSPortalItem.

Property Documentation

◆ anchorPosition

- (AGSSceneSymbolAnchorPosition) anchorPosition
readwritenonatomicassigninherited

Specifies how the symbol should be anchored in 3D space. Default is Bottom.

Since
100

◆ color

- (AGSColor*) color
readwritenonatomicstronginherited

Color of the 3D marker symbol

Since
100

◆ depth

- (double) depth
readwritenonatomicassigninherited

Depth of the 3D marker symbol, in meters.

Since
100

◆ heading

- (double) heading
readwritenonatomicassigninherited

Heading of the 3D marker symbol, degrees. Default value is 0

Since
100

◆ height

- (double) height
readwritenonatomicassigninherited

Height of the 3D marker symbol, in meters.

Since
100

◆ pitch

- (double) pitch
readwritenonatomicassigninherited

Pitch of the 3D marker symbol, in degrees. Default value is 0.

Since
100

◆ roll

- (double) roll
readwritenonatomicassigninherited

Roll of the 3D marker symbol, in degrees. Default value is 0.

Since
100

◆ style

- (AGSSimpleMarkerSceneSymbolStyle) style
readwritenonatomicassign

The 3D marker's style.

Since
100

◆ unknownJSON

- (NSDictionary<NSString*,id>*) unknownJSON
readrequirednonatomiccopyinherited

A dictionary of values that was in the source JSON but was unparsed by API.

Returns
NSDictionary containing the unknown JSON.
Since
100

◆ unsupportedJSON

- (NSDictionary<NSString*,id>*) unsupportedJSON
readnonatomiccopyinherited

A dictionary of values that are supported by the REST API, but not exposed through the SDK API.

Returns
NSDictionary containing the unsupported JSON.
Since
100

◆ width

- (double) width
readwritenonatomicassigninherited

Width of the 3D marker symbol, in meters.

Since
100