LuciadCPillar 2023.1.04
luciad::MeshStyle Class Referencefinal

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

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

Classes

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

Public Member Functions

MeshStyle::Builder asBuilder () const
 Returns a MeshStyle builder that has all properties of this MeshStyle. More...
 
const std::optional< StyleExpression< Color > > & getColorExpression () const
 Returns the color expression used to paint the mesh, or std::nullopt if no expression was set. More...
 
const std::optional< StyleExpression< Coordinate > > & getDisplacementExpression () const
 Returns the expression used to displace the mesh, or std::nullopt if no expression was set. More...
 
FacetCullingType getFacetCulling () const
 Returns the facet culling type used to paint the mesh. More...
 
const std::optional< StyleExpression< bool > > & getVisibilityExpression () const
 Returns the expression used to make (parts of) the mesh visible/invisible, or std::nullopt if no expression was set. More...
 

Static Public Member Functions

static Builder newBuilder ()
 Creates a new builder for creating a MeshStyle. More...
 

Detailed Description

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

Since
2022.0

Member Function Documentation

◆ asBuilder()

MeshStyle::Builder luciad::MeshStyle::asBuilder ( ) const

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

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

◆ getColorExpression()

const std::optional< StyleExpression< Color > > & luciad::MeshStyle::getColorExpression ( ) const

Returns the color expression used to paint the mesh, or std::nullopt if no expression was set.

Returns
the color expression used to paint the mesh, or std::nullopt if no expression was set.
See also
MeshStyle::Builder::colorExpression

◆ getDisplacementExpression()

const std::optional< StyleExpression< Coordinate > > & luciad::MeshStyle::getDisplacementExpression ( ) const

Returns the expression used to displace the mesh, or std::nullopt if no expression was set.

Returns
the expression used to displace the mesh, or std::nullopt if no expression was set.
See also
MeshStyle::Builder::displacementExpression

◆ getFacetCulling()

FacetCullingType luciad::MeshStyle::getFacetCulling ( ) const

Returns the facet culling type used to paint the mesh.

Returns
the facet culling type used to paint the mesh.
See also
MeshStyle::Builder::colorExpression

◆ getVisibilityExpression()

const std::optional< StyleExpression< bool > > & luciad::MeshStyle::getVisibilityExpression ( ) const

Returns the expression used to make (parts of) the mesh visible/invisible, or std::nullopt if no expression was set.

Returns
the expression used to make (parts of) the mesh visible/invisible, or std::nullopt if no expression was set.
See also
MeshStyle::Builder::visibilityExpression

◆ newBuilder()

static Builder luciad::MeshStyle::newBuilder ( )
static

Creates a new builder for creating a MeshStyle.

Returns
a new builder for creating a MeshStyle.