![]() |
EMODnet Quantized Mesh Generator for Cesium
|
Contains all the data of a Quantized-mesh. More...
#include <quantized_mesh.h>
Classes | |
struct | EdgeIndices |
struct | Header |
struct | IndexData |
struct | VertexData |
struct | VertexNormals |
struct | WaterMask |
Public Types | |
enum | ExtensionIds { OCT_VERTEX_NORMALS = 1, WATER_MASK = 2 } |
Public Member Functions | |
QuantizedMesh () | |
Constructor. | |
QuantizedMesh (const std::string &filePath) | |
Constructor from file. | |
bool | readFile (const std::string &filePath) |
Read the tile from a file. | |
bool | writeFile (const std::string &filePath) |
Write the tile to a file. | |
void | print () |
Show the contents of the tile on screen. | |
void | printHeader () |
Show the contents of the header of the tile on screen. | |
void | setHeader (const Header &header) |
Set the header part of the quantized mesh structure. | |
void | setVertexData (const VertexData &vd) |
Set the vertex data part of the quantized mesh structure. | |
void | setIndexData (const IndexData &id) |
Set the index data part of the quantized mesh structure. | |
void | setEdgeIndices (const EdgeIndices &ei) |
Set the edge indices data part of the quantized mesh structure. | |
void | setVertexNormals (const VertexNormals &vn) |
Set the vertices normal part of the quantized mesh structure. | |
Header | getHeader () const |
Get the header part of the quantized mesh structure. | |
VertexData | getVertexData () const |
Get the vertex data part of the quantized mesh structure. | |
IndexData | getIndexData () const |
Get the index data of the quantized mesh structure. | |
VertexNormals | getVertexNormals () const |
Get the vertex normals of the quantized mesh structure. | |
EdgeIndices | getEdgeIndices () const |
Get the edge indices of the quantized mesh structure. | |
Static Public Member Functions | |
static unsigned short | remapToVertexDataValue (const double &value, const double &minOr, const double &maxOr) |
Remap a value to be between 0 and 32767. More... | |
static double | remapFromVertexDataValue (const double &value, const double &minOr, const double &maxOr) |
Public Attributes | |
const unsigned short int | TILE_SIZE = 65 |
Static Public Attributes | |
static const unsigned short | MAX_VERTEX_DATA = 32767 |
Contains all the data of a Quantized-mesh.
|
inlinestatic |
Remap a value to be between 0 and 32767.
value | Value in the original range |
minOr | Minimum value in the original range |
maxOr | Maximum value in the original range |