[Part] Feature*: remove unneeded includes

- also sort includes
This commit is contained in:
Uwe
2022-07-09 15:59:22 +02:00
parent a54c2ed21b
commit 7030956099
18 changed files with 28 additions and 75 deletions

View File

@@ -20,27 +20,22 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepFilletAPI_MakeChamfer.hxx>
# include <Precision.hxx>
# include <TopExp.hxx>
# include <TopExp_Explorer.hxx>
# include <TopoDS.hxx>
# include <TopoDS_Edge.hxx>
# include <TopTools_ListOfShape.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
# include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include "FeatureChamfer.h"
using namespace Part;
PROPERTY_SOURCE(Part::Chamfer, Part::FilletBase)
Chamfer::Chamfer()

View File

@@ -20,13 +20,12 @@
* *
***************************************************************************/
#ifndef PART_FEATURECHAMFER_H
#define PART_FEATURECHAMFER_H
#include <App/PropertyStandard.h>
#include "PartFeature.h"
namespace Part
{

View File

@@ -20,23 +20,20 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRep_Builder.hxx>
# include <Standard_Failure.hxx>
# include <TopoDS_Compound.hxx>
# include <TopExp.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
# include <Standard_Failure.hxx>
#endif
#include "FeatureCompound.h"
using namespace Part;
PROPERTY_SOURCE(Part::Compound, Part::Feature)
Compound::Compound()

View File

@@ -20,13 +20,13 @@
* *
***************************************************************************/
#ifndef PART_FEATURECOMPOUND_H
#define PART_FEATURECOMPOUND_H
#include <App/PropertyLinks.h>
#include "PartFeature.h"
namespace Part
{

View File

@@ -20,16 +20,14 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepAdaptor_Surface.hxx>
# include <BRepAdaptor_Curve.hxx>
# include <BRepAdaptor_Surface.hxx>
# include <BRepBuilderAPI_Copy.hxx>
# include <BRepBuilderAPI_MakeWire.hxx>
# include <BRepLib_FindSurface.hxx>
# include <BRepPrimAPI_MakePrism.hxx>
# include <gp_Pln.hxx>
# include <gp_Trsf.hxx>
# include <Precision.hxx>
# include <TopExp.hxx>
@@ -39,7 +37,6 @@
#endif
#include <Base/Exception.h>
#include <Base/Tools.h>
#include "FeatureExtrusion.h"
#include "ExtrusionHelper.h"

View File

@@ -20,15 +20,15 @@
* *
***************************************************************************/
#ifndef PART_FEATUREEXTRUSION_H
#define PART_FEATUREEXTRUSION_H
#include <App/PropertyStandard.h>
#include <App/PropertyUnits.h>
#include "PartFeature.h"
#include "FaceMakerCheese.h"
#include "PartFeature.h"
namespace Part
{

View File

@@ -20,32 +20,14 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Bnd_Box.hxx>
# include <gp_Pln.hxx>
# include <BRep_Builder.hxx>
# include <BRepBndLib.hxx>
# include <BRepBuilderAPI_Copy.hxx>
# include <BRepBuilderAPI_MakeFace.hxx>
# include <BRepAdaptor_Surface.hxx>
# include <Geom_Plane.hxx>
# include <Geom_Surface.hxx>
# include <TopoDS.hxx>
# include <TopoDS_Compound.hxx>
# include <TopoDS_Face.hxx>
# include <TopoDS_Wire.hxx>
# include <TopExp_Explorer.hxx>
# include <BRepAlgoAPI_Fuse.hxx>
# include <gp_Pln.hxx>
#endif
#include <Base/Placement.h>
#include "FeatureFace.h"
#include "FaceMaker.h"
#include <Mod/Part/App/Part2DObject.h>
using namespace Part;

View File

@@ -20,11 +20,11 @@
* *
***************************************************************************/
#ifndef PART_FACE_H
#define PART_FACE_H
#include <Mod/Part/App/PartFeature.h>
#include "PartFeature.h"
namespace Part
{

View File

@@ -20,10 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <BRepFilletAPI_MakeFillet.hxx>
# include <Precision.hxx>
# include <TopExp.hxx>
# include <TopExp_Explorer.hxx>
# include <TopoDS.hxx>
@@ -31,15 +31,13 @@
# include <TopTools_IndexedMapOfShape.hxx>
#endif
#include "FeatureFillet.h"
#include <Base/Exception.h>
#include <Precision.hxx>
#include "FeatureFillet.h"
using namespace Part;
PROPERTY_SOURCE(Part::Fillet, Part::FilletBase)
Fillet::Fillet()

View File

@@ -20,13 +20,12 @@
* *
***************************************************************************/
#ifndef PART_FEATUREFILLET_H
#define PART_FEATUREFILLET_H
#include <App/PropertyStandard.h>
#include "PartFeature.h"
namespace Part
{

View File

@@ -20,12 +20,7 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include "Geometry.h"
#include "FeatureGeometrySet.h"

View File

@@ -20,19 +20,16 @@
* *
***************************************************************************/
#ifndef PART_FeatureGeometrySet_H
#define PART_FeatureGeometrySet_H
#include "PartFeature.h"
#include "PropertyGeometryList.h"
#include "PartFeature.h"
namespace Part
{
class PartExport FeatureGeometrySet :public Part::Feature
{
PROPERTY_HEADER(Part::FeatureGeometrySet);

View File

@@ -20,18 +20,15 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <gp.hxx>
# include <BRepBuilderAPI_Transform.hxx>
# include <gp_Ax2.hxx>
# include <gp_Dir.hxx>
# include <gp_Pnt.hxx>
# include <gp_Trsf.hxx>
# include <BRepBuilderAPI_Transform.hxx>
#endif
#include "FeatureMirroring.h"

View File

@@ -20,13 +20,13 @@
* *
***************************************************************************/
#ifndef PART_FEATUREMIRRORING_H
#define PART_FEATUREMIRRORING_H
#include <App/PropertyStandard.h>
#include "PartFeature.h"
#include <Base/Matrix.h>
namespace Part
{

View File

@@ -19,14 +19,15 @@
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Precision.hxx>
#endif
#include <App/Link.h>
#include "FeatureOffset.h"
#include <App/Link.h>
using namespace Part;

View File

@@ -24,8 +24,9 @@
#define PART_FEATUREOFFSET_H
#include <App/PropertyStandard.h>
#include <App/PropertyUnits.h>
#include <Mod/Part/App/PartFeature.h>
#include "PartFeature.h"
namespace Part
{

View File

@@ -20,24 +20,18 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <gp_Ax1.hxx>
# include <TopoDS.hxx>
# include <BRepAdaptor_Curve.hxx>
# include <gp_Lin.hxx>
# include <gp_Circ.hxx>
# include <gp_Ax1.hxx>
# include <TopExp_Explorer.hxx>
# include <TopoDS.hxx>
#endif
#include "FeatureRevolution.h"
#include <Base/Tools.h>
#include <Base/Exception.h>
#include <App/Application.h>
#include "FaceMaker.h"
using namespace Part;
App::PropertyFloatConstraint::Constraints Revolution::angleRangeU = {-360.0,360.0,1.0};

View File

@@ -20,14 +20,15 @@
* *
***************************************************************************/
#ifndef PART_FEATUREREVOLUTION_H
#define PART_FEATUREREVOLUTION_H
#include <App/PropertyStandard.h>
#include "PartFeature.h"
#include <Base/Vector3D.h>
#include "PartFeature.h"
namespace Part
{