Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1880c87
[All] Remove LennardJonesForceField and Elasticity_test_deprecated
guparan Jun 17, 2021
8d1f624
[All] Remove empty SOFA_WITH_DEPRECATED_COMPONENTS blocks
guparan Jun 18, 2021
a94dc54
[SofaCore] Delete deprecated code
guparan Jun 18, 2021
a5eb134
[All] Remove compat headers flagged for v21.06
guparan Jun 18, 2021
80c3e68
[Sofa.Config] Improve SOFA_DEPRECATED_HEADER + Add SOFA_DISABLED_HEADER
guparan Jun 18, 2021
8fdd43c
[Sofa.Compat] Disable headers deprecated since #1649
guparan Jun 18, 2021
c64914b
[All] Make SOFA_DEPRECATED_HEADER consistent with SOFA_ATTRIBUTE_* ma…
guparan Jun 18, 2021
01bb4e9
[SofaCore] Disable code deprecated since #1627
guparan Jun 18, 2021
5fffb1c
[SofaCore] Disable code deprecated since #1626
guparan Jun 18, 2021
239c45f
[SofaGeneralSimpleFem] Disable headers following #2099
guparan Jun 18, 2021
feed779
[All] Remove old deprecated code
guparan Jun 23, 2021
899e4fe
[All] FIX old "gl.h" and "glu.h" includes
guparan Jun 23, 2021
da18af3
[All] Remove code marked "to be removed for v19.12"
guparan Jun 23, 2021
399decf
[All] CLEAN a lot of deprecated code
guparan Jun 23, 2021
09c5d34
[SofaExporter] Clean and expand namespace deprecation
guparan Jun 24, 2021
932c124
disable vec4f uses in drawtool
fredroy Jun 24, 2021
45a012d
replace in compliant flexible
fredroy Jun 24, 2021
d19a063
replace in other plugins
fredroy Jun 24, 2021
ec23b40
[All] CLEAN remaining [[deprecated]] attributes
guparan Jun 24, 2021
106322c
Merge remote-tracking branch 'sofa-framework/master' into clean_lifec…
guparan Jun 24, 2021
faeabae
[SofaCore] Move DeprecatedAndRemoved to Sofa.Config
guparan Jun 24, 2021
20fb302
[plugins] FIX missing sofa::helper::NameDecoder::decode*Name
guparan Jun 24, 2021
2a50346
[SofaExporter] FIX missing template for compat alias
guparan Jun 24, 2021
b07787f
Merge remote-tracking branch 'fredroy/remove_vec4f_color' into clean_…
guparan Jun 24, 2021
d200a0a
[plugins] FIX old SofaTest/Python_test.h includes
guparan Jun 25, 2021
03e4a27
Merge remote-tracking branch 'sofa-framework/master' into clean_lifec…
guparan Jun 25, 2021
e800d93
[Sofa.Config] FIX deprecated messages on GCC
guparan Jun 25, 2021
bb933d5
[MeshSTEPLoader] FIX deprecated className method
guparan Jun 25, 2021
7a66868
[Modeler] FIX deprecated shortName method
guparan Jun 25, 2021
c0e2a4c
[All] FIX all scenes using deprecated Components
guparan Jun 25, 2021
314e090
[SofaHelper] CLEAN ComponentChange
guparan Jun 25, 2021
e7c3156
[All] FIX more code using deprecated Components
guparan Jun 25, 2021
7732d36
[All] Finish LennardJonesForceField removal
guparan Jun 25, 2021
fb980be
[SofaGraphComponent] FIX failing test
guparan Jun 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 2 additions & 9 deletions SofaKernel/modules/Sofa.Compat/src/sofa/core/visual/DrawTool.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@
******************************************************************************/
#pragma once

#include <sofa/helper/visual/DrawTool.h>
#include <sofa/config.h>


SOFA_DEPRECATED_HEADER(v21.06, "sofa/helper/visual/DrawTool.h")

namespace sofa::core::visual
{
using DrawTool = sofa::helper::visual::DrawTool;

} // namespace sofa::core::visual
SOFA_DISABLED_HEADER("v20.12 (PR#1649)", "v21.06", "sofa/helper/visual/DrawTool.h")
24 changes: 2 additions & 22 deletions SofaKernel/modules/Sofa.Compat/src/sofa/core/visual/DrawToolGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,6 @@
******************************************************************************/
#pragma once

