EMODnet Quantized Mesh Generator for Cesium
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
QuantizedMesh Class Reference

Contains all the data of a Quantized-mesh. More...

#include <quantized_mesh.h>

Inheritance diagram for QuantizedMesh:
QuantizedMeshTile

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
 

Detailed Description

Contains all the data of a Quantized-mesh.

Member Function Documentation

◆ remapToVertexDataValue()

static unsigned short QuantizedMesh::remapToVertexDataValue ( const double &  value,
const double &  minOr,
const double &  maxOr 
)
inlinestatic

Remap a value to be between 0 and 32767.

Parameters
valueValue in the original range
minOrMinimum value in the original range
maxOrMaximum value in the original range
Returns

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