PartGui::ViewProviderPartBase Class Reference

#include <ViewProvider.h>

Inheritance diagram for PartGui::ViewProviderPartBase:
Gui::ViewProviderGeometryObject Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass PartGui::ViewProviderEllipsoid

List of all members.

Public Member Functions

virtual void attach (App::DocumentObject *)
 Attaches the document object to this view provider.
virtual std::vector< std::string > getDisplayModes (void) const
 returns a list of all possible modes
TopoDS_Shape getShape (const SoPickedPoint *) const
virtual Base::Type getTypeId (void) const
void reload ()
 Update the view representation.
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.
 ViewProviderPartBase ()
 constructor
virtual ~ViewProviderPartBase ()
 destructor

Static Public Member Functions

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

Public Attributes

App::PropertyBool ControlPoints
App::PropertyEnumeration Lighting
App::PropertyColor LineColor
App::PropertyMaterial LineMaterial
App::PropertyFloatConstraint LineWidth
App::PropertyColor PointColor
App::PropertyMaterial PointMaterial
App::PropertyFloatConstraint PointSize

Protected Member Functions

Standard_Boolean computeEdges (SoGroup *root, const TopoDS_Shape &myShape)
Standard_Boolean computeFaces (SoGroup *root, const TopoDS_Shape &myShape, double defl)
Standard_Boolean computeVertices (SoGroup *root, const TopoDS_Shape &myShape)
virtual const App::PropertyDatagetPropertyData (void) const
bool loadParameter ()
virtual void onChanged (const App::Property *prop)
 get called by the container whenever a property has been changed
void showControlPoints (bool, const App::Property *prop)
void showControlPointsOfEdge (const TopoDS_Edge &)
void showControlPointsOfFace (const TopoDS_Face &)
void showControlPointsOfWire (const TopoDS_Wire &)
void transferToArray (const TopoDS_Face &aFace, SbVec3f **vertices, SbVec3f **vertexnormals, int32_t **cons, int &nbNodesInFace, int &nbTriInFace)

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Protected Attributes

SoGroup * EdgeRoot
SoGroup * FaceRoot
SoSwitch * pcControlPoints
SoMaterial * pcLineMaterial
SoDrawStyle * pcLineStyle
SoMaterial * pcPointMaterial
SoDrawStyle * pcPointStyle
SoShapeHints * pShapeHints
SoGroup * VertexRoot

Detailed Description

Definition at line 64 of file Mod/Part/Gui/ViewProvider.h.


Constructor & Destructor Documentation

ViewProviderPartBase::ViewProviderPartBase (  ) 
ViewProviderPartBase::~ViewProviderPartBase (  )  [virtual]

Member Function Documentation

void ViewProviderPartBase::attach ( App::DocumentObject pcObject  )  [virtual]

Attaches the document object to this view provider.

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 267 of file Mod/Part/Gui/ViewProvider.cpp.

References Gui::ViewProvider::addDisplayMaskMode(), EdgeRoot, FaceRoot, offset(), pShapeHints, and VertexRoot.

Standard_Boolean ViewProviderPartBase::computeEdges ( SoGroup *  root,
const TopoDS_Shape &  myShape 
) [protected]
Standard_Boolean ViewProviderPartBase::computeFaces ( SoGroup *  root,
const TopoDS_Shape &  myShape,
double  defl 
) [protected]
Standard_Boolean ViewProviderPartBase::computeVertices ( SoGroup *  root,
const TopoDS_Shape &  myShape 
) [protected]
void * PartGui::ViewProviderPartBase::create ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Reimplemented in PartGui::ViewProviderEllipsoid.

Definition at line 134 of file Mod/Part/Gui/ViewProvider.cpp.

Base::Type PartGui::ViewProviderPartBase::getClassTypeId ( void   )  [static]
std::vector< std::string > ViewProviderPartBase::getDisplayModes ( void   )  const [virtual]

returns a list of all possible modes

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 324 of file Mod/Part/Gui/ViewProvider.cpp.

const App::PropertyData & PartGui::ViewProviderPartBase::getPropertyData ( void   )  const [protected, virtual]

