FreeCAD C++
Public Member Functions | Protected Member Functions | List of all members
Gui::ViewProviderGeometryObject Class Reference

#include <Gui/ViewProviderGeometryObject.h>

Detailed Description

The base class for all view providers that display geometric data, like mesh, point cloudes and shapes.

Author
Werner Mayer

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)
 
- Public Member Functions inherited from Gui::ViewProviderDragger
 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
 
- Protected Member Functions inherited from Gui::ViewProviderDragger
bool setEdit (int ModNum)
 
void unsetEdit (int ModNum)
 
void setEditViewer (View3DInventorViewer *, int ModNum)
 
void unsetEditViewer (View3DInventorViewer *)
 

Additional Inherited Members

- Static Public Member Functions inherited from Gui::ViewProviderDragger
static void updateTransform (const Base::Placement &from, SoTransform *to)
 

Member Function Documentation

◆ attach()

void Gui::ViewProviderGeometryObject::attach ( App::DocumentObject pcObject)

Attaches the document object to this view provider.

◆ getPickedPoint()

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.

Note
It is in the response of the client programmer to delete the returned SoPickedPoint object.

◆ getPickedPoints()

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.