+ add custom points feature

This commit is contained in:
wmayer 2015-12-31 15:40:19 +01:00
parent 07b36e6bca
commit 3b139c9bb1
3 changed files with 14 additions and 0 deletions

View File

@ -61,6 +61,7 @@ void PointsExport initPoints()
// add data types
Points::Feature ::init();
Points::FeatureCustom ::init();
Points::FeaturePython ::init();
Points::ViewFeature ::init();
}

View File

@ -91,6 +91,17 @@ void Feature::onChanged(const App::Property* prop)
// ---------------------------------------------------------
namespace App {
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(Points::FeatureCustom, Points::Feature)
/// @endcond
// explicit template instantiation
template class PointsExport FeatureCustomT<Points::Feature>;
}
// ---------------------------------------------------------
namespace App {
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(Points::FeaturePython, Points::Feature)

View File

@ -25,6 +25,7 @@
#define POINTS_FEATURE_H
#include <App/GeoFeature.h>
#include <App/FeatureCustom.h>
#include <App/FeaturePython.h>
#include <App/PropertyLinks.h>
#include <App/PropertyGeo.h>
@ -75,6 +76,7 @@ public:
PropertyPointKernel Points; /**< The point kernel property. */
};
typedef App::FeatureCustomT<Feature> FeatureCustom;
typedef App::FeaturePythonT<Feature> FeaturePython;
} //namespace Points