Skip to content

Commit

Permalink
cleanup. added cstdint include
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed Dec 10, 2024
1 parent 97094d7 commit d2a6da9
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 17 deletions.
3 changes: 3 additions & 0 deletions include/lvr2/types/ByteEncoding.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef LVR2_TYPES_BYTE_ENCODING_HPP
#define LVR2_TYPES_BYTE_ENCODING_HPP

#include <boost/shared_array.hpp>
#include <boost/optional.hpp>

namespace lvr2 {

/**
Expand Down
7 changes: 4 additions & 3 deletions include/lvr2/types/ColorTypes.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef COLORTYPES
#define COLORTYPES
#ifndef LVR2_TYPES_COLORTYPES_HPP
#define LVR2_TYPES_COLORTYPES_HPP

#include <cstdint>
#include <array>

namespace lvr2
Expand All @@ -11,4 +12,4 @@ using RGBFColor = std::array<float, 3>;

} // namespace lvr2

#endif // COLORTYPES
#endif // LVR2_TYPES_COLORTYPES_HPP
7 changes: 6 additions & 1 deletion include/lvr2/types/DistortionModels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
/// @author Justus Braun (jubraun@uos.de)
/// @brief This file contains distortion models which model lens distortion of real cameras.
#pragma once
#ifndef LVR2_TYPES_DISTORTION_MODELS_HPP
#define LVR2_TYPES_DISTORTION_MODELS_HPP

#include <lvr2/types/MatrixTypes.hpp>

namespace lvr2
Expand Down Expand Up @@ -172,4 +175,6 @@ struct OpenCVDistortion: DistortionModelInterface

} // namespace lvr2

#include "DistortionModels.tcc"
#include "DistortionModels.tcc"

#endif // LVR2_TYPES_DISTORTION_MODELS_HPP
7 changes: 3 additions & 4 deletions include/lvr2/types/ElementProxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
*/

#pragma once

#ifndef LVR2_TYPES_ELEMENTPROXY
#define LVR2_TYPES_ELEMENTPROXY
#ifndef LVR2_TYPES_ELEMENTPROXY_HPP
#define LVR2_TYPES_ELEMENTPROXY_HPP

#include <array>
#include <iostream>
Expand Down Expand Up @@ -314,4 +313,4 @@ class ElementProxy

} // namespace lvr2

#endif // LVR2_TYPES_ELEMENTPROXY
#endif // LVR2_TYPES_ELEMENTPROXY_HPP
2 changes: 2 additions & 0 deletions include/lvr2/types/LabelBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

#include "lvr2/types/BaseBuffer.hpp"
#include "lvr2/types/ScanTypes.hpp"
#include "lvr2/io/DataStruct.hpp"
#include <vector>

namespace lvr2
{
Expand Down
9 changes: 6 additions & 3 deletions include/lvr2/types/MeshBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef MESHBUFFER2_HPP
#define MESHBUFFER2_HPP
#ifndef LVR2_MESHBUFFER_HPP
#define LVR2_MESHBUFFER_HPP

#include "lvr2/texture/Material.hpp"
#include "lvr2/texture/Texture.hpp"
#include "lvr2/io/DataStruct.hpp" // floatArr, etc
#include "lvr2/types/BaseBuffer.hpp"

#include <vector>

namespace lvr2
{

Expand Down Expand Up @@ -217,4 +220,4 @@ class MeshBuffer : public BaseBuffer
using MeshBufferPtr = std::shared_ptr<MeshBuffer>;

}
#endif // MESHBUFFER2_HPP
#endif // LVR2_MESHBUFFER_HPP
6 changes: 3 additions & 3 deletions include/lvr2/types/Model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
* @author Thomas Wiemann
*/

#ifndef MODEL_H_
#define MODEL_H_
#ifndef LVR2_MODEL_HPP
#define LVR2_MODEL_HPP

#include "lvr2/types/MeshBuffer.hpp"
#include "lvr2/types/PointBuffer.hpp"
Expand Down Expand Up @@ -85,4 +85,4 @@ using ModelPtr = std::shared_ptr<Model>;

} // namespace lvr2

#endif /* MODEL_H_ */
#endif // LVR2_MODEL_HPP
6 changes: 3 additions & 3 deletions include/lvr2/types/PointBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef POINTBUFFER2_HPP
#define POINTBUFFER2_HPP
#ifndef LVR2_POINTBUFFER_HPP
#define LVR2_POINTBUFFER_HPP

#include "lvr2/io/DataStruct.hpp"
#include "lvr2/types/BaseBuffer.hpp"
Expand Down Expand Up @@ -143,4 +143,4 @@ using PointBufferPtr = std::shared_ptr<PointBuffer>;

} // namespace lvr2

#endif // POINTBUFFER2_HPP
#endif // LVR2_POINTBUFFER_HPP

0 comments on commit d2a6da9

Please sign in to comment.