FreeCAD C++
Public Member Functions | Protected Member Functions | List of all members
PartDesignGui::ViewProviderBody Class Reference

#include <Mod/PartDesign/Gui/ViewProviderBody.h>

Detailed Description

ViewProvider of the Body feature This class manages the visual appearance of the features in the Body feature. That means while editing all visible features are shown. If the Body is not active it shows only the result shape (tip).

Author
jriegel

Public Member Functions

 ViewProviderBody ()
 constructor
 
virtual ~ViewProviderBody ()
 destructor
 
virtual void updateData (const App::Property *prop)
 Update the children's highlighting when triggered.
 
virtual void onChanged (const App::Property *prop)
 unify children visuals
 
void updateOriginDatumSize ()
 Update the sizes of origin and datums.
 
SbBox3f getBoundBox ()
 
virtual bool canDropObjects () const
 
virtual bool canDropObject (App::DocumentObject *) const
 
virtual void dropObject (App::DocumentObject *)
 

Protected Member Functions

void unifyVisualProperty (const App::Property *prop)
 Copy over all visual properties to the child features.
 
void setVisualBodyMode (bool bodymode)
 Set Feature viewprovider into visual body mode.
 

Member Function Documentation

◆ canDropObject()

virtual bool PartDesignGui::ViewProviderBody::canDropObject ( App::DocumentObject ) const
virtual

Check whether the object can be dropped to the view provider by drag and drop

Reimplemented from Gui::ViewProvider.

◆ canDropObjects()

virtual bool PartDesignGui::ViewProviderBody::canDropObjects ( ) const
virtual

Check whether objects can be added to the view provider by drag and drop

Reimplemented from Gui::ViewProvider.

◆ dropObject()

virtual void PartDesignGui::ViewProviderBody::dropObject ( App::DocumentObject )
virtual

Add an object to the view provider by drag and drop

Reimplemented from Gui::ViewProvider.

◆ getBoundBox()

SbBox3f PartDesignGui::ViewProviderBody::getBoundBox ( )

Return the bounding box of visible features

Note
datums are counted as their base point only