QGIS API Documentation  3.25.0-Master (dec16ba68b)
Public Member Functions | Public Attributes | List of all members
MVTGeometryWriter Struct Reference

Helper class for writing of geometry commands. More...

Public Member Functions

 MVTGeometryWriter (vector_tile::Tile_Feature *f, int res, const QgsRectangle &tileExtent)
 
void addClosePath ()
 
void addLineTo (int count)
 
void addMoveTo (int count)
 
void addPoint (const QgsPoint &pt)
 
void addPoint (const QPoint &pt)
 
QPoint mapToTileCoordinates (double x, double y)
 

Public Attributes

QPoint cursor
 
vector_tile::Tile_Feature * feature = nullptr
 
int resolution
 
double tileDX
 
double tileDY
 
double tileXMin
 
double tileYMax
 

Detailed Description

Helper class for writing of geometry commands.

Definition at line 30 of file qgsvectortilemvtencoder.cpp.

Constructor & Destructor Documentation

◆ MVTGeometryWriter()

MVTGeometryWriter::MVTGeometryWriter ( vector_tile::Tile_Feature *  f,
int  res,
const QgsRectangle tileExtent 
)
inline

Definition at line 37 of file qgsvectortilemvtencoder.cpp.

Member Function Documentation

◆ addClosePath()

void MVTGeometryWriter::addClosePath ( )
inline

Definition at line 55 of file qgsvectortilemvtencoder.cpp.

◆ addLineTo()

void MVTGeometryWriter::addLineTo ( int  count)
inline

Definition at line 51 of file qgsvectortilemvtencoder.cpp.

◆ addMoveTo()

void MVTGeometryWriter::addMoveTo ( int  count)
inline

Definition at line 47 of file qgsvectortilemvtencoder.cpp.

◆ addPoint() [1/2]

void MVTGeometryWriter::addPoint ( const QgsPoint pt)
inline

Definition at line 60 of file qgsvectortilemvtencoder.cpp.

◆ addPoint() [2/2]

void MVTGeometryWriter::addPoint ( const QPoint &  pt)
inline

Definition at line 65 of file qgsvectortilemvtencoder.cpp.

◆ mapToTileCoordinates()

QPoint MVTGeometryWriter::mapToTileCoordinates ( double  x,
double  y 
)
inline

Definition at line 78 of file qgsvectortilemvtencoder.cpp.

Member Data Documentation

◆ cursor

QPoint MVTGeometryWriter::cursor

Definition at line 35 of file qgsvectortilemvtencoder.cpp.

◆ feature

vector_tile::Tile_Feature* MVTGeometryWriter::feature = nullptr

Definition at line 32 of file qgsvectortilemvtencoder.cpp.

◆ resolution

int MVTGeometryWriter::resolution

Definition at line 33 of file qgsvectortilemvtencoder.cpp.

◆ tileDX

double MVTGeometryWriter::tileDX

Definition at line 34 of file qgsvectortilemvtencoder.cpp.

◆ tileDY

double MVTGeometryWriter::tileDY

Definition at line 34 of file qgsvectortilemvtencoder.cpp.

◆ tileXMin

double MVTGeometryWriter::tileXMin

Definition at line 34 of file qgsvectortilemvtencoder.cpp.

◆ tileYMax

double MVTGeometryWriter::tileYMax

Definition at line 34 of file qgsvectortilemvtencoder.cpp.


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