+ Special view provider to display splines

This commit is contained in:
wmayer
2013-10-22 17:56:24 +02:00
parent 201042692d
commit 3cd69c46d4
10 changed files with 460 additions and 3 deletions

View File

@@ -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();

View File

@@ -101,6 +101,8 @@ SET(Features_SRCS
FeaturePartPolygon.h
FeaturePartSection.cpp
FeaturePartSection.h
FeaturePartSpline.cpp
FeaturePartSpline.h
FeatureChamfer.cpp
FeatureChamfer.h
FeatureCompound.cpp

View 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()
{
}

View 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