Skip to content

Commit

Permalink
move bounds to include/pdal/util #699
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jan 20, 2015
1 parent 146cac4 commit 4675db0
Show file tree
Hide file tree
Showing 23 changed files with 17 additions and 26 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -80,6 +80,8 @@ else(WIN32)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PDAL_OUTPUT_LIB_DIR}")
endif(WIN32)

set(PDAL_HEADERS_DIR "${PROJECT_SOURCE_DIR}/include/pdal")
set(PDAL_UTIL_DIR "${PROJECT_SOURCE_DIR}/util")

#------------------------------------------------------------------------------
# misc user options
Expand Down
1 change: 0 additions & 1 deletion filters/chipper/ChipperFilter.hpp
Expand Up @@ -44,7 +44,6 @@
#include <vector>

#include <pdal/Filter.hpp>
#include <pdal/Bounds.hpp>
#include <pdal/PointBuffer.hpp>

namespace pdal
Expand Down
1 change: 0 additions & 1 deletion filters/crop/CropFilter.hpp
Expand Up @@ -35,7 +35,6 @@
#pragma once

#include <pdal/Filter.hpp>
#include <pdal/Bounds.hpp>

#ifdef PDAL_HAVE_GEOS
#include <geos_c.h>
Expand Down
2 changes: 1 addition & 1 deletion include/pdal/Metadata.hpp
Expand Up @@ -40,7 +40,7 @@
#include <boost/uuid/uuid_io.hpp>
#include <boost/lexical_cast.hpp>

#include <pdal/Bounds.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/Utils.hpp>
#include <pdal/SpatialReference.hpp>

Expand Down
3 changes: 1 addition & 2 deletions include/pdal/PDALUtils.hpp
Expand Up @@ -40,7 +40,6 @@
#include <pdal/Dimension.hpp>
#include <pdal/pdal_defines.h>
#include <pdal/pdal_export.hpp>
#include <pdal/Bounds.hpp>
#include <pdal/PointContext.hpp>
#include <pdal/PointBuffer.hpp>
#include <pdal/Options.hpp>
Expand Down Expand Up @@ -213,7 +212,7 @@ void PDAL_DLL write_rst(std::ostream& ost,
const boost::property_tree::ptree& pt,
int level=0);


