Altus Mapping Engine JavaScript API Reference - v2.0.ut.2153.g60764257e - Tuesday May 16, 2022 SDK Documentation | Builds | BA3 Home
AltusUnified::LineStyle Class Reference

Expresses style for a line. More...

Public Member Functions

 LineStyle (Color strokeColor, float strokeWidth, Color outlineColor, float outlineWidth)
 Constructor More...
 
Color strokeColor ()
 stroke color More...
 
void strokeColor_set (Color val)
 
Color outlineColor ()
 outline color More...
 
void outlineColor_set (Color val)
 
void setStyleId (uint styleId)
 
uint getStyleId ()
 
void setDashArray2 (float dash, float gap)
 
void setDashArray4 (float dash0, float gap0, float dash1, float gap1)
 

Public Attributes

float strokeWidth
 stroke width, in points More...
 
float outlineWidth
 outline width, in points More...
 
float dashOffset
 dash offset, used for dashed lines. SetDashArray2 or SetDashArray4 must also be called. More...
 

Detailed Description

Expresses style for a line.

Constructor & Destructor Documentation

AltusUnified::LineStyle::LineStyle ( Color  strokeColor,
float  strokeWidth,
Color  outlineColor,
float  outlineWidth 
)

Constructor

Parameters
strokeColorThe Color of the interior of the line
strokeWidthThe width of the interior of the line, in points
outlineColorThe Color of the outline of the line
outlineWidthThe width of the outline of the line, in points

Member Function Documentation

uint AltusUnified::LineStyle::getStyleId ( )
Color AltusUnified::LineStyle::outlineColor ( )

outline color

void AltusUnified::LineStyle::outlineColor_set ( Color  val)
void AltusUnified::LineStyle::setDashArray2 ( float  dash,
float  gap 
)
void AltusUnified::LineStyle::setDashArray4 ( float  dash0,
float  gap0,
float  dash1,
float  gap1 
)
void AltusUnified::LineStyle::setStyleId ( uint  styleId)
Color AltusUnified::LineStyle::strokeColor ( )

stroke color

void AltusUnified::LineStyle::strokeColor_set ( Color  val)

Member Data Documentation

float AltusUnified::LineStyle::dashOffset

dash offset, used for dashed lines. SetDashArray2 or SetDashArray4 must also be called.

float AltusUnified::LineStyle::outlineWidth

outline width, in points

float AltusUnified::LineStyle::strokeWidth

stroke width, in points