Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria3D::TileGeometryBuilder Class Reference

#include <M3DTileGeometryBuilder.h>

Public Member Functions

 TileGeometryBuilder (int grid_size)
 
 ~TileGeometryBuilder ()
 
void setElevationScale (double scale)
 
double getElevationScale () const
 
void setVertexCacheSize (int cache_size)
 
int getVertexCacheSize () const
 
void buildVertices (const QuadCoo &quad_coo, const STK::Image &img, std::vector< float > &vertices, bool geoidCorrection)
 
void buildTextureCoordinates (int img_width, int img_height, std::vector< float > &texcoords)
 
void buildVertexCacheFriendlyTriangleList (int img_width, int img_height, std::vector< uint16_t > &idxarr)
 
void calcMorphedArray (std::vector< float > src_arr, std::vector< float > &dst_arr, int num_comp) const
 
void calcMorphedArrayWithParent (const QuadCoo &quad_coo, const STK::Image &parent_dem, std::vector< float > src_arr, std::vector< float > &dst_arr) const
 
void buildTriangleList (int imgWidth, int imgHeight, std::vector< uint16_t > &indices)
 
void buildSubtileTriangleList (int imgWidth, int imgHeight, std::vector< uint16_t > &indices, int dir)
 
void buildCollisionTriangleList (int img_width, int img_height, std::vector< uint16_t > &indices)
 

Protected Member Functions

void gridGenVtxCache (std::vector< uint16_t > &indices, int x0, int x1, int y0, int y1, int width)
 
void buildMorphIndexMap (int grid_size)
 

Protected Attributes

std::vector< unsigned int > morph_index_
 
double scale_
 
int vtx_cache_size_
 

Detailed Description

SngTileGeometryBuilder - Short description. Detailed description.

See also
Class1

Constructor & Destructor Documentation

◆ TileGeometryBuilder()

TileGeometryBuilder::TileGeometryBuilder ( int  grid_size)

Constructor. Detailed description.

◆ ~TileGeometryBuilder()

TileGeometryBuilder::~TileGeometryBuilder ( )

Destructor. Detailed description.

Member Function Documentation

◆ getVertexCacheSize()

int Maria3D::TileGeometryBuilder::getVertexCacheSize ( ) const
inline

Get size of vertex cache. This is the size of the hardware post-T&L vertex cache. Default value is 20 which should be OK for most modern hardware.

◆ setVertexCacheSize()

void Maria3D::TileGeometryBuilder::setVertexCacheSize ( int  cache_size)
inline

Set size of vertex cache. This is the size of the hardware post-T&L vertex cache. Default value is 20 which should be OK for most modern hardware.


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