Skip to content

Commit

Permalink
Remove GLContext include from mesh_model
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 16, 2024
1 parent edce0e6 commit 15c56d7
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/ml_document/mesh_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "cmesh.h"
#include "../GLLogStream.h"
#include "../filterscript.h"
#include "../ml_shared_data_context/ml_plugin_gl_context.h"
//#include "../ml_shared_data_context/ml_plugin_gl_context.h"

#include <vcg/complex/algorithms/update/bounding.h>
#include <vcg/complex/algorithms/update/color.h>
Expand Down
2 changes: 2 additions & 0 deletions src/common/ml_selection_buffers.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "ml_selection_buffers.h"

#include "vcglib/wrap/gl/deprecated_math.h"

MLSelectionBuffers::MLSelectionBuffers(MeshModel& m,unsigned int primitivebatch)
:_lock(),_m(m),_primitivebatch(primitivebatch),_selmap(2)
{
Expand Down
3 changes: 3 additions & 0 deletions src/common/plugins/interfaces/edit_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include "meshlab_plugin.h"
#include "../../ml_document/mesh_document.h"

class MLRenderingData;
class MLSceneGLSharedDataContext;


class GLArea;

Expand Down
2 changes: 2 additions & 0 deletions src/common/plugins/interfaces/filter_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Q_DECLARE_METATYPE(Matrix33m)
Q_DECLARE_METATYPE(Matrix44m)
Q_DECLARE_METATYPE(Eigen::VectorXd)

class MLPluginGLContext;

/**
* @brief The FilterPlugin class provide the interface of the filter plugins.
*/
Expand Down
1 change: 1 addition & 0 deletions src/meshlab/mainwindow_RunTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <common/mlexception.h>
#include <common/globals.h>
#include <common/utilities/load_save.h>
#include <common/ml_shared_data_context/ml_plugin_gl_context.h>

#include <common_gui/rich_parameter/richparameterlistdialog.h>

Expand Down
1 change: 1 addition & 0 deletions src/meshlab/multiViewer_Container.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
class GLArea;
class RichParameterList;
class MultiViewer_Container;
class MLSceneGLSharedDataContext;

class Splitter : public QSplitter
{
Expand Down
1 change: 1 addition & 0 deletions src/meshlabplugins/filter_ao/filter_ao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
****************************************************************************/

#include <common/GLExtensionsManager.h>
#include <common/ml_shared_data_context/ml_plugin_gl_context.h>
#include "filter_ao.h"
#include <QGLFramebufferObject>
#include <QElapsedTimer>
Expand Down
2 changes: 2 additions & 0 deletions src/meshlabplugins/filter_color_projection/render_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#include <common/GLExtensionsManager.h>
#include <common/ml_document/mesh_model.h>
#include <common/ml_shared_data_context/ml_plugin_gl_context.h>
#include <common/ml_shared_data_context/ml_shared_data_context.h>

#include <QObject>
#include <QGLContext>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "filter_mutualglobal.h"
#include <common/GLExtensionsManager.h>
#include <common/ml_shared_data_context/ml_plugin_gl_context.h>

#include "alignset.h"

Expand Down
3 changes: 3 additions & 0 deletions src/meshlabplugins/filter_mutualinfo/alignset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#include <GL/glew.h>

#include <common/ml_shared_data_context/ml_plugin_gl_context.h>
#include <common/ml_shared_data_context/ml_shared_data_context.h>

#include <QGLContext>
#include <QDomNode>
#include <QDir>
Expand Down
1 change: 1 addition & 0 deletions src/meshlabplugins/filter_mutualinfo/alignset.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "pointCorrespondence.h"

class QGLFramebufferObject;
class MLPluginGLContext;

class AlignSet {
//typedef vcg::Camera<float> Camera;
Expand Down
1 change: 1 addition & 0 deletions src/meshlabplugins/filter_mutualinfo/filter_mutualinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "filter_mutualinfo.h"
#include <common/GLExtensionsManager.h>
#include <common/ml_shared_data_context/ml_plugin_gl_context.h>

#include "alignset.h"

Expand Down
2 changes: 2 additions & 0 deletions src/meshlabplugins/filter_sample_gpu/filter_sample_gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#include "filter_sample_gpu.h"
#include <common/GLExtensionsManager.h>
#include <common/ml_shared_data_context/ml_plugin_gl_context.h>
#include <common/ml_shared_data_context/ml_shared_data_context.h>
#include <wrap/glw/glw.h>
#include <QImage>

Expand Down
1 change: 1 addition & 0 deletions src/meshlabplugins/filter_sdfgpu/filter_sdfgpu.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "filter_sdfgpu.h"
#include <common/GLExtensionsManager.h>
#include <common/ml_shared_data_context/ml_plugin_gl_context.h>

#include <vcg/complex/complex.h>
#include <vcg/complex/algorithms/intersection.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <vcg/complex/algorithms/update/normal.h>

#include <common/GLExtensionsManager.h>
#include <common/ml_shared_data_context/ml_plugin_gl_context.h>
#include <common/ml_shared_data_context/ml_shared_data_context.h>

#include "TextureDefragmentation/src/mesh.h"
#include "TextureDefragmentation/src/texture_object.h"
Expand Down
1 change: 1 addition & 0 deletions src/meshlabplugins/io_base/load_project.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define LOAD_PROJECT_H

#include <common/ml_document/mesh_model.h>
#include <common/ml_shared_data_context/ml_shared_data_context.h>

std::vector<MeshModel*> loadALN(
const QString& filename,
Expand Down
2 changes: 2 additions & 0 deletions src/meshlabplugins/io_base/save_project.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include <common/ml_document/mesh_document.h>

#include <common/ml_shared_data_context/ml_shared_data_context.h>

void saveMLP(
const QString& filename,
const MeshDocument& md,
Expand Down

0 comments on commit 15c56d7

Please sign in to comment.