![]() |
OpenWalnut
1.5.0dev
|
The action when removing a Vertex. More...
#include <WFiberActionRemoveVertex.h>
Inheritance diagram for WFiberActionRemoveVertex:
Collaboration diagram for WFiberActionRemoveVertex:Public Types | |
| typedef std::shared_ptr< WFiberActionRemoveVertex > | 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 | |
| WFiberActionRemoveVertex (osg::Vec3 vertex, size_t fiberIdx, size_t position, WFiberHandler *fiberHandler) | |
| Creates this action. More... | |
| ~WFiberActionRemoveVertex () | |
| 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... | |
| size_t | m_position |
| The position of the vertex in the vertices vector. More... | |
| WFiberHandler * | m_fiberHandler |
| The WFiberHandler of the action. More... | |
The action when removing a Vertex.
Definition at line 40 of file WFiberActionRemoveVertex.h.
| typedef std::shared_ptr< WFiberActionRemoveVertex > WFiberActionRemoveVertex::SPtr |
A shared_ptr to this class.
Definition at line 46 of file WFiberActionRemoveVertex.h.
| WFiberActionRemoveVertex::WFiberActionRemoveVertex | ( | osg::Vec3 | vertex, |
| size_t | fiberIdx, | ||
| size_t | position, | ||
| WFiberHandler * | fiberHandler | ||
| ) |
Creates this action.
| vertex | The vertex to add. |
| fiberIdx | The index of the fiber this vertex was added to. |
| position | The position of the vertex in the vertices vector. |
| fiberHandler | The WFiberHandler of the action. |
Definition at line 29 of file WFiberActionRemoveVertex.cpp.
| WFiberActionRemoveVertex::~WFiberActionRemoveVertex | ( | ) |
Empty destructor.
Definition at line 37 of file WFiberActionRemoveVertex.cpp.
|
virtual |
Redos this action.
Implements WFiberAction.
Definition at line 51 of file WFiberActionRemoveVertex.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:
|
virtual |
Undos this action.
Implements WFiberAction.
Definition at line 41 of file WFiberActionRemoveVertex.cpp.
References WFiberHandler::addVertexToFiberAt(), WMPointConnector::getConnectorData(), WFiberHandler::getPointConnector(), m_fiberHandler, m_fiberIdx, m_position, m_vertex, WFiberHandler::selectLastPoint(), and WMPointConnector::updateAll().
Here is the call graph for this function:
|
private |
The WFiberHandler of the action.
Definition at line 91 of file WFiberActionRemoveVertex.h.
|
private |
The index of the fiber this vertex was added to.
Definition at line 81 of file WFiberActionRemoveVertex.h.
|
private |
The position of the vertex in the vertices vector.
Definition at line 86 of file WFiberActionRemoveVertex.h.
Referenced by undo().
|
private |
The vertex to add.
Definition at line 76 of file WFiberActionRemoveVertex.h.