#include <sofa/config.h>

#if __has_include(<sofa/gl/DrawToolGL.h>)
#include <sofa/gl/DrawToolGL.h>
#define GL_DRAWTOOLGL_ENABLE_WRAPPER

SOFA_DEPRECATED_HEADER(v21.06, "sofa/gl/DrawToolGL.h")

#else
#error "OpenGL headers have been moved to Sofa.GL. Therefore you will need to link against Sofa.GL if you need OpenGL (PR1649), and include <sofa/gl/DrawToolGL.h> instead of this one."
#endif

#ifdef GL_DRAWTOOLGL_ENABLE_WRAPPER

namespace sofa::core::visual
{
using DrawToolGL = sofa::gl::DrawToolGL;

} // namespace sofa::core::visual

#endif // GL_DRAWTOOLGL_ENABLE_WRAPPER

#undef GL_DRAWTOOLGL_ENABLE_WRAPPER

SOFA_DISABLED_HEADER("v20.12 (PR#1649)", "v21.06", "sofa/gl/DrawToolGL.h")
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <sofa/type/BoundingBox.h>

// SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/BoundingBox.h")
// SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/BoundingBox.h")

namespace sofa::defaulttype
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <sofa/type/Frame.h>

// SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Frame.h")
// SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Frame.h")

namespace sofa::defaulttype
{
Expand Down
2 changes: 1 addition & 1 deletion SofaKernel/modules/Sofa.Compat/src/sofa/defaulttype/Mat.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
//SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Mat.h")
//SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Mat.h")

namespace sofa::defaulttype
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
// SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/MatSym.h")
// SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/MatSym.h")

namespace sofa::defaulttype
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

#include <sofa/type/Mat_solve_Cholesky.h>

SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Mat_solve_Cholesky.h")
SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Mat_solve_Cholesky.h")
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

#include <sofa/type/Mat_solve_LU.h>

SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Mat_solve_LU.h")
SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Mat_solve_LU.h")
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

#include <sofa/type/Mat_solve_SVD.h>

SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Mat_solve_SVD.h")
SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Mat_solve_SVD.h")
2 changes: 1 addition & 1 deletion SofaKernel/modules/Sofa.Compat/src/sofa/defaulttype/Quat.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
// SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Quat.h")
// SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Quat.h")

#include <sofa/defaulttype/Vec.h>
#include <sofa/defaulttype/Mat.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

namespace sofa::defaulttype
{
[[deprecated("sofa::defaulttype::RGBAColor is now part in sofa::type::RGBAColor. Please update your code.")]]
SOFA_ATTRIBUTE_DEPRECATED("v21.06 (PR#1818)", "v21.12", "Use sofa::type::RGBAColor instead.")
typedef sofa::type::RGBAColor RGBAColor;

} // namespace sofa::defaulttype
}
2 changes: 1 addition & 1 deletion SofaKernel/modules/Sofa.Compat/src/sofa/defaulttype/Ray.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <sofa/type/Ray.h>

// SOFA_DEPRECATED_HEADER(v21.12, "sofa/defaulttype/Ray.h")
// SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/defaulttype/Ray.h")

