MeshGui::ViewProviderMeshNode Class Reference

The ViewProviderMeshNode class creates a node representing the mesh data structure. More...

#include <ViewProviderMeshNode.h>

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

List of all members.

Public Member Functions

void attach (App::DocumentObject *pcFeat)
 Attaches the document object to this view provider.
virtual std::vector< std::string > getDisplayModes () const
 Return a list of all possible modes.
virtual QIcon getIcon () const
 deliver the icon shown in the tree view
virtual Base::Type getTypeId (void) const
virtual void setDisplayMode (const char *ModeName)
 set the display mode
virtual void updateData (const App::Property *)
 Gets called if some of the property hade bin changed.
 ViewProviderMeshNode ()
virtual ~ViewProviderMeshNode ()
Polygon picking



const char * getEditModeName (void)
 Returns the edit mode.
bool handleEvent (const SoEvent *const ev, Gui::View3DInventorViewer &Viewer)
bool setEdit (int ModNum=0)
 Sets the edit mnode.
void unsetEdit (void)
 Unsets the edit mode.

Static Public Member Functions

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

Public Attributes

App::PropertyFloatConstraint LineWidth
App::PropertyBool OpenEdges
App::PropertyFloatConstraint PointSize

Protected Member Functions

virtual const App::PropertyDatagetPropertyData (void) const
void onChanged (const App::Property *prop)
 get called by the container whenever a property has been changed
void setOpenEdgeColorFrom (const App::Color &col)
void showOpenEdges (bool)

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Protected Attributes

SoDrawStyle * pcLineStyle
SoSeparator * pcOpenEdge
SoDrawStyle * pcPointStyle
SoBaseColor * pOpenColor

Detailed Description

The ViewProviderMeshNode class creates a node representing the mesh data structure.

Author:
Werner Mayer

Definition at line 45 of file ViewProviderMeshNode.h.


Constructor & Destructor Documentation

ViewProviderMeshNode::ViewProviderMeshNode (  ) 
ViewProviderMeshNode::~ViewProviderMeshNode (  )  [virtual]

Definition at line 111 of file ViewProviderMeshNode.cpp.

References pcLineStyle, pcPointStyle, and pOpenColor.


Member Function Documentation

void ViewProviderMeshNode::attach ( App::DocumentObject pcObject  )  [virtual]
void * MeshGui::ViewProviderMeshNode::create ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 75 of file ViewProviderMeshNode.cpp.

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

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 75 of file ViewProviderMeshNode.cpp.

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

Return a list of all possible modes.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 246 of file ViewProviderMeshNode.cpp.

const char * ViewProviderMeshNode::getEditModeName ( void   ) 

Returns the edit mode.

Definition at line 271 of file ViewProviderMeshNode.cpp.

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

deliver the icon shown in the tree view

Reimplemented from Gui::ViewProvider.

Definition at line 204 of file ViewProviderMeshNode.cpp.

References px.

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

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 75 of file ViewProviderMeshNode.cpp.

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

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 75 of file ViewProviderMeshNode.cpp.

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

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 75 of file ViewProviderMeshNode.cpp.

bool ViewProviderMeshNode::handleEvent ( const SoEvent *const   ev,
Gui::View3DInventorViewer Viewer 
)
void MeshGui::ViewProviderMeshNode::init ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 75 of file ViewProviderMeshNode.cpp.

void ViewProviderMeshNode::onChanged ( const App::Property prop  )  [protected, virtual]
void ViewProviderMeshNode::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 232 of file ViewProviderMeshNode.cpp.

References Gui::ViewProvider::setDisplayMaskMode().

bool ViewProviderMeshNode::setEdit ( int  ModNum = 0  )  [virtual]

Sets the edit mnode.

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 259 of file ViewProviderMeshNode.cpp.

void ViewProviderMeshNode::setOpenEdgeColorFrom ( const App::Color col  )  [protected]

Definition at line 137 of file ViewProviderMeshNode.cpp.

References App::Color::b, FemExample::b, App::Color::g, pOpenColor, and App::Color::r.

Referenced by onChanged().

void ViewProviderMeshNode::showOpenEdges ( bool  show  )  [protected]
void ViewProviderMeshNode::unsetEdit ( void   ) 

Unsets the edit mode.

Definition at line 266 of file ViewProviderMeshNode.cpp.

Referenced by handleEvent().

void ViewProviderMeshNode::updateData ( const App::Property  )  [virtual]

Gets called if some of the property hade bin changed.

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 198 of file ViewProviderMeshNode.cpp.

References Gui::ViewProviderGeometryObject::pcHighlight.


Member Data Documentation

Definition at line 54 of file ViewProviderMeshNode.h.

Referenced by onChanged().

Definition at line 56 of file ViewProviderMeshNode.h.

Referenced by onChanged().

Definition at line 82 of file ViewProviderMeshNode.h.

Referenced by attach(), onChanged(), showOpenEdges(), and ~ViewProviderMeshNode().

Definition at line 84 of file ViewProviderMeshNode.h.

Referenced by showOpenEdges().

Definition at line 83 of file ViewProviderMeshNode.h.

Referenced by attach(), onChanged(), and ~ViewProviderMeshNode().

Definition at line 55 of file ViewProviderMeshNode.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