![]() |
OpenWalnut
1.5.0dev
|
The action when adding multiple Vertices. More...
#include <WFiberActionMultideselect.h>
Inheritance diagram for WFiberActionMultideselect:
Collaboration diagram for WFiberActionMultideselect:Public Types | |
| typedef std::shared_ptr< WFiberActionMultideselect > | 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 | |
| WFiberActionMultideselect (std::vector< osg::Vec3 > vertices, size_t fiberIdx, WFiberHandler *fiberHandler) | |
| Creates this action. More... | |
| ~WFiberActionMultideselect () | |
| 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 | |
| std::vector< osg::Vec3 > | m_vertices |
| The vertices 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 multiple Vertices.
Definition at line 40 of file WFiberActionMultideselect.h.
| typedef std::shared_ptr< WFiberActionMultideselect > WFiberActionMultideselect::SPtr |
A shared_ptr to this class.
Definition at line 46 of file WFiberActionMultideselect.h.
| WFiberActionMultideselect::WFiberActionMultideselect | ( | std::vector< osg::Vec3 > | vertices, |
| size_t | fiberIdx, | ||
| WFiberHandler * | fiberHandler | ||
| ) |
Creates this action.
| vertices | A vector of vertices to add. |
| fiberIdx | The index of the fiber this vertex was added to. |
| fiberHandler | The WFiberHandler of the action. |
Definition at line 31 of file WFiberActionMultideselect.cpp.
| WFiberActionMultideselect::~WFiberActionMultideselect | ( | ) |
Empty destructor.
Definition at line 38 of file WFiberActionMultideselect.cpp.
|
virtual |
Redos this action.
Implements WFiberAction.
Definition at line 52 of file WFiberActionMultideselect.cpp.
References WMPointConnector::getConnectorData(), WFiberHandler::getPointConnector(), m_fiberHandler, m_fiberIdx, m_vertices, WFiberHandler::removeVerticesFromFiber(), WFiberHandler::selectLastPoint(), and WMPointConnector::updateAll().
Here is the call graph for this function:
|
virtual |
Undos this action.
Implements WFiberAction.
Definition at line 42 of file WFiberActionMultideselect.cpp.
References WFiberHandler::addVerticesToFiber(), WMPointConnector::getConnectorData(), WFiberHandler::getPointConnector(), m_fiberHandler, m_fiberIdx, m_vertices, WFiberHandler::selectLastPoint(), and WMPointConnector::updateAll().
Here is the call graph for this function:
|
private |
The WFiberHandler of the action.
Definition at line 85 of file WFiberActionMultideselect.h.
|
private |
The index of the fiber this vertex was added to.
Definition at line 80 of file WFiberActionMultideselect.h.
|
private |
The vertices to add.
Definition at line 75 of file WFiberActionMultideselect.h.