Some fixes in Body visualls (ongoing)

This commit is contained in:
jriegel
2013-01-02 12:31:04 +01:00
committed by Stefan Tröger
parent 96f2a734ae
commit 39d6d914a8
5 changed files with 91 additions and 17 deletions

View File

@@ -29,6 +29,12 @@
namespace PartDesignGui {
/** ViewProvider of the Body feature
* This class manage the visual apperance of the features in the
* Body feature. That mean while editing only the tip feature is
* visible. If the Body is not active it shows only the result shape (tip).
* \author jriegel
*/
class PartDesignGuiExport ViewProviderBody : public PartGui::ViewProviderPart
{
PROPERTY_HEADER(PartGui::ViewProviderBody);
@@ -38,6 +44,11 @@ public:
ViewProviderBody();
/// destructor
virtual ~ViewProviderBody();
virtual void attach(App::DocumentObject *);
virtual void setDisplayMode(const char* ModeName);
/// returns a list of all possible modes
virtual std::vector<std::string> getDisplayModes(void) const;
virtual bool doubleClicked(void);
std::vector<App::DocumentObject*> claimChildren(void)const;
@@ -47,7 +58,10 @@ public:
std::vector<App::DocumentObject*> claimChildren3D(void)const;
private:
/// group used to store children collected by claimChildren3D()
SoGroup *pcBodyChildren;
/// group used to show the tip element in "edit" mode
SoGroup *pcBodyTip;
};