MeshGui::ViewProviderFace Class Reference

The ViewProviderFace class is used to display a single face. More...

#include <MeshEditor.h>

Inheritance diagram for MeshGui::ViewProviderFace:
Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

Public Member Functions

void attach (App::DocumentObject *obj)
const char * getDefaultDisplayMode () const
 Get the default display mode.
std::vector< std::string > getDisplayModes (void) const
 Return a list of all possible modes.
SoPickedPoint * getPickedPoint (const SbVec2s &pos, const SoQtViewer *viewer) const
virtual Base::Type getTypeId (void) const
void setDisplayMode (const char *ModeName)
 set the display mode
 ViewProviderFace ()
virtual ~ViewProviderFace ()

Static Public Member Functions

static void * create (void)
static Base::Type getClassTypeId (void)
static void init (void)

Public Attributes

int current_index
std::vector< int > index
ViewProviderMeshmesh
SoCoordinate3 * pcCoords
SoFaceSet * pcFaces
SoFCMeshPickNodepcMeshPick

Protected Member Functions

virtual const App::PropertyDatagetPropertyData (void) const

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Detailed Description

The ViewProviderFace class is used to display a single face.

Author:
Werner Mayer

Definition at line 43 of file MeshEditor.h.


Constructor & Destructor Documentation

ViewProviderFace::ViewProviderFace (  ) 

Definition at line 59 of file MeshEditor.cpp.

ViewProviderFace::~ViewProviderFace (  )  [virtual]

Definition at line 70 of file MeshEditor.cpp.

References pcCoords, pcFaces, and pcMeshPick.


Member Function Documentation

void ViewProviderFace::attach ( App::DocumentObject obj  )  [virtual]
void * MeshGui::ViewProviderFace::create ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 57 of file MeshEditor.cpp.

Base::Type MeshGui::ViewProviderFace::getClassTypeId ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 57 of file MeshEditor.cpp.

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

Get the default display mode.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 139 of file MeshEditor.cpp.

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

Return a list of all possible modes.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 144 of file MeshEditor.cpp.

SoPickedPoint * ViewProviderFace::getPickedPoint ( const SbVec2s &  pos,
const SoQtViewer *  viewer 
) const

Definition at line 152 of file MeshEditor.cpp.

References pcMeshPick.

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

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 57 of file MeshEditor.cpp.

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

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 57 of file MeshEditor.cpp.

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

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 57 of file MeshEditor.cpp.

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

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 57 of file MeshEditor.cpp.

void ViewProviderFace::setDisplayMode ( const char *  ModeName  )  [virtual]

set the display mode

If you add new viewing modes in getDisplayModes() then you need to reimplement also seDisplaytMode() to handle these new modes by setting the appropriate display mode.

Reimplemented from Gui::ViewProvider.

Definition at line 130 of file MeshEditor.cpp.

References Gui::ViewProvider::setDisplayMaskMode().

Referenced by attach().


Member Data Documentation

Definition at line 60 of file MeshEditor.h.

Definition at line 59 of file MeshEditor.h.

Definition at line 58 of file MeshEditor.h.

Referenced by attach(), and MeshGui::MeshFaceAddition::startEditing().

Definition at line 62 of file MeshEditor.h.

Referenced by attach(), and ~ViewProviderFace().

Definition at line 63 of file MeshEditor.h.

Referenced by attach(), and ~ViewProviderFace().

Definition at line 64 of file MeshEditor.h.

Referenced by attach(), getPickedPoint(), and ~ViewProviderFace().


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

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