+ Special view provider to display splines
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include "FeaturePartCurveNet.h"
|
||||
#include "FeaturePartCircle.h"
|
||||
#include "FeaturePartPolygon.h"
|
||||
#include "FeaturePartSpline.h"
|
||||
#include "FeatureGeometrySet.h"
|
||||
#include "FeatureChamfer.h"
|
||||
#include "FeatureCompound.h"
|
||||
@@ -164,6 +165,7 @@ void PartExport initPart()
|
||||
Part::CustomFeaturePython ::init();
|
||||
Part::Primitive ::init();
|
||||
Part::Box ::init();
|
||||
Part::Spline ::init();
|
||||
Part::Boolean ::init();
|
||||
Part::Common ::init();
|
||||
Part::MultiCommon ::init();
|
||||
|
||||
@@ -101,6 +101,8 @@ SET(Features_SRCS
|
||||
FeaturePartPolygon.h
|
||||
FeaturePartSection.cpp
|
||||
FeaturePartSection.h
|
||||
FeaturePartSpline.cpp
|
||||
FeaturePartSpline.h
|
||||
FeatureChamfer.cpp
|
||||
FeatureChamfer.h
|
||||
FeatureCompound.cpp
|
||||
|
||||
42
src/Mod/Part/App/FeaturePartSpline.cpp
Normal file
42
src/Mod/Part/App/FeaturePartSpline.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2013 Werner Mayer <wmayer[at]users.sourceforge.net> *
|
||||
* *
|
||||
* This file is part of the FreeCAD CAx development system. *
|
||||
* *
|
||||
* This library is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU Library General Public *
|
||||
* License as published by the Free Software Foundation; either *
|
||||
* version 2 of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This library is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU Library General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Library General Public *
|
||||
* License along with this library; see the file COPYING.LIB. If not, *
|
||||
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
||||
* Suite 330, Boston, MA 02111-1307, USA *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#endif
|
||||
|
||||
|
||||
#include "FeaturePartSpline.h"
|
||||
|
||||
|
||||
using namespace Part;
|
||||
|
||||
|
||||
PROPERTY_SOURCE(Part::Spline, Part::Feature)
|
||||
|
||||
|
||||
Spline::Spline()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
49
src/Mod/Part/App/FeaturePartSpline.h
Normal file
49
src/Mod/Part/App/FeaturePartSpline.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2013 Werner Mayer <wmayer[at]users.sourceforge.net> *
|
||||
* *
|
||||
* This file is part of the FreeCAD CAx development system. *
|
||||
* *
|
||||
* This library is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU Library General Public *
|
||||
* License as published by the Free Software Foundation; either *
|
||||
* version 2 of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This library is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU Library General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Library General Public *
|
||||
* License along with this library; see the file COPYING.LIB. If not, *
|
||||
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
||||
* Suite 330, Boston, MA 02111-1307, USA *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
|
||||
#ifndef PART_FEATUREPARTSPLINE_H
|
||||
#define PART_FEATUREPARTSPLINE_H
|
||||
|
||||
#include "PartFeature.h"
|
||||
|
||||
namespace Part
|
||||
{
|
||||
|
||||
class PartExport Spline :public Part::Feature
|
||||
{
|
||||
PROPERTY_HEADER(Part::Spline);
|
||||
|
||||
public:
|
||||
Spline();
|
||||
/// returns the type name of the ViewProvider
|
||||
const char* getViewProviderName(void) const {
|
||||
return "PartGui::ViewProviderSpline";
|
||||
}
|
||||
};
|
||||
|
||||
} //namespace Part
|
||||
|
||||
|
||||
#endif // PART_FEATUREPARTSPLINE_H
|
||||
|
||||
Reference in New Issue
Block a user