+ add custom points feature
This commit is contained in:
parent
07b36e6bca
commit
3b139c9bb1
|
@ -61,6 +61,7 @@ void PointsExport initPoints()
|
|||
|
||||
// add data types
|
||||
Points::Feature ::init();
|
||||
Points::FeatureCustom ::init();
|
||||
Points::FeaturePython ::init();
|
||||
Points::ViewFeature ::init();
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user