Reimplemented from Gui::ViewProviderGeometryObject.

Reimplemented in PartGui::ViewProviderEllipsoid.

Definition at line 134 of file Mod/Part/Gui/ViewProvider.cpp.

const App::PropertyData * PartGui::ViewProviderPartBase::getPropertyDataPtr ( void   )  [static, protected]

Reimplemented from Gui::ViewProviderGeometryObject.

Reimplemented in PartGui::ViewProviderEllipsoid.

Definition at line 134 of file Mod/Part/Gui/ViewProvider.cpp.

TopoDS_Shape ViewProviderPartBase::getShape ( const SoPickedPoint *  point  )  const

Definition at line 374 of file Mod/Part/Gui/ViewProvider.cpp.

Referenced by shapeInfoCallback().

Base::Type PartGui::ViewProviderPartBase::getTypeId ( void   )  const [virtual]

Reimplemented from Gui::ViewProviderGeometryObject.

Reimplemented in PartGui::ViewProviderEllipsoid.

Definition at line 134 of file Mod/Part/Gui/ViewProvider.cpp.

void PartGui::ViewProviderPartBase::init ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Reimplemented in PartGui::ViewProviderEllipsoid.

Definition at line 134 of file Mod/Part/Gui/ViewProvider.cpp.

Referenced by initPartGui().

bool ViewProviderPartBase::loadParameter (  )  [protected]
void ViewProviderPartBase::onChanged ( const App::Property prop  )  [protected, virtual]
void ViewProviderPartBase::reload (  ) 
void ViewProviderPartBase::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 310 of file Mod/Part/Gui/ViewProvider.cpp.

References Gui::ViewProvider::setDisplayMaskMode().

void ViewProviderPartBase::shapeInfoCallback ( void *  ud,
SoEventCallback *  n 
) [static]
void ViewProviderPartBase::showControlPoints ( bool  show,
const App::Property prop 
) [protected]
void ViewProviderPartBase::showControlPointsOfEdge ( const TopoDS_Edge &  edge  )  [protected]
void ViewProviderPartBase::showControlPointsOfFace ( const TopoDS_Face &  face  )  [protected]
void ViewProviderPartBase::showControlPointsOfWire ( const TopoDS_Wire &  wire  )  [protected]

Definition at line 993 of file Mod/Part/Gui/ViewProvider.cpp.

References Sketcher::end, Handle(), and Sketcher::start.

Referenced by showControlPoints().

void ViewProviderPartBase::transferToArray ( const TopoDS_Face &  aFace,
SbVec3f **  vertices,
SbVec3f **  vertexnormals,
int32_t **  cons,
int &  nbNodesInFace,
int &  nbTriInFace 
) [protected]

Definition at line 775 of file Mod/Part/Gui/ViewProvider.cpp.

References Handle(), and draftlibs::fcgeo::v1().

Referenced by computeFaces().

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

Member Data Documentation

Definition at line 81 of file Mod/Part/Gui/ViewProvider.h.

Referenced by onChanged(), updateData(), and ViewProviderPartBase().

Definition at line 82 of file Mod/Part/Gui/ViewProvider.h.

Referenced by onChanged(), and ViewProviderPartBase().

Definition at line 77 of file Mod/Part/Gui/ViewProvider.h.

Referenced by onChanged(), and ViewProviderPartBase().

Definition at line 79 of file Mod/Part/Gui/ViewProvider.h.

Referenced by onChanged(), and ViewProviderPartBase().

Definition at line 75 of file Mod/Part/Gui/ViewProvider.h.

Referenced by onChanged(), and ViewProviderPartBase().

Definition at line 78 of file Mod/Part/Gui/ViewProvider.h.

Referenced by onChanged(), and ViewProviderPartBase().

Definition at line 80 of file Mod/Part/Gui/ViewProvider.h.

Referenced by onChanged(), and ViewProviderPartBase().

Definition at line 76 of file Mod/Part/Gui/ViewProvider.h.

Referenced by onChanged(), and ViewProviderPartBase().

SoShapeHints* PartGui::ViewProviderPartBase::pShapeHints [protected]

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

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