PartGui::ViewProviderCurveNet Class Reference

#include <ViewProviderCurveNet.h>

Inheritance diagram for PartGui::ViewProviderCurveNet:
PartGui::ViewProviderPart PartGui::ViewProviderPartExt Gui::ViewProviderGeometryObject Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

Classes

struct  Node

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
virtual bool handleEvent (const SoEvent *const ev, Gui::View3DInventorViewer &Viewer)
virtual void setDisplayMode (const char *ModeName)
 set the display mode
virtual void updateData (const App::Property *)
 Update the Part representation.
 ViewProviderCurveNet ()
 constructor
virtual ~ViewProviderCurveNet ()
 destructor

Static Public Member Functions

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

Protected Member Functions

Standard_Boolean computeEdges (SoSeparator *root, const TopoDS_Shape &myShape)
Standard_Boolean computeVertices (SoSeparator *root, const TopoDS_Shape &myShape)
virtual const App::PropertyDatagetPropertyData (void) const
virtual bool setEdit (int ModNum)
 is called by the document when the provider goes in edit mode
virtual void unsetEdit (int ModNum)
 is called when you loose the edit mode

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Protected Attributes

bool bInEdit
bool bMovePointMode
SoSeparator * EdgeRoot
 root of the edge and vertex points
std::list< NodeNodeList
Node PointToMove
SoSeparator * VertexRoot

Detailed Description

Definition at line 44 of file ViewProviderCurveNet.h.


Constructor & Destructor Documentation

ViewProviderCurveNet::ViewProviderCurveNet (  ) 

constructor

Definition at line 69 of file ViewProviderCurveNet.cpp.

References SketcherExample::f.

ViewProviderCurveNet::~ViewProviderCurveNet (  )  [virtual]

destructor

Definition at line 84 of file ViewProviderCurveNet.cpp.


Member Function Documentation

void ViewProviderCurveNet::attach ( App::DocumentObject pcObject  )  [virtual]
Standard_Boolean ViewProviderCurveNet::computeEdges ( SoSeparator *  root,
const TopoDS_Shape &  myShape 
) [protected]
Standard_Boolean ViewProviderCurveNet::computeVertices ( SoSeparator *  root,
const TopoDS_Shape &  myShape 
) [protected]
void * PartGui::ViewProviderCurveNet::create ( void   )  [static]

Reimplemented from PartGui::ViewProviderPart.

Definition at line 66 of file ViewProviderCurveNet.cpp.

Base::Type PartGui::ViewProviderCurveNet::getClassTypeId ( void   )  [static]

Reimplemented from PartGui::ViewProviderPart.

Definition at line 66 of file ViewProviderCurveNet.cpp.

Referenced by updateData().

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

returns a list of all possible modes

Reimplemented from PartGui::ViewProviderPartExt.

Definition at line 141 of file ViewProviderCurveNet.cpp.

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

Reimplemented from PartGui::ViewProviderPart.

Definition at line 66 of file ViewProviderCurveNet.cpp.

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

Reimplemented from PartGui::ViewProviderPart.

Definition at line 66 of file ViewProviderCurveNet.cpp.

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

Reimplemented from PartGui::ViewProviderPart.

Definition at line 66 of file ViewProviderCurveNet.cpp.

bool ViewProviderCurveNet::handleEvent ( const SoEvent *const   ev,
Gui::View3DInventorViewer Viewer 
) [virtual]
void PartGui::ViewProviderCurveNet::init ( void   )  [static]

Reimplemented from PartGui::ViewProviderPart.

Definition at line 66 of file ViewProviderCurveNet.cpp.

Referenced by initPartGui().

void ViewProviderCurveNet::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 PartGui::ViewProviderPartExt.

Definition at line 133 of file ViewProviderCurveNet.cpp.

References Gui::ViewProvider::setDisplayMaskMode().

bool ViewProviderCurveNet::setEdit ( int  ModNum  )  [protected, virtual]

is called by the document when the provider goes in edit mode

Reimplemented from PartGui::ViewProviderPartExt.

Definition at line 154 of file ViewProviderCurveNet.cpp.

References bInEdit.

void ViewProviderCurveNet::unsetEdit ( int  ModNum  )  [protected, virtual]

is called when you loose the edit mode

Reimplemented from PartGui::ViewProviderPartExt.

Definition at line 161 of file ViewProviderCurveNet.cpp.

References bInEdit.

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

Member Data Documentation

Definition at line 75 of file ViewProviderCurveNet.h.

Referenced by setEdit(), and unsetEdit().

Definition at line 76 of file ViewProviderCurveNet.h.

Referenced by handleEvent().

SoSeparator* PartGui::ViewProviderCurveNet::EdgeRoot [protected]

root of the edge and vertex points

Definition at line 79 of file ViewProviderCurveNet.h.

Referenced by attach(), computeEdges(), and updateData().

Definition at line 73 of file ViewProviderCurveNet.h.

Referenced by handleEvent().

Definition at line 77 of file ViewProviderCurveNet.h.

Referenced by handleEvent().

SoSeparator * PartGui::ViewProviderCurveNet::VertexRoot [protected]

Definition at line 79 of file ViewProviderCurveNet.h.

Referenced by attach(), computeVertices(), handleEvent(), and updateData().


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

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