Skip to content

Commit

Permalink
Remove stuff from hexer that was necessary when it was its own package.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jul 2, 2018
1 parent c5abf08 commit b99f4dc
Show file tree
Hide file tree
Showing 20 changed files with 92 additions and 355 deletions.
1 change: 0 additions & 1 deletion filters/HexBinFilter.cpp
Expand Up @@ -108,7 +108,6 @@ void HexBin::done(PointTableRef table)
m_metadata.add("boundary", "MULTIPOLYGON EMPTY",
"Empty polygon -- unable to compute boundary");
return;

}


Expand Down
2 changes: 0 additions & 2 deletions filters/HexBinFilter.hpp
Expand Up @@ -42,8 +42,6 @@
#include "private/hexer/HexGrid.hpp"
#include "private/hexer/Processor.hpp"

//namespace hexer = pdalhexer;

namespace pdal
{

Expand Down
3 changes: 1 addition & 2 deletions filters/private/hexer/HexGrid.hpp
Expand Up @@ -42,7 +42,6 @@
#include "Mathpair.hpp"
#include "Path.hpp"
#include "Segment.hpp"
#include "export.hpp"

namespace hexer
{
Expand All @@ -51,7 +50,7 @@ class HexIter;

static const double SQRT_3 = 1.732050808;

class HEXER_DLL HexGrid
class HexGrid
{
friend class HexIter;
public:
Expand Down
2 changes: 1 addition & 1 deletion filters/private/hexer/HexInfo.hpp
Expand Up @@ -36,7 +36,7 @@
namespace hexer
{

class HEXER_DLL HexInfo
class HexInfo
{
public:
Point m_center;
Expand Down
3 changes: 1 addition & 2 deletions filters/private/hexer/HexIter.hpp
Expand Up @@ -33,14 +33,13 @@
****************************************************************************/
#pragma once

#include "export.hpp"
#include "HexGrid.hpp"
#include "HexInfo.hpp"

namespace hexer
{

class HEXER_DLL HexIter
class HexIter
{
public:
HexIter(HexGrid::HexMap::iterator iter, HexGrid *grid) :
Expand Down
3 changes: 1 addition & 2 deletions filters/private/hexer/Hexagon.hpp
Expand Up @@ -35,13 +35,12 @@

#include <stdint.h>

#include "export.hpp"
#include "Mathpair.hpp"

namespace hexer
{

class HEXER_DLL Hexagon
class Hexagon
{
public:
Hexagon(int x, int y) : m_x(x), m_y(y), m_count(0), m_dense(false),
Expand Down
4 changes: 1 addition & 3 deletions filters/private/hexer/Mathpair.hpp
Expand Up @@ -34,13 +34,11 @@

#pragma once

#include "export.hpp"

namespace hexer
{

template <typename T>
struct HEXER_DLL Mathpair
struct Mathpair
{
public:
Mathpair() : m_x(T(0)), m_y(T(0))
Expand Down
3 changes: 1 addition & 2 deletions filters/private/hexer/Path.hpp
Expand Up @@ -38,7 +38,6 @@

#include "Mathpair.hpp"
#include "Segment.hpp"
#include "export.hpp"

namespace hexer
{
Expand All @@ -51,7 +50,7 @@ enum Orientation

class HexGrid;

class HEXER_DLL Path
class Path
{
public:
Path(HexGrid *m_grid, Orientation orient) :
Expand Down
20 changes: 0 additions & 20 deletions filters/private/hexer/Processor.cpp
Expand Up @@ -40,10 +40,6 @@

#include "HexGrid.hpp"

#ifdef HEXER_HAVE_GDAL
#include "gdal.h"
#endif

#include "Mathpair.hpp"

namespace hexer
Expand Down Expand Up @@ -95,20 +91,4 @@ void processHexes(HexGrid *grid, HexReader reader)
grid->findParentPaths();
}

std::string GetFullVersion( void )
{
std::ostringstream os;

os << "hexer "
<< HEXER_VERSION_MAJOR << "."
<< HEXER_VERSION_MINOR << "."
<< HEXER_VERSION_PATCH;

#ifdef HEXER_HAVE_GDAL
os << " with GDAL " << GDALVersionInfo("RELEASE_NAME");
#endif

return os.str();
}

} //namespace hexer
10 changes: 3 additions & 7 deletions filters/private/hexer/Processor.hpp
Expand Up @@ -39,19 +39,15 @@
#include <functional>

#include "Path.hpp"
#include "export.hpp"

namespace hexer
{
typedef std::function<bool(double&, double&, void*&)> PointReader;
typedef std::function<bool(int&, int&, void*&)> HexReader;

HEXER_DLL void process(HexGrid *grid, PointReader);
HEXER_DLL void processHexes(HexGrid *grid, HexReader);

HEXER_DLL double computeHexSize(const std::vector<Point>& samples,
void process(HexGrid *grid, PointReader);
void processHexes(HexGrid *grid, HexReader);
double computeHexSize(const std::vector<Point>& samples,
int density);

HEXER_DLL std::string GetFullVersion( void );
} // namespace hexer

3 changes: 1 addition & 2 deletions filters/private/hexer/Segment.hpp
Expand Up @@ -38,15 +38,14 @@
#include <vector>

#include "Mathpair.hpp"
#include "export.hpp"

namespace hexer
{

class Hexagon;
class HexGrid;

class HEXER_DLL Segment
class Segment
{
public:
Segment() : m_hex(NULL), m_side(0)
Expand Down
66 changes: 0 additions & 66 deletions filters/private/hexer/Utils.hpp

This file was deleted.

63 changes: 0 additions & 63 deletions filters/private/hexer/export.hpp

This file was deleted.

3 changes: 0 additions & 3 deletions filters/private/hexer/gitsha.cpp

This file was deleted.

1 change: 0 additions & 1 deletion filters/private/hexer/gitsha.h

This file was deleted.

42 changes: 0 additions & 42 deletions filters/private/hexer/hexer.hpp

This file was deleted.

0 comments on commit b99f4dc

Please sign in to comment.