#include <ViewProviderCurveNet.h>
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::PropertyData & | getPropertyData (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::PropertyData * | getPropertyDataPtr (void) |
Protected Attributes | |
bool | bInEdit |
bool | bMovePointMode |
SoSeparator * | EdgeRoot |
root of the edge and vertex points | |
std::list< Node > | NodeList |
Node | PointToMove |
SoSeparator * | VertexRoot |
Definition at line 44 of file ViewProviderCurveNet.h.
ViewProviderCurveNet::ViewProviderCurveNet | ( | ) |
ViewProviderCurveNet::~ViewProviderCurveNet | ( | ) | [virtual] |
destructor
Definition at line 84 of file ViewProviderCurveNet.cpp.
void ViewProviderCurveNet::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Attaches the document object to this view provider.
Reimplemented from PartGui::ViewProviderPartExt.
Definition at line 89 of file ViewProviderCurveNet.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), EdgeRoot, PartGui::ViewProviderPartExt::pcLineMaterial, PartGui::ViewProviderPartExt::pcLineStyle, PartGui::ViewProviderPartExt::pcPointMaterial, and VertexRoot.
Standard_Boolean ViewProviderCurveNet::computeEdges | ( | SoSeparator * | root, | |
const TopoDS_Shape & | myShape | |||
) | [protected] |
Definition at line 267 of file ViewProviderCurveNet.cpp.
References PartGui::ViewProviderPartExt::coords, EdgeRoot, Handle(), PartGui::ViewProviderPartExt::lineset, PartGui::ViewProviderPartExt::pcLineMaterial, and PartGui::ViewProviderPartExt::pcLineStyle.
Referenced by updateData().
Standard_Boolean ViewProviderCurveNet::computeVertices | ( | SoSeparator * | root, | |
const TopoDS_Shape & | myShape | |||
) | [protected] |
Definition at line 312 of file ViewProviderCurveNet.cpp.
References PartGui::ViewProviderPartExt::pcPointMaterial, PartGui::ViewProviderPartExt::pcPointStyle, and VertexRoot.
Referenced by updateData().
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] |
Definition at line 166 of file ViewProviderCurveNet.cpp.
References bMovePointMode, Base::Console(), NodeList, PartGui::ViewProviderPartExt::norm, PartGui::ViewProviderCurveNet::Node::pcHighlight, PartGui::ViewProviderPartExt::pcLineStyle, PartGui::ViewProviderCurveNet::Node::pcTransform, Gui::View3DInventorViewer::pickPoint(), PointToMove, RobotExample::pos, and VertexRoot.
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] |
Update the Part representation.
Reimplemented from PartGui::ViewProviderPartExt.
Definition at line 112 of file ViewProviderCurveNet.cpp.
References computeEdges(), computeVertices(), Base::Console(), EdgeRoot, getClassTypeId(), App::Property::getTypeId(), and VertexRoot.
bool PartGui::ViewProviderCurveNet::bInEdit [protected] |
Definition at line 75 of file ViewProviderCurveNet.h.
Referenced by setEdit(), and unsetEdit().
bool PartGui::ViewProviderCurveNet::bMovePointMode [protected] |
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().
std::list<Node> PartGui::ViewProviderCurveNet::NodeList [protected] |
Definition at line 73 of file ViewProviderCurveNet.h.
Referenced by handleEvent().
Node PartGui::ViewProviderCurveNet::PointToMove [protected] |
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().