mirror of https://github.com/vitalif/openscad
Switch from #define guards to #pragma once
As well as a few whitespace cleanupsmaster
parent
065789e0d7
commit
ff466c2189
|
@ -1,5 +1,4 @@
|
|||
#ifndef ABOUTDIALOG_H_
|
||||
#define ABOUTDIALOG_H_
|
||||
#pragma once
|
||||
|
||||
#include "ui_AboutDialog.h"
|
||||
|
||||
|
@ -21,5 +20,3 @@ public:
|
|||
this->aboutText->setHtml(tmp);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#ifndef APPLEEVENTS_H_
|
||||
#define APPLEEVENTS_H_
|
||||
#pragma once
|
||||
|
||||
void installAppleEventHandlers();
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef AUTOUPDATER_H_
|
||||
#define AUTOUPDATER_H_
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
|
||||
|
@ -21,5 +20,3 @@ public:
|
|||
protected:
|
||||
static AutoUpdater *updater_instance;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CGALCACHE_H_
|
||||
#define CGALCACHE_H_
|
||||
#pragma once
|
||||
|
||||
#include "cache.h"
|
||||
#include "memory.h"
|
||||
|
@ -33,5 +32,3 @@ private:
|
|||
|
||||
Cache<std::string, cache_entry> cache;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CGALRENDERER_H_
|
||||
#define CGALRENDERER_H_
|
||||
#pragma once
|
||||
|
||||
#include "renderer.h"
|
||||
|
||||
|
@ -14,5 +13,3 @@ public:
|
|||
class Polyhedron *polyhedron;
|
||||
shared_ptr<const class PolySet> polyset;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -55,8 +55,7 @@ distributed, this file may become obsolete and can be deleted from OpenSCAD
|
|||
*/
|
||||
|
||||
|
||||
#ifndef _CGAL_NEF3_WORKAROUND_H
|
||||
#define _CGAL_NEF3_WORKAROUND_H
|
||||
#pragma once
|
||||
|
||||
#include <CGAL/Polyhedron_incremental_builder_3.h>
|
||||
#include <CGAL/Polyhedron_3.h>
|
||||
|
@ -345,9 +344,3 @@ bool convert_to_Polyhedron( const CGAL::Nef_polyhedron_3<Kernel> &N, CGAL::Polyh
|
|||
|
||||
|
||||
} //namespace nefworkaround
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CGAL_NEF_POLYHEDRON_H_
|
||||
#define CGAL_NEF_POLYHEDRON_H_
|
||||
#pragma once
|
||||
|
||||
#include "Geometry.h"
|
||||
#include "cgal.h"
|
||||
|
@ -31,5 +30,3 @@ public:
|
|||
void transform( const Transform3d &matrix );
|
||||
shared_ptr<CGAL_Nef_polyhedron3> p3;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,11 +24,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef CGAL_RENDERER_H
|
||||
#define CGAL_RENDERER_H
|
||||
#pragma once
|
||||
|
||||
#ifndef NULLGL
|
||||
|
||||
#include "OGL_helper.h"
|
||||
#undef CGAL_NEF3_MARKED_VERTEX_COLOR
|
||||
#undef CGAL_NEF3_MARKED_EDGE_COLOR
|
||||
|
@ -119,8 +117,3 @@ public:
|
|||
};
|
||||
|
||||
#endif // NULLGL
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // CGAL_RENDERER_H
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CSGTERMEVALUATOR_H_
|
||||
#define CSGTERMEVALUATOR_H_
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <list>
|
||||
|
@ -46,5 +45,3 @@ public:
|
|||
const Tree &tree;
|
||||
class GeometryEvaluator *geomevaluator;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef OPENSCAD_CAMERA_H_
|
||||
#define OPENSCAD_CAMERA_H_
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
|
||||
|
@ -86,6 +85,3 @@ public:
|
|||
unsigned int pixel_width;
|
||||
unsigned int pixel_height;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef COCOAUTILS_H_
|
||||
#define COCOAUTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -9,5 +8,3 @@ public:
|
|||
static void endApplication();
|
||||
static void nslog(const std::string &str, void *userdata);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef __CSGINFO_H__
|
||||
#define __CSGINFO_H__
|
||||
#pragma once
|
||||
|
||||
#include "OffscreenView.h"
|
||||
#include "csgterm.h"
|
||||
|
@ -87,6 +86,3 @@ public:
|
|||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef FILTER_H_
|
||||
#define FILTER_H_
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QFileOpenEvent>
|
||||
|
@ -24,5 +23,3 @@ protected:
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef GLVIEW_H_
|
||||
#define GLVIEW_H_
|
||||
#pragma once
|
||||
|
||||
/* GLView: A basic OpenGL rectangle for rendering images.
|
||||
|
||||
|
@ -79,5 +78,3 @@ public:
|
|||
int opencsg_id;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef GEOMETRYEVALUATOR_H_
|
||||
#define GEOMETRYEVALUATOR_H_
|
||||
#pragma once
|
||||
|
||||
#include "visitor.h"
|
||||
#include "enums.h"
|
||||
|
@ -73,6 +72,3 @@ private:
|
|||
|
||||
public:
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef MAINWINDOW_H_
|
||||
#define MAINWINDOW_H_
|
||||
#pragma once
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "ui_MainWindow.h"
|
||||
|
@ -237,5 +236,3 @@ public:
|
|||
private:
|
||||
static unsigned int gui_locked;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <boost/unordered_map.hpp>
|
||||
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
//
|
||||
// Author(s) : Peter Hachenberger <hachenberger@mpi-sb.mpg.de>
|
||||
|
||||
#ifndef CGAL_NEF_OPENGL_HELPER_H
|
||||
#define CGAL_NEF_OPENGL_HELPER_H
|
||||
#pragma once
|
||||
|
||||
#include <CGAL/Nef_S2/OGL_base_object.h>
|
||||
#include <CGAL/Simple_cartesian.h>
|
||||
|
@ -702,4 +701,3 @@ namespace OGL {
|
|||
} // namespace OGL
|
||||
|
||||
} //namespace CGAL
|
||||
#endif // CGAL_NEF_OPENGL_HELPER_H
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef OFFSCREENCONTEXT_H_
|
||||
#define OFFSCREENCONTEXT_H_
|
||||
#pragma once
|
||||
|
||||
// Here we implement a 'portability' pattern but since we are mixing
|
||||
// Objective-C with C++, it is a bit different. The main struct
|
||||
|
@ -15,5 +14,3 @@ bool teardown_offscreen_context(OffscreenContext *ctx);
|
|||
bool save_framebuffer(OffscreenContext *ctx, const char * filename);
|
||||
bool save_framebuffer(OffscreenContext *ctx, std::ostream &output);
|
||||
std::string offscreen_context_getinfo(OffscreenContext *ctx);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef OFFSCREENVIEW_H_
|
||||
#define OFFSCREENVIEW_H_
|
||||
#pragma once
|
||||
|
||||
#include "OffscreenContext.h"
|
||||
#include <Eigen/Core>
|
||||
|
@ -27,5 +26,3 @@ public:
|
|||
void display_opencsg_warning();
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef OPENCSGRENDERER_H_
|
||||
#define OPENCSGRENDERER_H_
|
||||
#pragma once
|
||||
|
||||
#include "renderer.h"
|
||||
#include "system-gl.h"
|
||||
|
@ -19,5 +18,3 @@ private:
|
|||
CSGChain *background_chain;
|
||||
GLint *shaderinfo;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef OPENCSGWARNINGDIALOG_H_
|
||||
#define OPENCSGWARNINGDIALOG_H_
|
||||
#pragma once
|
||||
|
||||
#include "ui_OpenCSGWarningDialog.h"
|
||||
|
||||
|
@ -12,5 +11,3 @@ public:
|
|||
public slots:
|
||||
void setText(const QString &text);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PLATFORMUTILS_H_
|
||||
#define PLATFORMUTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -21,5 +20,3 @@ namespace PlatformUtils {
|
|||
*/
|
||||
std::string pathSeparatorChar();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef POLYGON2D_CGAL_H_
|
||||
#define POLYGON2D_CGAL_H_
|
||||
#pragma once
|
||||
|
||||
#include "Polygon2d.h"
|
||||
#include "cgal.h"
|
||||
|
@ -8,5 +7,3 @@
|
|||
namespace Polygon2DCGAL {
|
||||
CGAL_Nef_polyhedron toNefPolyhedron();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PREFERENCES_H_
|
||||
#define PREFERENCES_H_
|
||||
#pragma once
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QSettings>
|
||||
|
@ -58,5 +57,3 @@ private:
|
|||
static Preferences *instance;
|
||||
static const char *featurePropertyName;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PROGRESSWIDGET_H_
|
||||
#define PROGRESSWIDGET_H_
|
||||
#pragma once
|
||||
|
||||
#include "ui_ProgressWidget.h"
|
||||
#include <QTime>
|
||||
|
@ -27,5 +26,3 @@ private:
|
|||
bool wascanceled;
|
||||
QTime starttime;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef QGLVIEW_H_
|
||||
#define QGLVIEW_H_
|
||||
#pragma once
|
||||
|
||||
#include "system-gl.h"
|
||||
#include <QGLWidget>
|
||||
|
@ -79,5 +78,3 @@ private slots:
|
|||
signals:
|
||||
void doAnimateUpdate();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef REINDEXER_H_
|
||||
#define REINDEXER_H_
|
||||
#pragma once
|
||||
|
||||
#include <boost/unordered_map.hpp>
|
||||
#include <boost/functional.hpp>
|
||||
|
@ -62,5 +61,3 @@ private:
|
|||
boost::unordered_map<T, int> map;
|
||||
std::vector<T> vec;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
* Copyright (C) 2008 Remko Troncon. BSD license
|
||||
* Copyright (C) 2013 Marius Kintel. BSD license
|
||||
*/
|
||||
#ifndef SPARKLEAUTOUPDATER_H
|
||||
#define SPARKLEAUTOUPDATER_H
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
|
||||
|
@ -28,5 +27,3 @@ private:
|
|||
class Private;
|
||||
Private *d;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef THROWNTOGETHERRENDERER_H_
|
||||
#define THROWNTOGETHERRENDERER_H_
|
||||
#pragma once
|
||||
|
||||
#include "renderer.h"
|
||||
|
||||
|
@ -17,5 +16,3 @@ private:
|
|||
CSGChain *highlights_chain;
|
||||
CSGChain *background_chain;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef TREE_H_
|
||||
#define TREE_H_
|
||||
#pragma once
|
||||
|
||||
#include "nodecache.h"
|
||||
|
||||
|
@ -26,5 +25,3 @@ private:
|
|||
mutable NodeCache nodecache;
|
||||
mutable NodeCache nodeidcache;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef BOOST_UTILS_H_
|
||||
#define BOOST_UTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
namespace fs = boost::filesystem;
|
||||
|
@ -9,5 +8,3 @@ namespace fs = boost::filesystem;
|
|||
fs::path boostfs_relative_path(const fs::path &path, const fs::path &relative_to);
|
||||
fs::path boostfs_normalize(const fs::path &path);
|
||||
fs::path boostfs_uncomplete(fs::path const p, fs::path const base);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
// Clifford Wolf 2012. Released under the GPL 2, or later, as described in
|
||||
// the file named 'COPYING' in OpenSCAD's project root.
|
||||
|
||||
#ifndef boosty_h_
|
||||
#define boosty_h_
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
boosty is a wrapper around boost so that OpenSCAD can work with old
|
||||
|
@ -140,5 +139,3 @@ inline fs::path canonical( fs::path p )
|
|||
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef BUILTIN_H_
|
||||
#define BUILTIN_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <boost/unordered_map.hpp>
|
||||
|
@ -28,5 +27,3 @@ private:
|
|||
|
||||
boost::unordered_map<std::string, std::string> deprecations;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -42,8 +42,7 @@
|
|||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CACHE_H
|
||||
#define CACHE_H
|
||||
#pragma once
|
||||
|
||||
#include <boost/unordered_map.hpp>
|
||||
#include <boost/format.hpp>
|
||||
|
@ -183,6 +182,3 @@ void Cache<Key,T>::trim(int m)
|
|||
unlink(*u);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
#ifndef CALC_H_
|
||||
#define CALC_H_
|
||||
#pragma once
|
||||
|
||||
namespace Calc {
|
||||
int get_fragments_from_r(double r, double fn, double fs, double fa);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CGAL_H_
|
||||
#define CGAL_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef ENABLE_CGAL
|
||||
|
||||
|
@ -75,5 +74,3 @@ typedef CGAL::Iso_rectangle_2<CGAL::Simple_cartesian<NT2> > CGAL_Iso_rectangle_2
|
|||
#endif
|
||||
|
||||
#endif /* ENABLE_CGAL */
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CGALADVNODE_H_
|
||||
#define CGALADVNODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -21,7 +20,7 @@ public:
|
|||
convexity = 1;
|
||||
}
|
||||
virtual ~CgaladvNode() { }
|
||||
virtual Response accept(class State &state, Visitor &visitor) const {
|
||||
virtual Response accept(class State &state, Visitor &visitor) const {
|
||||
return visitor.visit(state, *this);
|
||||
}
|
||||
virtual std::string toString() const;
|
||||
|
@ -34,5 +33,3 @@ public:
|
|||
Eigen::Matrix<bool,3,1> autosize;
|
||||
cgaladv_type_e type;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CGALFWD_H_
|
||||
#define CGALFWD_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef CGAL_FORWARD
|
||||
#include "cgal.h"
|
||||
|
@ -41,5 +40,3 @@ typedef CGAL::Polyhedron_3<CGAL_Kernel3, CGAL::Polyhedron_items_3, CGAL::Halfedg
|
|||
#endif /* ENABLE_CGAL */
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CGALUTILS_H_
|
||||
#define CGALUTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <cgal.h>
|
||||
#include "polyset.h"
|
||||
|
@ -69,6 +68,3 @@ public:
|
|||
void visit( CGAL_Nef_polyhedron3::SFace_const_handle ) {}
|
||||
void visit( CGAL_Nef_polyhedron3::Halffacet_const_handle hfacet );
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CGALWORKER_H_
|
||||
#define CGALWORKER_H_
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include "memory.h"
|
||||
|
@ -25,5 +24,3 @@ protected:
|
|||
class QThread *thread;
|
||||
const class Tree *tree;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef COLORNODE_H_
|
||||
#define COLORNODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -17,5 +16,3 @@ public:
|
|||
|
||||
Color4f color;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CONTEXT_H_
|
||||
#define CONTEXT_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -48,5 +47,3 @@ public:
|
|||
virtual std::string dump(const class AbstractModule *mod, const ModuleInstantiation *inst);
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CSGNODE_H_
|
||||
#define CSGNODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -16,5 +15,3 @@ public:
|
|||
virtual std::string toString() const;
|
||||
virtual std::string name() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CSGTERM_H_
|
||||
#define CSGTERM_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -85,5 +84,3 @@ public:
|
|||
|
||||
BoundingBox getBoundingBox() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef CSGTERMNORMALIZER_H_
|
||||
#define CSGTERMNORMALIZER_H_
|
||||
#pragma once
|
||||
|
||||
#include "memory.h"
|
||||
|
||||
|
@ -23,5 +22,3 @@ private:
|
|||
size_t nodecount;
|
||||
shared_ptr<class CSGTerm> rootnode;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef DXFDATA_H_
|
||||
#define DXFDATA_H_
|
||||
#pragma once
|
||||
|
||||
#include "linalg.h"
|
||||
#include <vector>
|
||||
|
@ -43,5 +42,3 @@ public:
|
|||
std::string dump() const;
|
||||
class Polygon2d *toPolygon2d() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef DXFDIM_H_
|
||||
#define DXFDIM_H_
|
||||
#pragma once
|
||||
|
||||
#include <boost/unordered_map.hpp>
|
||||
#include "value.h"
|
||||
|
||||
extern boost::unordered_map<std::string,Value> dxf_dim_cache;
|
||||
extern boost::unordered_map<std::string,Value> dxf_cross_cache;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef ENUMS_H_
|
||||
#define ENUMS_H_
|
||||
#pragma once
|
||||
|
||||
enum OpenSCADOperator {
|
||||
OPENSCAD_UNION,
|
||||
|
@ -9,5 +8,3 @@ enum OpenSCADOperator {
|
|||
OPENSCAD_HULL,
|
||||
OPENSCAD_RESIZE
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef EVALCONTEXT_H_
|
||||
#define EVALCONTEXT_H_
|
||||
#pragma once
|
||||
|
||||
#include "context.h"
|
||||
|
||||
|
@ -33,5 +32,3 @@ private:
|
|||
std::vector<std::pair<std::string, Value> > eval_values;
|
||||
const LocalScope *const scope;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef EXPORT_H_
|
||||
#define EXPORT_H_
|
||||
#pragma once
|
||||
|
||||
#include <iostream>
|
||||
#include "Tree.h"
|
||||
|
@ -35,5 +34,3 @@ void export_png_with_throwntogether(Tree &tree, Camera &c, std::ostream &output)
|
|||
#ifdef DEBUG
|
||||
void export_stl(const class PolySet &ps, std::ostream &output);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef EXPRESSION_H_
|
||||
#define EXPRESSION_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -45,5 +44,3 @@ public:
|
|||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &stream, const Expression &expr);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef FBO_H_
|
||||
#define FBO_H_
|
||||
#pragma once
|
||||
|
||||
#include "system-gl.h"
|
||||
#include <stddef.h> // size_t
|
||||
|
@ -21,5 +20,3 @@ GLuint fbo_bind(fbo_t *fbo);
|
|||
void fbo_unbind(fbo_t *fbo);
|
||||
|
||||
bool REPORTGLERROR(const char * task);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef FEATURE_H_
|
||||
#define FEATURE_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
|
@ -40,5 +39,3 @@ private:
|
|||
Feature(const std::string &name, const std::string &description);
|
||||
virtual ~Feature();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#ifndef FILEUTILS_H_
|
||||
#define FILEUTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
std::string lookup_file(const std::string &filename,
|
||||
const std::string &path, const std::string &fallbackpath);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef FUNCTION_H_
|
||||
#define FUNCTION_H_
|
||||
#pragma once
|
||||
|
||||
#include "value.h"
|
||||
#include "typedefs.h"
|
||||
|
@ -50,5 +49,3 @@ public:
|
|||
virtual Value evaluate(const Context *ctx, const EvalContext *evalctx) const;
|
||||
virtual std::string dump(const std::string &indent, const std::string &name) const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef GRID_H_
|
||||
#define GRID_H_
|
||||
#pragma once
|
||||
|
||||
#include "mathc99.h"
|
||||
#ifdef WIN32
|
||||
|
@ -154,5 +153,3 @@ public:
|
|||
return align(x, y, z);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
#ifndef HANDLE_DEP_H_
|
||||
#define HANDLE_DEP_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
extern const char *make_command;
|
||||
void handle_dep(const std::string &filename);
|
||||
bool write_deps(const std::string &filename, const std::string &output_file);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef HIGHLIGHTER_H_
|
||||
#define HIGHLIGHTER_H_
|
||||
#pragma once
|
||||
|
||||
#include <QSyntaxHighlighter>
|
||||
#include <QTextDocument>
|
||||
|
@ -28,5 +27,3 @@ private:
|
|||
QMap<QString,QTextCharFormat> typeformats;
|
||||
int lastDocumentPos();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef IMAGEUTILS_H_
|
||||
#define IMAGEUTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
|
@ -7,5 +6,3 @@
|
|||
bool write_png(const char *filename, unsigned char *pixels, int width, int height);
|
||||
bool write_png(std::ostream &output, unsigned char *pixels, int width, int height);
|
||||
void flip_image(const unsigned char *src, unsigned char *dst, size_t pixelsize, size_t width, size_t height);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef IMPORTNODE_H_
|
||||
#define IMPORTNODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -31,5 +30,3 @@ public:
|
|||
virtual Geometry *evaluate_geometry(class PolySetEvaluator *) const { return createGeometry(); }
|
||||
virtual Geometry *createGeometry() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LINALG_H_
|
||||
#define LINALG_H_
|
||||
#pragma once
|
||||
|
||||
#include <Eigen/Core>
|
||||
#include <Eigen/Geometry>
|
||||
|
@ -39,5 +38,3 @@ public:
|
|||
|
||||
bool isValid() const { return this->minCoeff() >= 0.0f; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LINEAREXTRUDENODE_H_
|
||||
#define LINEAREXTRUDENODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -28,5 +27,3 @@ public:
|
|||
Filename filename;
|
||||
std::string layername;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOCALSCOPE_H_
|
||||
#define LOCALSCOPE_H_
|
||||
#pragma once
|
||||
|
||||
#include "typedefs.h"
|
||||
#include <boost/unordered_map.hpp>
|
||||
|
@ -16,11 +15,9 @@ public:
|
|||
void addChild(ModuleInstantiation *ch);
|
||||
|
||||
AssignmentList assignments;
|
||||
ModuleInstantiationList children;
|
||||
ModuleInstantiationList children;
|
||||
typedef boost::unordered_map<std::string, class AbstractFunction*> FunctionContainer;
|
||||
FunctionContainer functions;
|
||||
typedef boost::unordered_map<std::string, class AbstractModule*> AbstractModuleContainer;
|
||||
AbstractModuleContainer modules;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -23,8 +23,7 @@ freely, subject to the following restrictions:
|
|||
distribution.
|
||||
*/
|
||||
|
||||
#ifndef LODEPNG_H
|
||||
#define LODEPNG_H
|
||||
#pragma once
|
||||
|
||||
#include <string.h> /*for size_t*/
|
||||
|
||||
|
@ -878,8 +877,6 @@ TODO:
|
|||
[ ] let the C++ wrapper catch exceptions coming from the standard library and return LodePNG error codes
|
||||
*/
|
||||
|
||||
#endif /*LODEPNG_H inclusion guard*/
|
||||
|
||||
/*
|
||||
LodePNG Documentation
|
||||
---------------------
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef MATHC99_H_
|
||||
#define MATHC99_H_
|
||||
#pragma once
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
|
@ -15,5 +14,3 @@ float fmax(float a, float b);
|
|||
#include <math.h>
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#ifndef MEMORY_H_
|
||||
#define MEMORY_H_
|
||||
#pragma once
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
using boost::shared_ptr;
|
||||
using boost::dynamic_pointer_cast;
|
||||
using boost::static_pointer_cast;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef FILECONTEXT_H_
|
||||
#define FILECONTEXT_H_
|
||||
#pragma once
|
||||
|
||||
#include "context.h"
|
||||
#include "module.h"
|
||||
|
@ -53,5 +52,3 @@ public:
|
|||
private:
|
||||
const FileModule::ModuleContainer &usedlibs;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef MODULE_H_
|
||||
#define MODULE_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -127,5 +126,3 @@ private:
|
|||
bool is_handling_dependencies;
|
||||
std::string path;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef NODE_H_
|
||||
#define NODE_H_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
@ -94,5 +93,3 @@ public:
|
|||
|
||||
std::ostream &operator<<(std::ostream &stream, const AbstractNode &node);
|
||||
AbstractNode *find_root_tag(AbstractNode *n);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef NODECACHE_H_
|
||||
#define NODECACHE_H_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
@ -48,5 +47,3 @@ private:
|
|||
std::vector<std::string> cache;
|
||||
std::string nullvalue;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef NODEDUMPER_H_
|
||||
#define NODEDUMPER_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
@ -32,5 +31,3 @@ private:
|
|||
typedef std::list<const AbstractNode *> ChildList;
|
||||
std::map<int, ChildList> visitedchildren;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#ifndef OPENSCAD_H
|
||||
#define OPENSCAD_H
|
||||
#pragma once
|
||||
|
||||
extern class FileModule *parse(const char *text, const char *path, int debug);
|
||||
|
||||
|
@ -35,6 +34,3 @@ extern std::string commandline_commands;
|
|||
// The CWD when application started. We shouldn't change CWD, but until we stop
|
||||
// doing this, use currentdir to get the original CWD.
|
||||
extern std::string currentdir;
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PARSERSETTINGS_H_
|
||||
#define PARSERSETTINGS_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "boosty.h"
|
||||
|
@ -10,7 +9,5 @@ void parser_init(const std::string &applicationpath);
|
|||
void add_librarydir(const std::string &libdir);
|
||||
fs::path search_libs(const fs::path &localpath);
|
||||
fs::path find_valid_path(const fs::path &sourcepath,
|
||||
const fs::path &localpath,
|
||||
const std::vector<std::string> *openfilenames = NULL);
|
||||
|
||||
#endif
|
||||
const fs::path &localpath,
|
||||
const std::vector<std::string> *openfilenames = NULL);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef POLYSET_H_
|
||||
#define POLYSET_H_
|
||||
#pragma once
|
||||
|
||||
#include "Geometry.h"
|
||||
#include "system-gl.h"
|
||||
|
@ -43,5 +42,3 @@ private:
|
|||
Polygon2d polygon;
|
||||
unsigned int dim;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PRINTUTILS_H_
|
||||
#define PRINTUTILS_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
@ -72,5 +71,3 @@ public:
|
|||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PROGRESS_H_
|
||||
#define PROGRESS_H_
|
||||
#pragma once
|
||||
|
||||
// Reset to 0 in _prep() and increased for each Node instance in progress_prepare()
|
||||
extern int progress_report_count;
|
||||
|
@ -12,5 +11,3 @@ void progress_report_fin();
|
|||
void progress_update(const AbstractNode *node, int mark);
|
||||
|
||||
class ProgressCancelException { };
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PROJECTIONNODE_H_
|
||||
#define PROJECTIONNODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -20,5 +19,3 @@ public:
|
|||
int convexity;
|
||||
bool cut_mode;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef RENDERER_H_
|
||||
#define RENDERER_H_
|
||||
#pragma once
|
||||
|
||||
#include "system-gl.h"
|
||||
#include "linalg.h"
|
||||
|
@ -46,6 +45,3 @@ public:
|
|||
static void render_surface(shared_ptr<const class Geometry> geom, csgmode_e csgmode, const Transform3d &m, GLint *shaderinfo = NULL);
|
||||
static void render_edges(shared_ptr<const Geometry> geom, csgmode_e csgmode);
|
||||
};
|
||||
|
||||
#endif // RENDERER_H
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef RENDERNODE_H_
|
||||
#define RENDERNODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -17,5 +16,3 @@ public:
|
|||
|
||||
int convexity;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef RENDERSETTINGS_H_
|
||||
#define RENDERSETTINGS_H_
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include "linalg.h"
|
||||
|
@ -33,5 +32,3 @@ private:
|
|||
|
||||
std::map<RenderColor, Color4f> colors;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef ROTATEEXTRUDENODE_H_
|
||||
#define ROTATEEXTRUDENODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -25,5 +24,3 @@ public:
|
|||
Filename filename;
|
||||
std::string layername;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef STATE_H_
|
||||
#define STATE_H_
|
||||
#pragma once
|
||||
|
||||
#include <cstring>
|
||||
#include "linalg.h"
|
||||
|
@ -38,5 +37,3 @@ private:
|
|||
Transform3d matrix_;
|
||||
Color4f color_;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef STLUTILS_H_
|
||||
#define STLUTILS_H_
|
||||
#pragma once
|
||||
|
||||
template<class T>
|
||||
struct del_fun_t
|
||||
|
@ -15,5 +14,3 @@ del_fun_t<T> del_fun()
|
|||
{
|
||||
return del_fun_t<T>();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef SVG_H_
|
||||
#define SVG_H_
|
||||
#pragma once
|
||||
|
||||
#include "cgal.h"
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
@ -23,6 +22,3 @@ std::string dump_svg( const CGAL_Nef_polyhedron2 &N );
|
|||
std::string dump_svg( const CGAL_Nef_polyhedron3 &N );
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef SYSTEMGL_H_
|
||||
#define SYSTEMGL_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef NULLGL
|
||||
|
||||
#include <GL/glew.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
@ -26,5 +24,3 @@ inline void glColor4fv( float *c ) {}
|
|||
std::string glew_dump();
|
||||
std::string glew_extensions_dump();
|
||||
bool report_glerror(const char * function);
|
||||
|
||||
#endif // SYSTEMGL_H_
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef TRANSFORMNODE_H_
|
||||
#define TRANSFORMNODE_H_
|
||||
#pragma once
|
||||
|
||||
#include "node.h"
|
||||
#include "visitor.h"
|
||||
|
@ -17,5 +16,3 @@ public:
|
|||
|
||||
Transform3d matrix;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef TRAVERSER_H_
|
||||
#define TRAVERSER_H_
|
||||
#pragma once
|
||||
|
||||
enum Response {ContinueTraversal, AbortTraversal, PruneTraversal};
|
||||
|
||||
|
@ -22,5 +21,3 @@ private:
|
|||
const AbstractNode &root;
|
||||
TraversalType traversaltype;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef TYPEDEFS_H_
|
||||
#define TYPEDEFS_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -14,5 +13,3 @@ public:
|
|||
|
||||
typedef std::vector<Assignment> AssignmentList;
|
||||
typedef std::vector<class ModuleInstantiation*> ModuleInstantiationList;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef VALUE_H_
|
||||
#define VALUE_H_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
@ -159,5 +158,3 @@ private:
|
|||
|
||||
Variant value;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef VISITOR_H_
|
||||
#define VISITOR_H_
|
||||
#pragma once
|
||||
|
||||
#include "traverser.h"
|
||||
|
||||
|
@ -57,5 +56,3 @@ public:
|
|||
}
|
||||
// Add visit() methods for new visitable subtypes of AbstractNode here
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue