Skip to content

Commit

Permalink
Merge pull request #1072 from dlyr/remove-eigen-deprecated-macro
Browse files Browse the repository at this point in the history
Remove EIGEN_MAKE_ALIGNED_OPERATOR_NEW
  • Loading branch information
dlyr authored Oct 20, 2023
2 parents e7c3fd9 + 698c4ba commit 143e1b0
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 55 deletions.
2 changes: 0 additions & 2 deletions src/Core/Asset/Camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ namespace Asset {
class RA_CORE_API Camera
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/// Define the projection type.
enum class ProjType { ORTHOGRAPHIC, PERSPECTIVE };

Expand Down
2 changes: 0 additions & 2 deletions src/Core/Asset/GeometryData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ class RA_CORE_API GeometryData : public AssetData
using ColorArray = Vector4Array;

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/**
* The type of geometry.
*/
Expand Down
3 changes: 0 additions & 3 deletions src/Core/Asset/HandleData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ namespace Asset {
* A HandleComponentData stores the data of an animation Handle linked to an object.
*/
struct RA_CORE_API HandleComponentData {
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

HandleComponentData();

Expand All @@ -42,8 +41,6 @@ struct RA_CORE_API HandleComponentData {
class RA_CORE_API HandleData : public AssetData
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/**
* The type of Handle system.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Core/Asset/LightData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class RA_CORE_API LightData : public AssetData
{

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/** Supported light type
*
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Core/Containers/Grid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ class Grid
};

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

//
// Constructors
//
Expand Down
1 change: 0 additions & 1 deletion src/Core/Containers/Tex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class Tex : public Grid<T, N>
{

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
using IdxVector = typename Grid<T, N>::IdxVector;
using Vector = Eigen::Matrix<Scalar, N, 1>;
using AabbND = Eigen::AlignedBox<Scalar, N>;
Expand Down
7 changes: 0 additions & 7 deletions src/Core/Geometry/TopologicalMesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class RA_CORE_API TopologicalMesh : public OpenMesh::PolyMesh_ArrayKernelT<Topol
class WedgeCollection;

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
class WedgeData;
using WedgeIndex = Ra::Core::Utils::Index;
using WedgeAttribIndex = Ra::Core::Utils::Index;
Expand Down Expand Up @@ -372,8 +371,6 @@ class RA_CORE_API TopologicalMesh : public OpenMesh::PolyMesh_ArrayKernelT<Topol
class WedgeData
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

explicit WedgeData() = default;
inline bool operator==( const WedgeData& lhs ) const;
inline bool operator!=( const WedgeData& lhs ) const;
Expand Down Expand Up @@ -413,8 +410,6 @@ class RA_CORE_API TopologicalMesh : public OpenMesh::PolyMesh_ArrayKernelT<Topol
class RA_CORE_API Wedge
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

explicit Wedge() {}
explicit Wedge( const WedgeData& wd ) : m_wedgeData { wd }, m_refCount { 1 } {};
const WedgeData& getWedgeData() const { return m_wedgeData; }
Expand Down Expand Up @@ -450,8 +445,6 @@ class RA_CORE_API TopologicalMesh : public OpenMesh::PolyMesh_ArrayKernelT<Topol
class RA_CORE_API WedgeCollection
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/**
* Add wd to the wedge collection, and return the index.
* If a wedge with same data is already present, it's index is returned,
Expand Down
2 changes: 0 additions & 2 deletions src/Core/Geometry/TriangleMesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ namespace Geometry {
class RA_CORE_API AttribArrayGeometry : public AbstractGeometry
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

using Point = Vector3;
using Normal = Vector3;

Expand Down
2 changes: 0 additions & 2 deletions src/Core/Geometry/deprecated/TopologicalMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ TriangleMesh TopologicalMesh::toTriangleMesh() {
HandleAndValueVector<Vector3> _vec3;
HandleAndValueVector<Vector4> _vec4;

EIGEN_MAKE_ALIGNED_OPERATOR_NEW

bool operator==( const VertexDataInternal& lhs ) const {
return _vertex == lhs._vertex && _normal == lhs._normal && _float == lhs._float &&
_vec2 == lhs._vec2 && _vec3 == lhs._vec3 && _vec4 == lhs._vec4;
Expand Down
2 changes: 0 additions & 2 deletions src/Core/Geometry/deprecated/TopologicalMesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ class RA_CORE_API TopologicalMesh : public OpenMesh::PolyMesh_ArrayKernelT<Topol
using Vector3 = Ra::Core::Vector3;

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/**
* Construct a topological mesh from a triangle mesh.
* This operation merges vertex with same position, but keeps vertex
Expand Down
2 changes: 0 additions & 2 deletions src/Core/Math/DualQuaternion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class DualQuaternion
{

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/// Construct an uninitialized dual quaternion.
inline DualQuaternion() {}

Expand Down
1 change: 0 additions & 1 deletion src/Engine/Data/BlinnPhongMaterial.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class RA_ENGINE_API BlinnPhongMaterial final : public Material, public Parameter
enum class TextureSemantic { TEX_DIFFUSE, TEX_SPECULAR, TEX_NORMAL, TEX_SHININESS, TEX_ALPHA };

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
/**
* Construct a named Blinn-Phongmaterial
* \param instanceName The name of this instance of the material
Expand Down
6 changes: 0 additions & 6 deletions src/Engine/Data/Material.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#include <map>
#include <string>

// This include brings only the macro EIGEN_MAKE_ALIGNED_OPERATOR_NEW in the file scope.
// Need to be separated to reduce compilation time
#include <Core/Types.hpp>

#include <Engine/Data/RenderParameters.hpp>

namespace Ra {
Expand All @@ -35,8 +31,6 @@ class RA_ENGINE_API Material : public Data::ShaderParameterProvider
};

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

protected:
/**
* Creates a named material with the given aspect
Expand Down
1 change: 0 additions & 1 deletion src/Engine/Data/VolumetricMaterial.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class RA_ENGINE_API VolumetricMaterial final : public Material, public Parameter
{

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
/**
* Construct a named VolumetricMaterial
* \param name The name of the material
Expand Down
2 changes: 0 additions & 2 deletions src/Engine/Rendering/RenderObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ namespace Rendering {
class RA_ENGINE_API RenderObject final : public Core::Utils::IndexedObject
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/**
* Construct a renderObject
*
Expand Down
2 changes: 0 additions & 2 deletions src/Engine/Scene/CameraComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class Entity;
class RA_ENGINE_API CameraComponent : public Scene::Component
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

CameraComponent( Entity* entity, const std::string& name, Scalar height = 1, Scalar width = 1 );

~CameraComponent() override;
Expand Down
2 changes: 0 additions & 2 deletions src/Engine/Scene/DirLight.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class Entity;
class RA_ENGINE_API DirectionalLight final : public Ra::Engine::Scene::Light
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

explicit DirectionalLight( Entity* entity, const std::string& name = "dirlight" );
~DirectionalLight() override = default;

Expand Down
1 change: 0 additions & 1 deletion src/Engine/Scene/Entity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class System;
class RA_ENGINE_API Entity : public Core::Utils::IndexedObject
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
explicit Entity( const std::string& name = "" );

// Entities are not copyable.
Expand Down
2 changes: 0 additions & 2 deletions src/Engine/Scene/Light.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ class RA_ENGINE_API Light : public Component
};

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

/**
* Create a new light. The new light is a component attached to the given entity
* \param entity
Expand Down
2 changes: 0 additions & 2 deletions src/Engine/Scene/PointLight.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class Entity;
class RA_ENGINE_API PointLight final : public Ra::Engine::Scene::Light
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

explicit PointLight( Entity* entity, const std::string& name = "pointlight" );
~PointLight() override = default;

Expand Down
2 changes: 0 additions & 2 deletions src/Engine/Scene/SpotLight.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ class RA_ENGINE_API SpotLight final : public Ra::Engine::Scene::Light
{

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

explicit SpotLight( Entity* entity, const std::string& name = "spotlight" );
~SpotLight() override = default;

Expand Down
2 changes: 0 additions & 2 deletions src/Gui/TransformEditor/TransformEditor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ namespace Gui {
class RA_GUI_API TransformEditor
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

TransformEditor() : m_transform( Core::Transform::Identity() ) {}
virtual ~TransformEditor();

Expand Down
1 change: 0 additions & 1 deletion src/Gui/Viewer/Gizmo/Gizmo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class Gizmo
};

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Gizmo( Engine::Scene::Component* c,
const Core::Transform& worldTo,
const Core::Transform& t,
Expand Down
2 changes: 0 additions & 2 deletions src/Gui/Viewer/Gizmo/GizmoManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ class RA_GUI_API GizmoManager : public QObject,
friend class KeyMappingManageable<GizmoManager>;

public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

enum GizmoType { NONE, TRANSLATION, ROTATION, SCALE };

explicit GizmoManager( QObject* parent = nullptr );
Expand Down
2 changes: 0 additions & 2 deletions tests/unittest/Core/topomesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ bool isSameMesh( const Ra::Core::Geometry::TriangleMesh& meshOne,
class WedgeDataAndIdx
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

TopologicalMesh::WedgeData m_data;

size_t m_idx;
Expand Down

0 comments on commit 143e1b0

Please sign in to comment.