diff --git a/Migration.md b/Migration.md index 16477163e..7b9385355 100644 --- a/Migration.md +++ b/Migration.md @@ -17,8 +17,7 @@ release will remove the deprecated code. 1. `HeightmapData.hh` and `ImageHeightmap.hh` have been moved out of the `graphics` component and into the new `geospatial` component + To use the heightmap features, users must add the `geospatial` component - to the `find_package` call and update the include paths to use - the geospatial subfolder (`#include `) + to the `find_package` call ## Ignition Common 3.X to 4.X diff --git a/geospatial/include/ignition/common/geospatial/Dem.hh b/geospatial/include/ignition/common/Dem.hh similarity index 95% rename from geospatial/include/ignition/common/geospatial/Dem.hh rename to geospatial/include/ignition/common/Dem.hh index 927076b11..2d251b7ec 100644 --- a/geospatial/include/ignition/common/geospatial/Dem.hh +++ b/geospatial/include/ignition/common/Dem.hh @@ -14,8 +14,8 @@ * limitations under the License. * */ -#ifndef IGNITION_COMMON_GEOSPATIAL_DEM_HH_ -#define IGNITION_COMMON_GEOSPATIAL_DEM_HH_ +#ifndef IGNITION_COMMON_DEM_HH_ +#define IGNITION_COMMON_DEM_HH_ #include #include @@ -24,8 +24,8 @@ #include #include -#include -#include +#include +#include #include @@ -36,7 +36,7 @@ namespace ignition { /// \class DEM DEM.hh common/common.hh /// \brief Encapsulates a DEM (Digital Elevation Model) file. - class IGNITION_COMMON_GEOSPATIAL_VISIBLE Dem : public HeightmapData + class IGNITION_COMMON_GRAPHICS_VISIBLE Dem : public HeightmapData { /// \brief Constructor. public: Dem(); diff --git a/geospatial/include/ignition/common/geospatial/HeightmapData.hh b/geospatial/include/ignition/common/HeightmapData.hh similarity index 92% rename from geospatial/include/ignition/common/geospatial/HeightmapData.hh rename to geospatial/include/ignition/common/HeightmapData.hh index 16acb544e..a67b1135a 100644 --- a/geospatial/include/ignition/common/geospatial/HeightmapData.hh +++ b/geospatial/include/ignition/common/HeightmapData.hh @@ -14,20 +14,20 @@ * limitations under the License. * */ -#ifndef IGNITION_COMMON_GEOSPATIAL_HEIGHTMAPDATA_HH_ -#define IGNITION_COMMON_GEOSPATIAL_HEIGHTMAPDATA_HH_ +#ifndef IGNITION_COMMON_HEIGHTMAPDATA_HH_ +#define IGNITION_COMMON_HEIGHTMAPDATA_HH_ #include #include #include -#include +#include namespace ignition { namespace common { /// \brief Encapsulates a generic heightmap data file. - class IGNITION_COMMON_GEOSPATIAL_VISIBLE HeightmapData + class IGNITION_COMMON_GRAPHICS_VISIBLE HeightmapData { /// \brief Destructor. public: virtual ~HeightmapData() = default; diff --git a/geospatial/include/ignition/common/geospatial/ImageHeightmap.hh b/geospatial/include/ignition/common/ImageHeightmap.hh similarity index 94% rename from geospatial/include/ignition/common/geospatial/ImageHeightmap.hh rename to geospatial/include/ignition/common/ImageHeightmap.hh index 98b3095ce..5ee7431e8 100644 --- a/geospatial/include/ignition/common/geospatial/ImageHeightmap.hh +++ b/geospatial/include/ignition/common/ImageHeightmap.hh @@ -14,16 +14,16 @@ * limitations under the License. * */ -#ifndef IGNITION_COMMON_GEOSPATIAL_IMAGEHEIGHTMAPDATA_HH_ -#define IGNITION_COMMON_GEOSPATIAL_IMAGEHEIGHTMAPDATA_HH_ +#ifndef IGNITION_COMMON_IMAGEHEIGHTMAPDATA_HH_ +#define IGNITION_COMMON_IMAGEHEIGHTMAPDATA_HH_ #include #include #include #include -#include -#include +#include +#include #include namespace ignition @@ -31,7 +31,7 @@ namespace ignition namespace common { /// \brief Encapsulates an image that will be interpreted as a heightmap. - class IGNITION_COMMON_GEOSPATIAL_VISIBLE ImageHeightmap + class IGNITION_COMMON_GRAPHICS_VISIBLE ImageHeightmap : public ignition::common::HeightmapData { /// \brief Constructor diff --git a/geospatial/src/Dem.cc b/geospatial/src/Dem.cc index d25b1c909..eb9318555 100644 --- a/geospatial/src/Dem.cc +++ b/geospatial/src/Dem.cc @@ -21,7 +21,7 @@ #include #include "ignition/common/Console.hh" -#include "ignition/common/geospatial/Dem.hh" +#include "ignition/common/Dem.hh" #include "ignition/math/SphericalCoordinates.hh" using namespace ignition; diff --git a/geospatial/src/Dem_TEST.cc b/geospatial/src/Dem_TEST.cc index 248ce255e..5a8fcde20 100644 --- a/geospatial/src/Dem_TEST.cc +++ b/geospatial/src/Dem_TEST.cc @@ -20,7 +20,7 @@ #include #include -#include "ignition/common/geospatial/Dem.hh" +#include "ignition/common/Dem.hh" #include "test_config.h" using namespace ignition; diff --git a/geospatial/src/ImageHeightmap.cc b/geospatial/src/ImageHeightmap.cc index 4dcf9bc32..6c8630835 100644 --- a/geospatial/src/ImageHeightmap.cc +++ b/geospatial/src/ImageHeightmap.cc @@ -15,7 +15,7 @@ * */ #include "ignition/common/Console.hh" -#include "ignition/common/geospatial/ImageHeightmap.hh" +#include "ignition/common/ImageHeightmap.hh" using namespace ignition; using namespace common; diff --git a/geospatial/src/ImageHeightmap_TEST.cc b/geospatial/src/ImageHeightmap_TEST.cc index 3fc52788a..2b93f845a 100644 --- a/geospatial/src/ImageHeightmap_TEST.cc +++ b/geospatial/src/ImageHeightmap_TEST.cc @@ -16,7 +16,7 @@ */ #include -#include "ignition/common/geospatial/ImageHeightmap.hh" +#include "ignition/common/ImageHeightmap.hh" #include "test_config.h" #define ELEVATION_TOL 1e-8