MeshGui::ViewProviderMeshCurvature Class Reference

The ViewProviderMeshCurvature class is associated to the mesh curvature feature. More...

#include <ViewProviderCurvature.h>

Inheritance diagram for MeshGui::ViewProviderMeshCurvature:
Gui::ViewProviderDocumentObject App::DocumentObserver Base::Observer< int > Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

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.
virtual const char * getDefaultDisplayMode () const
 get the default display mode
std::vector< std::string > getDisplayModes (void) const
 Returns a list of all possible modes.
SoSeparator * getFrontRoot (void) const
 Returns a color bar.
QIcon getIcon () const
 Returns a pixmap for the associated feature type.
virtual Base::Type getTypeId (void) const
virtual void hide (void)
 Hide the object in the view.
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.
void setDisplayMode (const char *ModeName)
 Sets the viewing mode.
virtual void show (void)
 Show the object in the view.
void updateData (const App::Property *)
 Updates the mesh feature representation.
 ViewProviderMeshCurvature ()
virtual ~ViewProviderMeshCurvature ()

Static Public Member Functions

static void * create (void)
static void curvatureInfoCallback (void *ud, SoEventCallback *n)
static Base::Type getClassTypeId (void)
static void init (void)

Public Attributes

App::PropertyMaterial TextureMaterial

Protected Member Functions

std::string curvatureInfo (bool detail, int index1, int index2, int index3) const
virtual const App::PropertyDatagetPropertyData (void) const
void onChanged (const App::Property *prop)
 Gets called by the container whenever a property has been changed.
void setVertexCurvatureMode (int mode)

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Protected Attributes

Gui::SoFCColorBarpcColorBar
SoMaterial * pcColorMat
SoSeparator * pcColorRoot
SoDrawStyle * pcColorStyle
SoGroup * pcLinkRoot

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

Definition at line 58 of file ViewProviderCurvature.h.


Constructor & Destructor Documentation

ViewProviderMeshCurvature::ViewProviderMeshCurvature (  ) 
ViewProviderMeshCurvature::~ViewProviderMeshCurvature (  )  [virtual]

Member Function Documentation

void ViewProviderMeshCurvature::attach ( App::DocumentObject pcFeature  )  [virtual]
void * MeshGui::ViewProviderMeshCurvature::create ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 85 of file ViewProviderCurvature.cpp.

std::string ViewProviderMeshCurvature::curvatureInfo ( bool  detail,
int  index1,
int  index2,
int  index3 
) const [protected]
void ViewProviderMeshCurvature::curvatureInfoCallback ( void *  ud,
SoEventCallback *  n 
) [static]
Base::Type MeshGui::ViewProviderMeshCurvature::getClassTypeId ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 85 of file ViewProviderCurvature.cpp.

Referenced by curvatureInfo(), curvatureInfoCallback(), and updateData().

const char * ViewProviderMeshCurvature::getDefaultDisplayMode (  )  const [virtual]

get the default display mode

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 423 of file ViewProviderCurvature.cpp.

std::vector< std::string > ViewProviderMeshCurvature::getDisplayModes ( void   )  const [virtual]

Returns a list of all possible modes.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 428 of file ViewProviderCurvature.cpp.

References Gui::ViewProviderDocumentObject::getDisplayModes().

SoSeparator * ViewProviderMeshCurvature::getFrontRoot ( void   )  const [virtual]

Returns a color bar.

Reimplemented from Gui::ViewProvider.

Definition at line 331 of file ViewProviderCurvature.cpp.

References pcColorRoot.

QIcon ViewProviderMeshCurvature::getIcon ( void   )  const [virtual]

Returns a pixmap for the associated feature type.

Reimplemented from Gui::ViewProvider.

Definition at line 366 of file ViewProviderCurvature.cpp.

References px.

const App::PropertyData & MeshGui::ViewProviderMeshCurvature::getPropertyData ( void   )  const [protected, virtual]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 85 of file ViewProviderCurvature.cpp.

const App::PropertyData * MeshGui::ViewProviderMeshCurvature::getPropertyDataPtr ( void   )  [static, protected]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 85 of file ViewProviderCurvature.cpp.

Base::Type MeshGui::ViewProviderMeshCurvature::getTypeId ( void   )  const [virtual]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 85 of file ViewProviderCurvature.cpp.

void ViewProviderMeshCurvature::hide ( void   )  [virtual]

Hide the object in the view.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 156 of file ViewProviderCurvature.cpp.

References Gui::ViewProviderDocumentObject::hide(), and pcColorStyle.

void MeshGui::ViewProviderMeshCurvature::init ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 85 of file ViewProviderCurvature.cpp.

Referenced by initMeshGui(), and updateData().

void ViewProviderMeshCurvature::OnChange ( Base::Subject< int > &  rCaller,
int  rcReason 
) [virtual]

Once the color bar settinhs has been changed this method gets called to update the feature's representation.

Implements Base::Observer< int >.

Definition at line 442 of file ViewProviderCurvature.cpp.

References Gui::ViewProviderDocumentObject::setActiveMode().

void ViewProviderMeshCurvature::onChanged ( const App::Property prop  )  [protected, virtual]
void ViewProviderMeshCurvature::setDisplayMode ( const char *  ModeName  )  [virtual]
void ViewProviderMeshCurvature::setVertexCurvatureMode ( int  mode  )  [protected]
void ViewProviderMeshCurvature::show ( void   )  [virtual]

Show the object in the view.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 162 of file ViewProviderCurvature.cpp.

References pcColorStyle, and Gui::ViewProviderDocumentObject::show().

void ViewProviderMeshCurvature::updateData ( const App::Property prop  )  [virtual]

Member Data Documentation

Definition at line 119 of file ViewProviderCurvature.h.

Referenced by attach(), getFrontRoot(), and ~ViewProviderMeshCurvature().

Definition at line 118 of file ViewProviderCurvature.h.

Referenced by hide(), and show().

Definition at line 116 of file ViewProviderCurvature.h.

Referenced by attach(), updateData(), and ~ViewProviderMeshCurvature().

Definition at line 69 of file ViewProviderCurvature.h.

Referenced by onChanged().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:28 2011 for FreeCAD by  doxygen 1.6.1