FreeCAD C++
|
#include <Gui/ViewProviderGeometryObject.h>
The base class for all view providers that display geometric data, like mesh, point cloudes and shapes.
Public Member Functions | |
ViewProviderGeometryObject () | |
constructor. | |
virtual | ~ViewProviderGeometryObject () |
destructor. | |
void | attach (App::DocumentObject *pcObject) |
SoPickedPointList | getPickedPoints (const SbVec2s &pos, const View3DInventorViewer &viewer, bool pickAll=false) const |
SoPickedPoint * | getPickedPoint (const SbVec2s &pos, const View3DInventorViewer &viewer) const |
Edit methods | |
virtual void | showBoundingBox (bool) |
![]() | |
ViewProviderDragger () | |
constructor. | |
virtual | ~ViewProviderDragger () |
destructor. | |
bool | doubleClicked (void) |
void | setupContextMenu (QMenu *, QObject *, const char *) |
Protected Member Functions | |
void | onChanged (const App::Property *prop) |
get called by the container whenever a property has been changed | |
![]() | |
bool | setEdit (int ModNum) |
void | unsetEdit (int ModNum) |
void | setEditViewer (View3DInventorViewer *, int ModNum) |
void | unsetEditViewer (View3DInventorViewer *) |
Additional Inherited Members | |
![]() | |
static void | updateTransform (const Base::Placement &from, SoTransform *to) |
void Gui::ViewProviderGeometryObject::attach | ( | App::DocumentObject * | pcObject | ) |
Attaches the document object to this view provider.
SoPickedPoint* Gui::ViewProviderGeometryObject::getPickedPoint | ( | const SbVec2s & | pos, |
const View3DInventorViewer & | viewer | ||
) | const |
This method is provided for convenience and does basically the same as getPickedPoints() unless that only the closest point to the camera will be picked.
SoPickedPointList Gui::ViewProviderGeometryObject::getPickedPoints | ( | const SbVec2s & | pos, |
const View3DInventorViewer & | viewer, | ||
bool | pickAll = false |
||
) | const |
Returns a list of picked points from the geometry under getRoot(). If pickAll is false (the default) only the intersection point closest to the camera will be picked, otherwise all intersection points will be picked.