namespace sofa::defaulttype
{
Expand Down
2 changes: 1 addition & 1 deletion SofaKernel/modules/Sofa.Compat/src/sofa/defaulttype/Vec.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
//SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Vec.h")
//SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Vec.h")

namespace sofa::defaulttype
{
Expand Down
2 changes: 1 addition & 1 deletion SofaKernel/modules/Sofa.Compat/src/sofa/helper/DualQuat.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
// SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/DualQuat.h")
// SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/DualQuat.h")

namespace sofa::helper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
// SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/DualQuat.inl")
// SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/DualQuat.inl")
2 changes: 1 addition & 1 deletion SofaKernel/modules/Sofa.Compat/src/sofa/helper/Quater.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
//SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Quat.h")
//SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Quat.h")

#include <sofa/defaulttype/Vec.h>
#include <sofa/defaulttype/Mat.h>
Expand Down
2 changes: 1 addition & 1 deletion SofaKernel/modules/Sofa.Compat/src/sofa/helper/Quater.inl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
// SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/Quat.inl")
// SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/Quat.inl")
2 changes: 1 addition & 1 deletion SofaKernel/modules/Sofa.Compat/src/sofa/helper/SVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
//SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/SVector.h")
//SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/SVector.h")

namespace sofa::helper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
//SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/fixed_array.h")
//SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/fixed_array.h")

namespace sofa::helper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// The following SOFA_DEPRECATED_HEADER is commented to avoid a massive number of warnings.
// This flag will be enabled once all the code base in Sofa is ported to Sofa.Type.
// (PR #1790)
//SOFA_DEPRECATED_HEADER(v21.12, "sofa/type/fixed_array_algorithms.h")
//SOFA_DEPRECATED_HEADER("v21.06", "v21.12", "sofa/type/fixed_array_algorithms.h")

namespace sofa::helper::pairwise
{
Expand Down
24 changes: 2 additions & 22 deletions SofaKernel/modules/Sofa.Compat/src/sofa/helper/gl/Axis.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,6 @@
******************************************************************************/
#pragma once

#include <sofa/helper/config.h>
#include <sofa/config.h>

#if __has_include(<sofa/gl/Axis.h>)
#include <sofa/gl/Axis.h>
#define GL_AXIS_ENABLE_WRAPPER

SOFA_DEPRECATED_HEADER(v21.06, "sofa/gl/Axis.h")

#else
#error "OpenGL headers have been moved to Sofa.GL. Therefore you will need to link against Sofa.GL if you need OpenGL (PR1649), and include <sofa/gl/Axis.h> instead of this one."
#endif

#ifdef GL_AXIS_ENABLE_WRAPPER

namespace sofa::helper::gl
{
using Axis = sofa::gl::Axis;

} // namespace sofa::helper::gl

#endif // GL_AXIS_ENABLE_WRAPPER

#undef GL_AXIS_ENABLE_WRAPPER
SOFA_DISABLED_HEADER("v20.12 (PR#1649)", "v21.06", "sofa/gl/Axis.h")
76 changes: 2 additions & 74 deletions SofaKernel/modules/Sofa.Compat/src/sofa/helper/gl/BasicShapes.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,78 +21,6 @@
******************************************************************************/
#pragma once

#include <sofa/helper/config.h>
#include <sofa/config.h>

#if __has_include(<sofa/gl/BasicShapes.h>)
#include <sofa/gl/BasicShapes.h>
#define GL_BASICSHAPES_ENABLE_WRAPPER

SOFA_DEPRECATED_HEADER(v21.06, "sofa/gl/BasicShapes.h")

#else
#error "OpenGL headers have been moved to Sofa.GL. Therefore you will need to link against Sofa.GL if you need OpenGL (PR1649), and include <sofa/gl/BasicShapes.h> instead of this one."
#endif

#ifdef GL_BASICSHAPES_ENABLE_WRAPPER
#include <sofa/helper/fixed_array.h>

namespace sofa::helper::gl
{
template <typename V>
void drawCone(const V& p1, const V& p2, const float& radius1, const float& radius2, const int subd = 8)
{
sofa::gl::drawCone<V>(p1, p2, radius1, radius2, subd);
}


template <typename V>
void drawCylinder(const V& p1, const V& p2, const float& rad, const int subd = 8)
{
sofa::gl::drawCylinder<V>(p1, p2, rad, subd);
}


template <typename V>
void drawArrow(const V& p1, const V& p2, const float& rad, const int subd = 8)
{
sofa::gl::drawArrow<V>(p1, p2, rad, subd);
}


template <typename V>
void drawSphere(const V& center, const float& rad, const int subd1 = 8, const int subd2 = 8)
{
sofa::gl::drawSphere<V>(center, rad, subd1, subd2);
}

template <typename V>
void drawEllipsoid(const V& center, const float& radx, const float& rady, const float& radz, const int subd1 = 8, const int subd2 = 8)
{
sofa::gl::drawEllipsoid<V>(center, radx, rady, subd1, subd2);
}

template <typename V>
void drawWireSphere(const V& center, const float& rad, const int subd1 = 8, const int subd2 = 8)
{
sofa::gl::drawWireSphere<V>(center, rad, subd1, subd2);
}

template <typename V>
void drawTorus(const float* coordinateMatrix, const float& bodyRad = 0.0, const float& rad = 1.0, const int precision = 20,
const V& color = sofa::helper::fixed_array<int, 3>(255, 215, 180))
{
sofa::gl::drawTorus<V>(coordinateMatrix, bodyRad, rad, precision, color);
}

template <typename V>
void drawEmptyParallelepiped(const V& vert1, const V& vert2, const V& vert3, const V& vert4, const V& vecFromFaceToOppositeFace, const float& rad = 1.0, const int precision = 8,
const V& color = sofa::helper::fixed_array<int, 3>(255, 0, 0))
{
sofa::gl::drawEmptyParallelepiped<V>(vert1, vert2, vert3, vert4, vecFromFaceToOppositeFace, rad, precision, color);
}

} // namespace sofa::helper::gl

#endif // GL_BASICSHAPES_ENABLE_WRAPPER

#undef GL_BASICSHAPES_ENABLE_WRAPPER
SOFA_DISABLED_HEADER("v20.12 (PR#1649)", "v21.06", "sofa/gl/BasicShapes.h")
24 changes: 2 additions & 22 deletions SofaKernel/modules/Sofa.Compat/src/sofa/helper/gl/Capture.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,6 @@
******************************************************************************/
#pragma once

#include <sofa/helper/config.h>
#include <sofa/config.h>

#if __has_include(<sofa/gl/Capture.h>)
#include <sofa/gl/Capture.h>
#define GL_CAPTURE_ENABLE_WRAPPER

SOFA_DEPRECATED_HEADER(v21.06, "sofa/gl/Capture.h")

#else
#error "OpenGL headers have been moved to Sofa.GL. Therefore you will need to link against Sofa.GL if you need OpenGL (PR1649), and include <sofa/gl/Capture.h> instead of this one."
#endif

#ifdef GL_CAPTURE_ENABLE_WRAPPER

namespace sofa::helper::gl
{
using Capture = sofa::gl::Capture;

} // namespace sofa::helper::gl

#endif // GL_CAPTURE_ENABLE_WRAPPER

#undef GL_CAPTURE_ENABLE_WRAPPER
SOFA_DISABLED_HEADER("v20.12 (PR#1649)", "v21.06", "sofa/gl/Capture.h")
24 changes: 2 additions & 22 deletions SofaKernel/modules/Sofa.Compat/src/sofa/helper/gl/Color.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,6 @@
******************************************************************************/
#pragma once

#include <sofa/helper/config.h>
#include <sofa/config.h>

#if __has_include(<sofa/gl/Color.h>)
#include <sofa/gl/Color.h>
#define GL_COLOR_ENABLE_WRAPPER

SOFA_DEPRECATED_HEADER(v21.06, "sofa/gl/Color.h")

#else
#error "OpenGL headers have been moved to Sofa.GL. Therefore you will need to link against Sofa.GL if you need OpenGL (PR1649), and include <sofa/gl/Color.h> instead of this one."
#endif

#ifdef GL_COLOR_ENABLE_WRAPPER

namespace sofa::helper::gl
{
using Color = sofa::gl::Color;

} // namespace sofa::helper::gl

#endif // GL_COLOR_ENABLE_WRAPPER

#undef GL_COLOR_ENABLE_WRAPPER
SOFA_DISABLED_HEADER("v20.12 (PR#1649)", "v21.06", "sofa/gl/Color.h")
24 changes: 2 additions & 22 deletions SofaKernel/modules/Sofa.Compat/src/sofa/helper/gl/Cylinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,6 @@
******************************************************************************/
#pragma once

#include <sofa/helper/config.h>
#include <sofa/config.h>

#if __has_include(<sofa/gl/Cylinder.h>)
#include <sofa/gl/Cylinder.h>
#define GL_CYLINDER_ENABLE_WRAPPER

SOFA_DEPRECATED_HEADER(v21.06, "sofa/gl/Cylinder.h")

#else
#error "OpenGL headers have been moved to Sofa.GL. Therefore you will need to link against Sofa.GL if you need OpenGL (PR1649), and include <sofa/gl/Cylinder.h> instead of this one."
#endif

#ifdef GL_CYLINDER_ENABLE_WRAPPER

namespace sofa::helper::gl
{
using Cylinder = sofa::gl::Cylinder;

} // namespace sofa::helper::gl

#endif // GL_CYLINDER_ENABLE_WRAPPER

#undef GL_CYLINDER_ENABLE_WRAPPER
SOFA_DISABLED_HEADER("v20.12 (PR#1649)", "v21.06", "sofa/gl/Cylinder.h")
Loading