Toponaming: bring in missing code fragments in App
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "PropertyGeo.h"
|
||||
#include "MappedElement.h"
|
||||
#include "Material.h"
|
||||
#include "ComplexGeoData.h"
|
||||
|
||||
namespace App
|
||||
{
|
||||
@@ -141,12 +142,34 @@ public:
|
||||
*/
|
||||
virtual void setMaterialAppearance(const App::Material& material);
|
||||
#ifdef FC_USE_TNP_FIX
|
||||
/** Search sub element using internal cached geometry
|
||||
*
|
||||
* @param element: element name
|
||||
* @param options: search options
|
||||
* @param tol: coordinate tolerance
|
||||
* @param atol: angle tolerance
|
||||
*
|
||||
* @return Returns a list of found element reference to the new geometry.
|
||||
* The returned value will be invalidated when the geometry is changed.
|
||||
*
|
||||
* Before changing the property of geometry, GeoFeature will internally
|
||||
* make a snapshot of all referenced element geometry. After change, user
|
||||
* code may call this function to search for the new element name that
|
||||
* reference to the same geometry of the old element.
|
||||
*/
|
||||
virtual const std::vector<std::string>& searchElementCache(const std::string &element,
|
||||
Data::SearchOptions options = Data::SearchOptions::CheckGeometry,
|
||||
double tol = 1e-7,
|
||||
double atol = 1e-10) const;
|
||||
|
||||
static bool hasMissingElement(const char *subname);
|
||||
|
||||
/// Return the object that owns the shape that contains the give element name
|
||||
virtual DocumentObject *getElementOwner(const Data::MappedName & /*name*/) const
|
||||
{return nullptr;}
|
||||
|
||||
virtual const std::vector<const char *>& getElementTypes(bool all=true) const;
|
||||
|
||||
/// Return the higher level element names of the given element
|
||||
virtual std::vector<Data::IndexedName> getHigherElements(const char *name, bool silent=false) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user