LuciadCPillar 2024.1.09
luciad::LineStyle Class Referencefinal

This class contains styling properties to determine how a line is painted. More...

#include <luciad/layers/styles/LineStyle.h>

Classes

class  Builder
 A builder class for creating line styles. More...
 

Public Member Functions

Builder asBuilder () const
 Returns a LineStyle builder that has all properties of this LineStyle. More...
 
Color getColor () const
 Returns the line color. More...
 
double getWidth () const
 Returns the line width. More...
 
bool isInMeters () const
 Returns whether the line width is interpreted as meters instead of pixels. More...
 

Static Public Member Functions

static Builder newBuilder ()
 Returns a new builder for creating a LineStyle. More...
 

Detailed Description

This class contains styling properties to determine how a line is painted.

Since
2020.2

Member Function Documentation

◆ asBuilder()

Builder luciad::LineStyle::asBuilder ( ) const

Returns a LineStyle builder that has all properties of this LineStyle.

Returns
a LineStyle builder that has all properties of this LineStyle.

◆ getColor()

Color luciad::LineStyle::getColor ( ) const

Returns the line color.

Returns
the line color.

◆ getWidth()

double luciad::LineStyle::getWidth ( ) const

Returns the line width.

If isInMeters is true, the line width is interpreted as meters. Otherwise, the line width is interpreted as device independent pixels

Returns
the line width.

◆ isInMeters()

bool luciad::LineStyle::isInMeters ( ) const

Returns whether the line width is interpreted as meters instead of pixels.

Returns
whether the line width is interpreted as meters instead of pixels.
Since
2024.1.09

◆ newBuilder()

static Builder luciad::LineStyle::newBuilder ( )
static

Returns a new builder for creating a LineStyle.

Returns
a new builder for creating a LineStyle.