QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 50 of file qgsvectortilemvtencoder.cpp.

Member Function Documentation

◆ addClosePath()

void MVTGeometryWriter::addClosePath ( )
inline

Definition at line 68 of file qgsvectortilemvtencoder.cpp.

◆ addLineTo()

void MVTGeometryWriter::addLineTo ( int  count)
inline

Definition at line 64 of file qgsvectortilemvtencoder.cpp.

◆ addMoveTo()

void MVTGeometryWriter::addMoveTo ( int  count)
inline

Definition at line 60 of file qgsvectortilemvtencoder.cpp.

◆ addPoint() [1/2]

void MVTGeometryWriter::addPoint ( const QgsPoint pt)
inline

Definition at line 73 of file qgsvectortilemvtencoder.cpp.

◆ addPoint() [2/2]

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

Definition at line 78 of file qgsvectortilemvtencoder.cpp.

◆ mapToTileCoordinates()

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

Definition at line 91 of file qgsvectortilemvtencoder.cpp.

Member Data Documentation

◆ cursor

QPoint MVTGeometryWriter::cursor

Definition at line 48 of file qgsvectortilemvtencoder.cpp.

◆ feature

vector_tile::Tile_Feature* MVTGeometryWriter::feature = nullptr

Definition at line 45 of file qgsvectortilemvtencoder.cpp.

◆ resolution

int MVTGeometryWriter::resolution

Definition at line 46 of file qgsvectortilemvtencoder.cpp.

◆ tileDX

double MVTGeometryWriter::tileDX

Definition at line 47 of file qgsvectortilemvtencoder.cpp.

◆ tileDY

double MVTGeometryWriter::tileDY

Definition at line 47 of file qgsvectortilemvtencoder.cpp.

◆ tileXMin

double MVTGeometryWriter::tileXMin

Definition at line 47 of file qgsvectortilemvtencoder.cpp.

◆ tileYMax

double MVTGeometryWriter::tileYMax

Definition at line 47 of file qgsvectortilemvtencoder.cpp.


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