Toposhape/Part: Transfer in PropoertyTopoShape and related

This commit is contained in:
Zheng, Lei
2024-02-29 20:58:51 -05:00
committed by bgbsww
parent 68fd2934cf
commit 2adff99c14
6 changed files with 575 additions and 11 deletions

View File

@@ -242,6 +242,12 @@ public:
std::vector<std::pair<MappedName, ElementIDRefs> >
getElementMappedNames(const IndexedName & element, bool needUnmapped=false) const;
/// Hash the child element map postfixes to shorten element name from hierarchical maps
void hashChildMaps();
/// Check if there is child element map
bool hasChildElementMap() const;
/// Append the Tag (if and only if it is non zero) into the element map
virtual void reTagElementMap(long tag,
App::StringHasherRef hasher,
@@ -289,6 +295,12 @@ public:
/// Get the current element map size
size_t getElementMapSize(bool flush=true) const;
/// Return the current element map version
virtual std::string getElementMapVersion() const;
/// Return true to signal element map version change
virtual bool checkElementMapVersion(const char * ver) const;
/// Check if the given sub-name only contains an element name
static bool isElementName(const char *subName) {
return (subName != nullptr) && (*subName != 0) && findElementName(subName)==subName;