Gui: fix view object global coordinate space showable checking

This commit is contained in:
Zheng, Lei
2020-07-07 18:50:23 +08:00
committed by wmayer
parent e2071de5bc
commit 46209e7f77
4 changed files with 60 additions and 23 deletions

View File

@@ -148,6 +148,9 @@ public:
return false;
}
void setShowable(bool enable);
bool isShowable() const;
protected:
/*! Get the active mdi view of the document this view provider is part of.
@note The returned mdi view doesn't need to be a 3d view but can be e.g.
@@ -194,14 +197,17 @@ protected:
//@}
virtual void setModeSwitch() override;
protected:
App::DocumentObject *pcObject;
Gui::Document* pcDocument;
private:
bool _Showable = true;
std::vector<const char*> aDisplayEnumsArray;
std::vector<std::string> aDisplayModesArray;
bool _UpdatingView;
friend class Document;
};