Main class used to create a TIN from an input set of points.
More...
#include <tin_creator.h>
|
| TinCreator () |
| Constructor.
|
|
void | setCreator (std::shared_ptr< TinCreationStrategy > creator) |
| Sets the actual TIN creator algorithm. More...
|
|
Polyhedron | create (const std::vector< Point_3 > &dataPts, const bool &constrainEasternVertices=false, const bool &constrainWesternVertices=false, const bool &constrainNorthernVertices=false, const bool &constrainSouthernVertices=false) |
| Create a TIN from a set of points. More...
|
|
void | setParamsForZoom (const unsigned int &zoom) |
| Adapts the parameters of the algorithm for the desired zoom level. More...
|
|
void | setScaleZ (const double &scale) |
|
void | setBounds (const double &minX, const double &minY, const double &minZ, const double &maxX, const double &maxY, const double &maxZ) |
|
Main class used to create a TIN from an input set of points.
This class does not implement any particular method, the concrete strategy to use should be set using the setCreator() method.
(Context class of a Strategy Pattern)
◆ create()
Polyhedron TinCreation::TinCreator::create |
( |
const std::vector< Point_3 > & |
dataPts, |
|
|
const bool & |
constrainEasternVertices = false , |
|
|
const bool & |
constrainWesternVertices = false , |
|
|
const bool & |
constrainNorthernVertices = false , |
|
|
const bool & |
constrainSouthernVertices = false |
|
) |
| |
|
inline |
Create a TIN from a set of points.
While it does not impose any regularity on the input points, the use of constrain<X>Vertices is restricted to the shape of the convex hull of the input point being an axis-aligned rectangle.
- Parameters
-
dataPts | Input 3D point set |
constrainEasternVertices | Flag indicating whether the vertices on the eastern border of the tile should be preserved or not |
constrainWesternVertices | Flag indicating whether the vertices on the western border of the tile should be preserved or not |
constrainNorthernVertices | Flag indicating whether the vertices on the northern border of the tile should be preserved or not |
constrainSouthernVertices | Flag indicating whether the vertices on the southern border of the tile should be preserved or not |
- Returns
◆ setBounds()
void TinCreation::TinCreator::setBounds |
( |
const double & |
minX, |
|
|
const double & |
minY, |
|
|
const double & |
minZ, |
|
|
const double & |
maxX, |
|
|
const double & |
maxY, |
|
|
const double & |
maxZ |
|
) |
| |
|
inline |
Set the geographic bounds for the current tile (used by some of the methods to scale the parameters w.r.t. the tile units)
- Parameters
-
minX | Minimum X value |
minY | Minimum Y value |
minZ | Minimum Z value |
maxX | Maximum X value |
maxY | Maximum Y value |
maxZ | Maximum Z value |
◆ setCreator()
Sets the actual TIN creator algorithm.
- Parameters
-
creator | Pointer to the actual TIN creator algorithm to use |
◆ setParamsForZoom()
void TinCreation::TinCreator::setParamsForZoom |
( |
const unsigned int & |
zoom | ) |
|
|
inline |
Adapts the parameters of the algorithm for the desired zoom level.
For further information, see the parameters' setting mechanism in the tutorial.
- Parameters
-
◆ setScaleZ()
void TinCreation::TinCreator::setScaleZ |
( |
const double & |
scale | ) |
|
|
inline |
Set the scale in Z (used by some of the methods to scale the parameters w.r.t. the tile units)
- Parameters
-
The documentation for this class was generated from the following file: