PointsGui::ViewProviderPoints Class Reference

The ViewProviderPoints class creates a node representing the point data structure. More...

#include <ViewProvider.h>

Inheritance diagram for PointsGui::ViewProviderPoints:
Gui::ViewProviderGeometryObject Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

Public Member Functions

virtual void attach (App::DocumentObject *)
 Extracts the point data from the feature pcFeature and creates an Inventor node SoNode with these data.
virtual std::vector< std::string > getDisplayModes (void) const
 returns 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 viewing mode
bool setEdit (int ModNum)
 Sets the edit mnode.
void unsetEdit (int ModNum)
 Unsets the edit mode.
virtual void updateData (const App::Property *)
 Update the point representation.
 ViewProviderPoints ()
virtual ~ViewProviderPoints ()

Static Public Member Functions

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

Public Attributes

App::PropertyFloatConstraint PointSize

Protected Member Functions

virtual void cut (const std::vector< SbVec2f > &picked, Gui::View3DInventorViewer &Viewer)
virtual const App::PropertyDatagetPropertyData (void) const
void onChanged (const App::Property *prop)
 get called by the container whenever a property has been changed
void setVertexColorMode (App::PropertyColorList *)
void setVertexGreyvalueMode (Points::PropertyGreyValueList *)
void setVertexNormalMode (Points::PropertyNormalList *)

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Protected Attributes

SoMaterial * pcColorMat
SoPointSet * pcPoints
SoCoordinate3 * pcPointsCoord
SoNormal * pcPointsNormal
SoDrawStyle * pcPointStyle

Detailed Description

The ViewProviderPoints class creates a node representing the point data structure.

Author:
Werner Mayer

Definition at line 71 of file Mod/Points/Gui/ViewProvider.h.


Constructor & Destructor Documentation

ViewProviderPoints::ViewProviderPoints (  ) 
ViewProviderPoints::~ViewProviderPoints (  )  [virtual]

Member Function Documentation

void ViewProviderPoints::attach ( App::DocumentObject pcObj  )  [virtual]

Extracts the point data from the feature pcFeature and creates an Inventor node SoNode with these data.

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 160 of file Mod/Points/Gui/ViewProvider.cpp.

References Gui::ViewProvider::addDisplayMaskMode(), pcColorMat, Gui::ViewProviderGeometryObject::pcHighlight, pcPoints, pcPointsCoord, pcPointsNormal, pcPointStyle, and Gui::ViewProviderGeometryObject::pcShapeMaterial.

void ViewProviderPoints::clipPointsCallback ( void *  ud,
SoEventCallback *  n 
) [static]
void * PointsGui::ViewProviderPoints::create ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 65 of file Mod/Points/Gui/ViewProvider.cpp.

void ViewProviderPoints::cut ( const std::vector< SbVec2f > &  picked,
Gui::View3DInventorViewer Viewer 
) [protected, virtual]
Base::Type PointsGui::ViewProviderPoints::getClassTypeId ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 65 of file Mod/Points/Gui/ViewProvider.cpp.

Referenced by clipPointsCallback(), initPointsGui(), and updateData().

std::vector< std::string > ViewProviderPoints::getDisplayModes ( void   )  const [virtual]
QIcon ViewProviderPoints::getIcon ( void   )  const [virtual]

deliver the icon shown in the tree view

Reimplemented from Gui::ViewProvider.

Definition at line 322 of file Mod/Points/Gui/ViewProvider.cpp.

References px.

const App::PropertyData & PointsGui::ViewProviderPoints::getPropertyData ( void   )  const [protected, virtual]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 65 of file Mod/Points/Gui/ViewProvider.cpp.

const App::PropertyData * PointsGui::ViewProviderPoints::getPropertyDataPtr ( void   )  [static, protected]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 65 of file Mod/Points/Gui/ViewProvider.cpp.

Base::Type PointsGui::ViewProviderPoints::getTypeId ( void   )  const [virtual]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 65 of file Mod/Points/Gui/ViewProvider.cpp.

void PointsGui::ViewProviderPoints::init ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 65 of file Mod/Points/Gui/ViewProvider.cpp.

Referenced by initPointsGui().

void ViewProviderPoints::onChanged ( const App::Property prop  )  [protected, virtual]

get called by the container whenever a property has been changed

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 99 of file Mod/Points/Gui/ViewProvider.cpp.

References App::PropertyFloat::getValue(), pcPointStyle, and PointSize.

void ViewProviderPoints::setDisplayMode ( const char *  ModeName  )  [virtual]
bool ViewProviderPoints::setEdit ( int  ModNum  )  [virtual]

Sets the edit mnode.

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 350 of file Mod/Points/Gui/ViewProvider.cpp.

void ViewProviderPoints::setVertexColorMode ( App::PropertyColorList pcProperty  )  [protected]

Definition at line 109 of file Mod/Points/Gui/ViewProvider.cpp.

References App::PropertyColorList::getValues(), and pcColorMat.

Referenced by setDisplayMode().

void ViewProviderPoints::setVertexGreyvalueMode ( Points::PropertyGreyValueList pcProperty  )  [protected]

Definition at line 126 of file Mod/Points/Gui/ViewProvider.cpp.

References App::PropertyFloatList::getValues(), and pcColorMat.

Referenced by setDisplayMode().

void ViewProviderPoints::setVertexNormalMode ( Points::PropertyNormalList pcProperty  )  [protected]
void ViewProviderPoints::unsetEdit ( int  ModNum  )  [virtual]

Unsets the edit mode.

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 355 of file Mod/Points/Gui/ViewProvider.cpp.

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

Member Data Documentation

SoPointSet* PointsGui::ViewProviderPoints::pcPoints [protected]

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

Referenced by onChanged(), and ViewProviderPoints().


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

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