LuciadCPillar 2023.1.04
|
A builder class for creating point cloud styles. More...
#include <luciad/layers/styles/PointCloudStyle.h>
Public Member Functions | |
Builder (const Builder &other) | |
~Builder () | |
PointCloudStyle | build () const |
Returns a newly created point cloud style, based on the properties set on this builder. More... | |
Builder & | colorExpression (StyleExpression< Color > colorExpression) |
An expression to specify what colors to apply to point cloud's points. More... | |
Builder & | displacementExpression (StyleExpression< Coordinate > displacementExpression) |
An expression to displace point cloud data. More... | |
Builder & | minimumPointSizePixels (double minimumPointSizePixels) |
Sets the minimum point size in pixel. More... | |
Builder & | pointSizeAdaptive (double scale=1.0) |
When this function is used, points get a size in function of the distance to the eye and the tile geometric error. More... | |
Builder & | pointSizeAdaptive (StyleExpression< double > scaleExpression) |
When this function is used, points get a size in function of the distance to the eye and the tile geometric error. More... | |
Builder & | pointSizePixels (double pixelSize) |
Sets the pixel size of the point cloud's points. More... | |
Builder & | pointSizePixels (StyleExpression< double > pixelSizeExpression) |
The expression that determines the pixel size of the point cloud's points. More... | |
Builder & | pointSizeWorld (double worldSize) |
Sets the world size of the point cloud's points, typically meters. More... | |
Builder & | pointSizeWorld (StyleExpression< double > worldSizeExpression) |
The expression that determines the world size of the point cloud's points, typically expressed in meters. More... | |
Builder & | visibilityExpression (StyleExpression< bool > visibilityExpression) |
An expression to filter the point cloud's points. More... | |
A builder class for creating point cloud styles.
luciad::PointCloudStyle::Builder::Builder | ( | const Builder & | other | ) |
luciad::PointCloudStyle::Builder::~Builder | ( | ) |
PointCloudStyle luciad::PointCloudStyle::Builder::build | ( | ) | const |
Returns a newly created point cloud style, based on the properties set on this builder.
Builder & luciad::PointCloudStyle::Builder::colorExpression | ( | StyleExpression< Color > | colorExpression | ) |
An expression to specify what colors to apply to point cloud's points.
To create expressions, you must use the factory methods on StyleExpressionFactory
. The expression must be well-formed and resolve to a color value.
If you want to update the styling very often, consider using parameters
in your expression. Changing the values of parameters is more efficient than replacing the whole expression.
Note that the alpha component of the color is ignored so the color will be fully opaque, unless you enable transparency
.
The default is a uniform, grey color.
colorExpression | a color expression |
Builder & luciad::PointCloudStyle::Builder::displacementExpression | ( | StyleExpression< Coordinate > | displacementExpression | ) |
An expression to displace point cloud data.
To create expressions, you must use the factory methods on StyleExpressionFactory
. The expression must be well-formed and resolve to a coordinate value. This coordinate is interpreted as a displacement vector during painting.
If you want to update the styling very often, consider using parameters
in your expressions. Changing the values of parameters is more efficient than replacing the whole expression.
By default, point clouds are not displaced.
displacementExpression | a coordinate expression |
Builder & luciad::PointCloudStyle::Builder::minimumPointSizePixels | ( | double | minimumPointSizePixels | ) |
Builder & luciad::PointCloudStyle::Builder::pointSizeAdaptive | ( | double | scale = 1.0 | ) |
When this function is used, points get a size in function of the distance to the eye and the tile geometric error.
The points are given a world size adapted to the local density of the point cloud. This creates, to the largest extent possible, a visually continuous and opaque coverage.
This is a convenience method for pointSizeAdaptive(StyleExpression<double>)
. It delegates to this method with a StyleExpressionFactory::constant
style expression.
scale | an additional scale factor on top op the point size that is chosen by the point cloud renderer. |
Builder & luciad::PointCloudStyle::Builder::pointSizeAdaptive | ( | StyleExpression< double > | scaleExpression | ) |
When this function is used, points get a size in function of the distance to the eye and the tile geometric error.
The points are given a world size adapted to the local density of the point cloud. This creates, to the largest extent possible, a visually continuous and opaque coverage.
To create expressions, you must use the factory methods on StyleExpressionFactory
. The expression must be well-formed and resolve to a double value.
If you want to update the styling very often, consider using parameters
in your expression. Changing the values of parameters is more efficient than replacing the whole expression.
This is the preferred point size mode for LuciadFusion OGC 3D Tiles
point clouds and Hexagon Smart Point Clouds (HSPC)
point clouds.
Note that the points will have a maximum size that is platform-dependent, usually around 60 pixels.
scaleExpression | an additional scale factor on top op the point size that is chosen by the point cloud renderer. |
Builder & luciad::PointCloudStyle::Builder::pointSizePixels | ( | double | pixelSize | ) |
Sets the pixel size of the point cloud's points.
This is a convenience method for pointSizePixels(StyleExpression<double>)
. It delegates to this method with a StyleExpressionFactory::constant
style expression.
pixelSize | the size |
Builder & luciad::PointCloudStyle::Builder::pointSizePixels | ( | StyleExpression< double > | pixelSizeExpression | ) |
The expression that determines the pixel size of the point cloud's points.
To create expressions, you must use the factory methods on StyleExpressionFactory
. The expression must be well-formed and resolve to a double value.
If you want to update the styling very often, consider using parameters
in your expression. Changing the values of parameters is more efficient than replacing the whole expression.
The default is a size of 1 pixels.
pixelSizeExpression | the size expression |
Builder & luciad::PointCloudStyle::Builder::pointSizeWorld | ( | double | worldSize | ) |
Sets the world size of the point cloud's points, typically meters.
This is a convenience method for pointSizeWorld(StyleExpression<double>)
. It delegates to this method with a StyleExpressionFactory::constant
style expression.
worldSize | the size |
Builder & luciad::PointCloudStyle::Builder::pointSizeWorld | ( | StyleExpression< double > | worldSizeExpression | ) |
The expression that determines the world size of the point cloud's points, typically expressed in meters.
To create expressions, you must use the factory methods on StyleExpressionFactory
. The expression must be well-formed and resolve to a double value.
If you want to update the styling very often, consider using parameters
in your expression. Changing the values of parameters is more efficient than replacing the whole expression.
The default is a size of 1 meter.
worldSizeExpression | the size expression |
Builder & luciad::PointCloudStyle::Builder::visibilityExpression | ( | StyleExpression< bool > | visibilityExpression | ) |
An expression to filter the point cloud's points.
To create expressions, you must use the factory methods on StyleExpressionFactory
. The expression must be well-formed and resolve to a boolean value.
If you want to update the styling very often, consider using parameters
in your expression. Changing the values of parameters is more efficient than replacing the whole expression.
By default, all points are visible.
visibilityExpression | the visibility expression |