+ add method to get SoDetail from element name

+ fix broken selection mechanism

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5260 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer
2011-12-10 21:11:20 +00:00
parent d5655a9e1d
commit e95de7090d
10 changed files with 92 additions and 55 deletions

View File

@@ -48,7 +48,7 @@ public:
// Returns the icon
QIcon getIcon() const;
std::vector<App::DocumentObject*> claimChildren() const;
std::string getElement(const SoPickedPoint *pp) const;
std::string getElement(const SoDetail *det) const;
std::vector<Base::Vector3d> getSelectionShape(const char* Element) const;
bool setEdit(int ModNum);
bool unsetEdit(int ModNum);
@@ -125,8 +125,8 @@ public:
virtual bool useNewSelectionModel() const {
return ViewProviderT::useNewSelectionModel();
}
virtual std::string getElement(const SoPickedPoint *pp) const {
return ViewProviderT::getElement(pp);
virtual std::string getElement(const SoDetail *det) const {
return ViewProviderT::getElement(det);
}
virtual std::vector<Base::Vector3d> getSelectionShape(const char* Element) const {
return ViewProviderT::getSelectionShape(Element);