inline std::ostream& toRST(const PointBuffer& buffer, std::ostream& os)
{
const Dimension::IdList& dims = buffer.dims();
Expand Down
2 changes: 1 addition & 1 deletion include/pdal/PointBuffer.hpp
Expand Up @@ -34,7 +34,7 @@

#pragma once

#include <pdal/Bounds.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/pdal_internal.hpp>
#include <pdal/PointContext.hpp>

Expand Down
2 changes: 1 addition & 1 deletion include/pdal/QuadIndex.hpp
Expand Up @@ -38,7 +38,7 @@
#include <memory>

#include <pdal/pdal_export.hpp>
#include <pdal/Bounds.hpp>
#include <pdal/util/Bounds.hpp>

namespace pdal
{
Expand Down
4 changes: 2 additions & 2 deletions include/pdal/QuickInfo.hpp
Expand Up @@ -36,7 +36,7 @@

#include <vector>

#include <pdal/Bounds.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/SpatialReference.hpp>

namespace pdal
Expand All @@ -45,7 +45,7 @@ namespace pdal
struct QuickInfo
{
public:
BOX3D m_bounds;
BOX3D m_bounds;
SpatialReference m_srs;
point_count_t m_pointCount;
std::vector<std::string> m_dimNames;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions io/las/LasHeader.hpp
Expand Up @@ -41,7 +41,7 @@
#include <boost/uuid/uuid.hpp>
#include <boost/property_tree/ptree.hpp>

#include <pdal/Bounds.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/pdal_config.hpp>
#include <pdal/gitsha.h>

Expand Down Expand Up @@ -195,7 +195,7 @@ class PDAL_DLL LasHeader

/// Set number of bytes from the beginning to the first point record.
/// \param offset - Offset to start of point data.
void setPointOffset(uint32_t offset)
void setPointOffset(uint32_t offset)
{ m_pointOffset = offset; }

/// Set the point format.
Expand Down
1 change: 0 additions & 1 deletion io/las/SummaryData.hpp
Expand Up @@ -38,7 +38,6 @@
#include <array>

#include <pdal/pdal_internal.hpp>
#include <pdal/Bounds.hpp>

#include "LasHeader.hpp"

Expand Down
1 change: 0 additions & 1 deletion kernels/random/RandomKernel.hpp
Expand Up @@ -37,7 +37,6 @@
#include <pdal/FileUtils.hpp>
#include "Kernel.hpp"

#include <pdal/Bounds.hpp>

#define SEPARATORS ",| "

Expand Down
1 change: 0 additions & 1 deletion plugins/oci/io/OciCommon.cpp
Expand Up @@ -37,7 +37,6 @@

#include <iostream>

#include <pdal/Bounds.hpp>
#include <pdal/Dimension.hpp>
#include <pdal/Utils.hpp>
#include <pdal/FileUtils.hpp>
Expand Down
1 change: 0 additions & 1 deletion plugins/oci/io/OciWriter.cpp
Expand Up @@ -33,7 +33,6 @@
****************************************************************************/


#include <pdal/Bounds.hpp>
#include <pdal/FileUtils.hpp>
#include <pdal/PointBuffer.hpp>
#include <pdal/StageFactory.hpp>
Expand Down
1 change: 0 additions & 1 deletion plugins/oci/io/OciWriter.hpp
Expand Up @@ -35,7 +35,6 @@
#pragma once

#include <pdal/DbWriter.hpp>
#include <pdal/Bounds.hpp>
#include <pdal/GDALUtils.hpp>

pdal::Writer* createOciWriter();
Expand Down
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Expand Up @@ -15,8 +15,7 @@
# PDAL_<dirname>_CPP - all the .cpp files for the given subdir/namespace
# ...

set(PDAL_HEADERS_DIR "${PROJECT_SOURCE_DIR}/include/pdal")
set(PDAL_UTIL_DIR "${PROJECT_SOURCE_DIR}/util")

set(PDAL_HPP "")
set(PDAL_CPP "")

Expand Down
1 change: 0 additions & 1 deletion src/SpatialReference.cpp
Expand Up @@ -34,7 +34,6 @@

#include <pdal/SpatialReference.hpp>
#include <pdal/PDALUtils.hpp>
#include <pdal/Bounds.hpp>

#include <boost/algorithm/string/trim.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/unit/BoundsTest.cpp
Expand Up @@ -36,7 +36,7 @@

#include <boost/property_tree/xml_parser.hpp>

#include <pdal/Bounds.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/PDALUtils.hpp>

using namespace pdal;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Support.hpp
Expand Up @@ -36,7 +36,7 @@

// support functions for unit testing

#include <pdal/Bounds.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/Utils.hpp>

namespace pdal
Expand Down
1 change: 0 additions & 1 deletion test/unit/io/faux/FauxReaderTest.cpp
Expand Up @@ -35,7 +35,6 @@
#include "gtest/gtest.h"

#include <FauxReader.hpp>
#include <pdal/Bounds.hpp>

using namespace pdal;

Expand Down
4 changes: 2 additions & 2 deletions tools/lasdump/Header.hpp
Expand Up @@ -38,7 +38,7 @@

#include <boost/uuid/uuid_generators.hpp>

#include <pdal/Bounds.hpp>
#include <pdal/util/Bounds.hpp>
#include <pdal/IStream.hpp>

namespace pdal
Expand Down Expand Up @@ -166,7 +166,7 @@ class Header

/// Set number of bytes from the beginning to the first point record.
/// \param offset - Offset to start of point data.
void setPointOffset(uint32_t offset)
void setPointOffset(uint32_t offset)
{ m_pointOffset = offset; }

/// Set the point format.
Expand Down
2 changes: 1 addition & 1 deletion util/Bounds.cpp
Expand Up @@ -36,7 +36,7 @@
#include <limits>
#include <vector>

#include "Bounds.hpp"
#include <pdal/util/Bounds.hpp>

namespace
{
Expand Down
2 changes: 1 addition & 1 deletion util/CMakeLists.txt
Expand Up @@ -7,7 +7,7 @@ if(EXISTS)
endif()

set(PDAL_UTIL_HPP
"${PDAL_UTIL_DIR}/Bounds.hpp")
"${PDAL_HEADERS_DIR}/util/Bounds.hpp")

set(PDAL_UTIL_CPP
"${PDAL_UTIL_DIR}/Bounds.cpp")
Expand Down

0 comments on commit 4675db0

Please sign in to comment.