PartGui::ViewProviderPartExt Class Reference

#include <ViewProviderExt.h>

Inheritance diagram for PartGui::ViewProviderPartExt:
Gui::ViewProviderGeometryObject Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass PartGui::ViewProviderPart PartDesignGui::ViewProvider PartDesignGui::ViewProviderChamfer PartDesignGui::ViewProviderMainPart PartGui::ViewProvider2DObject PartGui::ViewProviderBoolean PartGui::ViewProviderBox PartGui::ViewProviderChamfer PartGui::ViewProviderCurveNet PartGui::ViewProviderCustom PartGui::ViewProviderExtrusion PartGui::ViewProviderFillet PartGui::ViewProviderImport PartGui::ViewProviderMirror PartGui::ViewProviderMultiCommon PartGui::ViewProviderMultiFuse

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
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.
 ViewProviderPartExt ()
 constructor
virtual ~ViewProviderPartExt ()
 destructor
Selection handling

This group of methodes do the selection handling.

Here you can define how the selection for your ViewProfider works.



virtual std::string getElement (const SoPickedPoint *) const
 return a hit element to the selection path or 0
virtual std::vector
< Base::Vector3d
getSelectionShape (const char *Element) const
 return the higlight lines for a given element or the whole shape
virtual bool useNewSelectionModel (void) const
 indicates if the ViewProvider use the new Selection model

Static Public Member Functions

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

Public Attributes

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

Protected Member Functions

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 updateVisual (const TopoDS_Shape &)

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Protected Attributes

SoCoordinate3 * coords
SoBrepFaceSetfaceset
SoBrepEdgeSetlineset
SoBrepPointSetnodeset
SoNormal * norm
SoNormalBinding * normb
SoMaterial * pcLineMaterial
SoDrawStyle * pcLineStyle
SoMaterial * pcPointMaterial
SoDrawStyle * pcPointStyle
SoMaterialBinding * pcShapeBind
SoShapeHints * pShapeHints
bool VisualTouched

Edit methods



void setupContextMenu (QMenu *, QObject *, const char *)
 set up the context-menu with the supported edit modes
bool setEdit (int ModNum)
 is called by the document when the provider goes in edit mode
void unsetEdit (int ModNum)
 is called when you loose the edit mode

Detailed Description

Definition at line 60 of file ViewProviderExt.h.


Constructor & Destructor Documentation

ViewProviderPartExt::ViewProviderPartExt (  ) 
ViewProviderPartExt::~ViewProviderPartExt (  )  [virtual]

Member Function Documentation

void ViewProviderPartExt::attach ( App::DocumentObject pcObject  )  [virtual]
void * PartGui::ViewProviderPartExt::create ( void   )  [static]
Base::Type PartGui::ViewProviderPartExt::getClassTypeId ( void   )  [static]
std::vector< std::string > ViewProviderPartExt::getDisplayModes ( void   )  const [virtual]

returns a list of all possible modes

Reimplemented from Gui::ViewProviderDocumentObject.

Reimplemented in PartGui::ViewProvider2DObject, PartGui::ViewProviderBox, and PartGui::ViewProviderCurveNet.

Definition at line 360 of file ViewProviderExt.cpp.

std::string ViewProviderPartExt::getElement ( const SoPickedPoint *  pp  )  const [virtual]

return a hit element to the selection path or 0

Reimplemented from Gui::ViewProvider.

Definition at line 374 of file ViewProviderExt.cpp.

References getClassTypeId(), and nodeset.

const App::PropertyData & PartGui::ViewProviderPartExt::getPropertyData ( void   )  const [protected, virtual]
const App::PropertyData * PartGui::ViewProviderPartExt::getPropertyDataPtr ( void   )  [static, protected]
std::vector< Base::Vector3d > ViewProviderPartExt::getSelectionShape ( const char *  Element  )  const [virtual]

return the higlight lines for a given element or the whole shape

Reimplemented from Gui::ViewProvider.

Definition at line 399 of file ViewProviderExt.cpp.

Base::Type PartGui::ViewProviderPartExt::getTypeId ( void   )  const [virtual]
void PartGui::ViewProviderPartExt::init ( void   )  [static]
bool ViewProviderPartExt::loadParameter (  )  [protected]
void ViewProviderPartExt::onChanged ( const App::Property prop  )  [protected, virtual]
void ViewProviderPartExt::reload (  ) 
void ViewProviderPartExt::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.

Reimplemented in PartGui::ViewProviderCurveNet.

Definition at line 346 of file ViewProviderExt.cpp.

References Gui::ViewProvider::setDisplayMaskMode().

Referenced by SketcherGui::ViewProviderCustom::updateData(), and PartGui::ViewProviderCustom::updateData().

bool ViewProviderPartExt::setEdit ( int  ModNum  )  [protected, virtual]
void ViewProviderPartExt::setupContextMenu ( QMenu *  ,
QObject *  ,
const char *   
) [virtual]
void ViewProviderPartExt::unsetEdit ( int  ModNum  )  [protected, virtual]
void ViewProviderPartExt::updateData ( const App::Property  )  [virtual]
void ViewProviderPartExt::updateVisual ( const TopoDS_Shape &  inputShape  )  [protected]
virtual bool PartGui::ViewProviderPartExt::useNewSelectionModel ( void   )  const [inline, virtual]

indicates if the ViewProvider use the new Selection model

Reimplemented from Gui::ViewProvider.

Definition at line 100 of file ViewProviderExt.h.


Member Data Documentation

Definition at line 78 of file ViewProviderExt.h.

Referenced by ViewProviderPartExt().

SoCoordinate3* PartGui::ViewProviderPartExt::coords [protected]

Definition at line 73 of file ViewProviderExt.h.

Definition at line 79 of file ViewProviderExt.h.

Referenced by onChanged(), and ViewProviderPartExt().

Definition at line 74 of file ViewProviderExt.h.

Referenced by onChanged(), and ViewProviderPartExt().

Definition at line 76 of file ViewProviderExt.h.

Referenced by onChanged(), and ViewProviderPartExt().

Definition at line 71 of file ViewProviderExt.h.

Referenced by onChanged(), and ViewProviderPartExt().

SoNormal* PartGui::ViewProviderPartExt::norm [protected]
SoNormalBinding* PartGui::ViewProviderPartExt::normb [protected]

Definition at line 133 of file ViewProviderExt.h.

Referenced by attach(), and ViewProviderPartExt().

SoMaterialBinding* PartGui::ViewProviderPartExt::pcShapeBind [protected]

Definition at line 75 of file ViewProviderExt.h.

Referenced by onChanged(), and ViewProviderPartExt().

Definition at line 77 of file ViewProviderExt.h.

Referenced by onChanged(), and ViewProviderPartExt().

Definition at line 72 of file ViewProviderExt.h.

Referenced by onChanged(), and ViewProviderPartExt().

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

Definition at line 128 of file ViewProviderExt.h.

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

Definition at line 137 of file ViewProviderExt.h.

Referenced by onChanged(), updateData(), updateVisual(), and ViewProviderPartExt().


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