Add placeholders for geometry coding functions.

This commit is contained in:
Yury Melnichek 2011-01-29 16:44:34 +01:00 committed by Alex Zolotarev
parent 15a14203c4
commit 908b4ab8d7
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#include "geometry_coding.hpp"

View file

@ -0,0 +1,32 @@
#pragma once
#include "../geometry/point2d.hpp"
#include "../base/base.hpp"
#include "../std/vector.hpp"
#include "../std/tuple.hpp"
void EncodePolyline(vector<m2::PointU> const & points,
m2::PointU const & basePoint,
vector<char> & serialOutput);
void DecodePolyline(char const * pBeg, char const * pEnd,
m2::PointU const & basePoint,
vector<m2::PointU> & points);
void EncodeTriangles(vector<m2::PointU> const & points,
vector<tuple<uint32_t, uint32_t, uint32_t> > const & triangles,
m2::PointU const & basePoint,
vector<char> & serialOutput);
void DecodeTriangles(char const * pBeg, char const * pEnd,
m2::PointU const & basePoint,
vector<m2::PointU> & points,
vector<tuple<uint32_t, uint32_t, uint32_t> > & triangles);
void EncodeTriangleStrip(vector<m2::PointU> const & points,
m2::PointU const & basePoint,
vector<char> & serialOutput);
void DecodeTriangleStrip(char const * pBeg, char const * pEnd,
m2::PointU const & basePoint,
vector<m2::PointU> & points);

View file

@ -38,6 +38,7 @@ SOURCES += \
feature_visibility.cpp \
data_header.cpp \
data_header_reader.cpp \
geometry_coding.cpp \
HEADERS += \
feature.hpp \
@ -68,3 +69,4 @@ HEADERS += \
data_header_reader.hpp \
tree_structure.hpp \
feature_impl.hpp \
geometry_coding.hpp \