FreeCAD C++
Public Member Functions | List of all members
MeshGui::ViewProviderMeshCurvature Class Reference

#include <Mod/Mesh/Gui/ViewProviderCurvature.h>

Detailed Description

The ViewProviderMeshCurvature class is associated to the mesh curvature feature. It allows to display the most known types of curvatures, such as Gaussian curvature, mean curvature, minimum and maximum curvature. Moreover a color bar is also added to the scene.

Author
Werner Mayer

Public Member Functions

void attach (App::DocumentObject *pcFeature)
 Extracts the mesh data from the feature pcFeature and creates an Inventor node SoNode with these data.
 
void setDisplayMode (const char *ModeName)
 Sets the viewing mode.
 
virtual const char * getDefaultDisplayMode () const
 get the default display mode
 
std::vector< std::string > getDisplayModes (void) const
 Returns a list of all possible modes.
 
void updateData (const App::Property *)
 Updates the mesh feature representation.
 
QIcon getIcon () const
 Returns a pixmap for the associated feature type.
 
void OnChange (Base::Subject< int > &rCaller, int rcReason)
 Once the color bar settinhs has been changed this method gets called to update the feature's representation.
 
SoSeparator * getFrontRoot (void) const
 Returns a color bar.
 
virtual void hide (void)
 Hide the object in the view.
 
virtual void show (void)
 Show the object in the view.
 
- Public Member Functions inherited from App::DocumentObserver
 DocumentObserver ()
 Constructor.
 
void attachDocument (Document *)
 
void detachDocument ()
 
- Public Member Functions inherited from Base::Observer< int >
 Observer ()
 
virtual ~Observer ()
 
virtual void OnDestroy (Subject< int > &rCaller)
 
virtual const char * Name (void)