EMODnet Quantized Mesh Generator for Cesium
Public Member Functions | List of all members
TinCreation::TinCreator Class Reference

Main class used to create a TIN from an input set of points. More...

#include <tin_creator.h>

Public Member Functions

 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)
 

Detailed Description

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)

Member Function Documentation

◆ 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
dataPtsInput 3D point set
constrainEasternVerticesFlag indicating whether the vertices on the eastern border of the tile should be preserved or not
constrainWesternVerticesFlag indicating whether the vertices on the western border of the tile should be preserved or not
constrainNorthernVerticesFlag indicating whether the vertices on the northern border of the tile should be preserved or not
constrainSouthernVerticesFlag 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
minXMinimum X value
minYMinimum Y value
minZMinimum Z value
maxXMaximum X value
maxYMaximum Y value
maxZMaximum Z value

◆ setCreator()

void TinCreation::TinCreator::setCreator ( std::shared_ptr< TinCreationStrategy creator)
inline

Sets the actual TIN creator algorithm.

Parameters
creatorPointer 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
zoomCurrent zoom level

◆ 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
scaleScale in Z

The documentation for this class was generated from the following file: