25 #include "../WConnectorData.h"
26 #include "WFiberActionRemoveVertex.h"
31 m_fiberIdx( fiberIdx ),
32 m_position( position ),
33 m_fiberHandler( fiberHandler )
size_t m_position
The position of the vertex in the vertices vector.
virtual void redo()
Redos this action.
WFiberActionRemoveVertex(osg::Vec3 vertex, size_t fiberIdx, size_t position, WFiberHandler *fiberHandler)
Creates this action.
virtual void undo()
Undos this action.
WFiberHandler * m_fiberHandler
The WFiberHandler of the action.
osg::Vec3 m_vertex
The vertex to add.
size_t m_fiberIdx
The index of the fiber this vertex was added to.
~WFiberActionRemoveVertex()
Empty destructor.
Handles the fibers of the WMPointsConnector.
void selectLastPoint()
Selects the last point of the currently selected fiber.
void addVertexToFiberAt(osg::Vec3 vertex, size_t fiberIdx, size_t position, bool silent=false)
Adds a vertex to the currently selected fiber.
void removeVertexFromFiber(osg::Vec3 vertex, size_t fiberIdx, bool silent=false)
Removes a vertex from the currently selected fiber.
WMPointConnector * getPointConnector()
void updateAll()
Updates all.
std::shared_ptr< WConnectorData > getConnectorData()