![]() |
OpenWalnut
1.5.0dev
|
The action when adding a Vertex. More...
#include <WFiberActionAddVertex.h>
Inheritance diagram for WFiberActionAddVertex:
Collaboration diagram for WFiberActionAddVertex:Public Types | |
| typedef std::shared_ptr< WFiberActionAddVertex > | SPtr |
| A shared_ptr to this class. More... | |
Public Types inherited from WFiberAction | |
| typedef std::shared_ptr< WFiberAction > | SPtr |
| A shared_ptr to this class. More... | |
Public Member Functions | |
| WFiberActionAddVertex (osg::Vec3 vertex, size_t fiberIdx, WFiberHandler *fiberHandler) | |
| Creates this action. More... | |
| ~WFiberActionAddVertex () | |
| Empty destructor. More... | |
| virtual void | undo () |
| Undos this action. More... | |
| virtual void | redo () |
| Redos this action. More... | |
Public Member Functions inherited from WFiberAction | |
| virtual | ~WFiberAction () |
| Empty virtual destructor. More... | |
Private Attributes | |
| osg::Vec3 | m_vertex |
| The vertex to add. More... | |
| size_t | m_fiberIdx |
| The index of the fiber this vertex was added to. More... | |
| WFiberHandler * | m_fiberHandler |
| The WFiberHandler of the action. More... | |
The action when adding a Vertex.
Definition at line 39 of file WFiberActionAddVertex.h.
| typedef std::shared_ptr< WFiberActionAddVertex > WFiberActionAddVertex::SPtr |
A shared_ptr to this class.
Definition at line 45 of file WFiberActionAddVertex.h.
| WFiberActionAddVertex::WFiberActionAddVertex | ( | osg::Vec3 | vertex, |
| size_t | fiberIdx, | ||
| WFiberHandler * | fiberHandler | ||
| ) |
Creates this action.
| vertex | The vertex to add. |
| fiberIdx | The index of the fiber this vertex was added to. |
| fiberHandler | The WFiberHandler of the action. |
Definition at line 29 of file WFiberActionAddVertex.cpp.
| WFiberActionAddVertex::~WFiberActionAddVertex | ( | ) |
Empty destructor.
Definition at line 36 of file WFiberActionAddVertex.cpp.
|
virtual |
Redos this action.
Implements WFiberAction.
Definition at line 50 of file WFiberActionAddVertex.cpp.
References WFiberHandler::addVertexToFiber(), WMPointConnector::getConnectorData(), WFiberHandler::getPointConnector(), m_fiberHandler, m_fiberIdx, m_vertex, WFiberHandler::selectLastPoint(), and WMPointConnector::updateAll().
Here is the call graph for this function:
|
virtual |
Undos this action.
Implements WFiberAction.
Definition at line 40 of file WFiberActionAddVertex.cpp.
References WMPointConnector::getConnectorData(), WFiberHandler::getPointConnector(), m_fiberHandler, m_fiberIdx, m_vertex, WFiberHandler::removeVertexFromFiber(), WFiberHandler::selectLastPoint(), and WMPointConnector::updateAll().
Here is the call graph for this function:
|
private |
The WFiberHandler of the action.
Definition at line 84 of file WFiberActionAddVertex.h.
|
private |
The index of the fiber this vertex was added to.
Definition at line 79 of file WFiberActionAddVertex.h.
|
private |
The vertex to add.
Definition at line 74 of file WFiberActionAddVertex.h.