Commit da552914 authored by Martin Schultz's avatar Martin Schultz

reduced includes by means of static code analysis

parent 62666ec3
Pipeline #171 failed with stage
......@@ -60,7 +60,6 @@
#include <ACG/GL/acg_glew.hh>
#include <ACG/GL/AntiAliasing.hh>
#include <ACG/Math/VectorT.hh>
#include <ACG/ShaderUtils/GLSLShader.hh>
#include <ACG/GL/ScreenQuad.hh>
......
......@@ -61,7 +61,6 @@
//=============================================================================
#include "GLError.hh"
#include <string>
//=============================================================================
namespace ACG {
......
......@@ -48,8 +48,6 @@
\*===========================================================================*/
#include <ACG/GL/acg_glew.hh>
#include <iostream>
#include <cstdio>
#include "GLPrimitives.hh"
#include <ACG/GL/IRenderer.hh>
......
......@@ -58,7 +58,6 @@
#include <ACG/GL/acg_glew.hh>
#include "GLState.hh"
#include <cstring>
//== NAMESPACES ===============================================================
......
......@@ -51,7 +51,6 @@
#include <cstdio>
#include <cstring>
#include <iostream>
#include <cstdlib>
#include <QFile>
#include <QTextStream>
......@@ -60,12 +59,8 @@
#include <ACG/GL/IRenderer.hh>
#include <ACG/GL/VertexDeclaration.hh>
#include <ACG/GL/GLState.hh>
#include <ACG/GL/GLError.hh>
#include <ACG/Scenegraph/DrawModes.hh>
#include <ACG/Scenegraph/MaterialNode.hh>
#include <ACG/ShaderUtils/GLSLShader.hh>
#include <ACG/GL/ShaderCache.hh>
#include <ACG/GL/ScreenQuad.hh>
#include <ACG/GL/FBO.hh>
......
......@@ -50,15 +50,10 @@
#include "MeshCompiler.hh"
#include <map>
#include <list>
#include <cassert>
#include <iostream>
#include <sstream>
#include <algorithm>
#ifdef USE_OPENMP
#include <omp.h>
#endif
#ifdef ACG_MC_USE_STL_HASH
......
......@@ -48,7 +48,6 @@
\*===========================================================================*/
#include <cstdio>
#include <cstring>
#include <iostream>
#include <cstdlib>
#include <QFile>
......@@ -59,11 +58,7 @@
#include <ACG/GL/IRenderer.hh>
#include <ACG/GL/VertexDeclaration.hh>
#include <ACG/GL/GLState.hh>
#include <ACG/Scenegraph/DrawModes.hh>
#include <ACG/Scenegraph/MaterialNode.hh>
#include <ACG/ShaderUtils/GLSLShader.hh>
#include <ACG/GL/ShaderCache.hh>
......
......@@ -62,7 +62,6 @@
#include "ScreenQuad.hh"
#include <ACG/ShaderUtils/GLSLShader.hh>
#include <ACG/GL/GLError.hh>
#include <ACG/GL/VertexDeclaration.hh>
#include <ACG/GL/globjects.hh>
//== NAMESPACES ===============================================================
......
......@@ -49,12 +49,9 @@
#include "ShaderCache.hh"
#include "ShaderGenerator.hh"
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <fstream>
......@@ -63,7 +60,6 @@
#include <QDir>
#include <QTextStream>
#include <ACG/GL/gl.hh>
#include <ACG/GL/GLError.hh>
#include <ACG/ShaderUtils/GLSLShader.hh>
......
......@@ -49,16 +49,13 @@
#include "ShaderGenerator.hh"
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <QFile>
#include <QFileInfo>
#include <QDir>
#include <QTextStream>
#include <QDateTime>
#include <QHash>
namespace ACG
{
......
......@@ -52,8 +52,6 @@
#include <ACG/GL/GLState.hh>
#include <ACG/ShaderUtils/GLSLShader.hh>
#include <cassert>
#include <iostream>
#include <QTextStream>
#include "VertexDeclaration.hh"
......
......@@ -62,8 +62,6 @@
#include "Algorithms.hh"
#include <ACG/Utils/NumLimitsT.hh>
#include <ACG/Utils/VSToolsT.hh>
#include <cmath>
#include <ACG/Math/GLMatrixT.hh>
......
......@@ -61,8 +61,6 @@
//== INCLUDES =================================================================
#include "BSplineBasis.hh"
#include <assert.h>
#include <cmath>
//----------------------------------------------------------------------------
......
......@@ -60,9 +60,6 @@
#include "QtManipulatorNode.hh"
#include <QMouseEvent>
#include <QEvent>
//== NAMESPACES ===============================================================
......
......@@ -61,9 +61,6 @@
#include "QtTranslationManipulatorNode.hh"
#include <QMouseEvent>
#include <QEvent>
//== NAMESPACES ===============================================================
......
......@@ -65,19 +65,10 @@
// Qt
#include <QCursor>
#include <QWidget>
#include <QWheelEvent>
#include <QCloseEvent>
#include <QMoveEvent>
#include <QKeyEvent>
#include <QEvent>
#include <QTimerEvent>
#include <QContextMenuEvent>
#include <QMouseEvent>
// stdc++
#include <iostream>
#include <fstream>
......
......@@ -65,45 +65,20 @@
#include "QtGLGraphicsView.hh"
#include "QtSceneGraphWidget.hh"
#include "QtWheel.hh"
#include "../Scenegraph/DrawModes.hh"
#include "../GL/gl.hh"
#include <iostream>
#include <string>
#include <cassert>
#include <QMimeData>
#include <QToolButton>
#include <QFrame>
#include <QClipboard>
#include <QApplication>
#include <QSplitter>
#include <QLayout>
#include <QPushButton>
#include <QLabel>
#include <QStatusBar>
#include <QImage>
#include <QColorDialog>
#include <QFileDialog>
#include <QToolTip>
#include <QTextStream>
#include <QDateTime>
#include <QTimer>
#include <QDesktopWidget>
#include <QMouseEvent>
#include <QVBoxLayout>
#include <QKeyEvent>
#include <QGridLayout>
#include <QContextMenuEvent>
#include <QWheelEvent>
#include <QDropEvent>
#include <QPixmap>
#include <QMenu>
#include <QVariant>
#include <QButtonGroup>
#include <QToolBar>
#include <QGraphicsWidget>
#include <QGraphicsGridLayout>
......
......@@ -64,7 +64,6 @@
#include <QApplication>
#include <QStatusBar>
#include <QFile>
#include <QFileInfo>
#include <QFileDialog>
......
......@@ -62,10 +62,6 @@
#include "../Scenegraph/ClippingNode.hh"
#include <QPushButton>
#include <QSlider>
#include <QLineEdit>
//== NAMESPACES ===============================================================
......
......@@ -61,10 +61,6 @@
#include "QtCoordFrameDialog.hh"
#include "../Scenegraph/CoordFrameNode.hh"
#include <QComboBox>
#include <QPushButton>
#include <QGroupBox>
//== NAMESPACES ==============================================================
......
......@@ -61,16 +61,10 @@
#include "QtExaminerViewer.hh"
#include <QTimer>
#include <QPushButton>
#include <QClipboard>
#include <QApplication>
#include <QInputDialog>
#include <QStatusBar>
#include <QMouseEvent>
#include <QWheelEvent>
#include <QEvent>
#ifdef max
# undef max
#endif
......
......@@ -63,7 +63,6 @@
#include <QFileDialog>
#include <QMessageBox>
#include <QString>
//== NAMESPACES ===============================================================
......
......@@ -59,12 +59,7 @@
#include "QtFlapBox.hh"
#include <QLayout>
#include <QLabel>
#include <QScrollBar>
#include <QResizeEvent>
#include <QSize>
#include <iostream>
//== NAMESPACES ===============================================================
......
......@@ -58,10 +58,7 @@
//== INCLUDES =================================================================
#include "QtGLGraphicsScene.hh"
#include <QPainter>
#include <QPaintEngine>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneDragDropEvent>
#include <QApplication>
//== NAMESPACES ===============================================================
......
......@@ -61,16 +61,8 @@
//ACG
#include "QtLasso.hh"
#include "QtColorTranslator.hh"
#include "../GL/gl.hh"
#include "../Math/GLMatrixT.hh"
// stdc++
#include <list>
#include <vector>
#include <QMouseEvent>
#include <QEvent>
#include <QRgb>
......
......@@ -61,16 +61,6 @@
#include "QtMaterialDialog.hh"
#include "../Scenegraph/MaterialNode.hh"
#include <QCheckBox>
#include <QLabel>
#include <QPushButton>
#include <QSpinBox>
#include <QLayout>
#include <QVariant>
#include <QToolTip>
#include <QColorDialog>
#include <QSlider>
//== NAMESPACES ==============================================================
......
......@@ -65,21 +65,12 @@
#include "QtCoordFrameDialog.hh"
#include "QtShaderDialog.hh"
#include "../Scenegraph/BaseNode.hh"
#include "../Scenegraph/DrawModes.hh"
#include "../Scenegraph/MaterialNode.hh"
#include "../Scenegraph/TextureNode.hh"
#include "../Scenegraph/ClippingNode.hh"
#include "../Scenegraph/ShaderNode.hh"
#include "../Scenegraph/CoordFrameNode.hh"
#include <QMenu>
#include <QCursor>
#include <QLayout>
#include <QVBoxLayout>
#include <QKeyEvent>
#include <QStringList>
//== FORWARDDECLARATIONS ======================================================
......
......@@ -60,7 +60,6 @@
#include "QtShaderDialog.hh"
#include "../Scenegraph/ShaderNode.hh"
#include "../Scenegraph/DrawModes.hh"
#include <QFileInfo>
#include <QDir>
......
......@@ -61,16 +61,6 @@
#include "QtTextureDialog.hh"
#include "../Scenegraph/TextureNode.hh"
#include <QCheckBox>
#include <QLabel>
#include <QPushButton>
#include <QSpinBox>
#include <QLayout>
#include <QVariant>
#include <QToolTip>
#include <QColorDialog>
#include <QSlider>
//== NAMESPACES ==============================================================
......
......@@ -60,23 +60,13 @@
#include "QtWheel.hh"
#include <cmath>
#include <cfloat>
#include <iostream>
#include <algorithm>
//#include <QDrawutil>
#include <QEvent>
#include <QPainter>
#include <QMenu>
#include <QPixmap>
#include <QTimer>
#include <QCursor>
#include <QBrush>
#include <QPaintEvent>
#include <QKeyEvent>
#include <QResizeEvent>
#include <QMouseEvent>
#include <qdrawutil.h>
......
......@@ -60,7 +60,6 @@
//== INCLUDES =================================================================
#include "BaseNode.hh"
#include "DrawModes.hh"
//== NAMESPACES ===============================================================
......
......@@ -60,7 +60,6 @@
#include "BoundingBoxNode.hh"
#include "SceneGraph.hh"
#include "../GL/gl.hh"
#include "../GL/GLPrimitives.hh"
......
......@@ -61,7 +61,6 @@
#include "CoordFrameNode.hh"
#include "SceneGraph.hh"
#include "../GL/gl.hh"
#include "../GL/gltext.hh"
#include "../GL/stipple_alpha.hh"
......
......@@ -59,12 +59,8 @@
//== INCLUDES =================================================================
#include "CoordsysNode.hh"
#include <ACG/GL/gl.hh>
#include <ACG/GL/IRenderer.hh>
#include <iostream>
#include <cmath>
//== NAMESPACES ===============================================================
......
......@@ -62,7 +62,6 @@
#include "DrawModes.hh"
#include "BaseNode.hh"
#include <algorithm>
#include <sstream>
......
......@@ -61,7 +61,6 @@
#include "EnvMapNode.hh"
#include "DrawModes.hh"
//== NAMESPACES ===============================================================
......
......@@ -60,12 +60,9 @@
//== INCLUDES =================================================================
#include "GlutPrimitiveNode.hh"
#include <ACG/GL/gl.hh>
#include <ACG/GL/IRenderer.hh>
#include <ACG/Scenegraph/MaterialNode.hh>
//== NAMESPACES ===============================================================
......
......@@ -61,9 +61,7 @@
#include "GridNode.hh"
#include "SceneGraph.hh"
#include "../GL/gl.hh"
#include <cstdio>
#include <cmath>
//== NAMESPACES ===============================================================
......
......@@ -59,9 +59,7 @@
//== INCLUDES =================================================================
#include <ACG/GL/acg_glew.hh>
#include "LineNode.hh"
#include <ACG/GL/gl.hh>
#include <ACG/GL/IRenderer.hh>
#include <ACG/GL/VertexDeclaration.hh>
//== NAMESPACES ===============================================================
......
......@@ -61,12 +61,6 @@
#include "ManipulatorNode.hh"
#include "../Math/GLMatrixT.hh"
#include "../GL/gl.hh"
#include <QMouseEvent>
#include <QEvent>
#include <cfloat>
//== NAMESPACES ===============================================================
......
......@@ -61,13 +61,10 @@
#include "MaterialNode.hh"
#include "DrawModes.hh"
#include <cstdio>
#include <sstream>
#include <Qt>
#if QT_VERSION >= 0x050000
#include <QJsonDocument>
#include <QJsonObject>
......
......@@ -50,8 +50,6 @@
#include <ACG/GL/acg_glew.hh>
#include "MeshNode2T.hh"
#include <stdexcept>
namespace ACG {
namespace SceneGraph {
......
......@@ -60,7 +60,6 @@
#include "OBJNode.hh"
#include "../GL/gl.hh"
#include <cstdio>
......
......@@ -60,7 +60,6 @@
#include "OSDTransformNode.hh"
#include <ACG/GL/gl.hh>
#include <ACG/Scenegraph/SceneGraph.hh>
......
......@@ -59,8 +59,6 @@
//== INCLUDES =================================================================
#include "PointNode.hh"
#include "../Utils/StopWatch.hh"
#include "../GL/gl.hh"
#include <ACG/GL/IRenderer.hh>
//== NAMESPACES ===============================================================
......
......@@ -61,7 +61,6 @@
#include "QuadNode.hh"
#include "DrawModes.hh"
//== NAMESPACES ==============================================================
......
......@@ -60,8 +60,6 @@
#include <ACG/Scenegraph/SceneGraph.hh>
#include <ACG/GL/ColorTranslator.hh>