25 #ifndef WFIBERACTIONREMOVEFIBER_H
26 #define WFIBERACTIONREMOVEFIBER_H
33 #include "../WFiberHandler.h"
34 #include "WFiberAction.h"
46 typedef std::shared_ptr< WFiberActionRemoveFiber >
SPtr;
The action when removing a fiber.
WFiberHandler * m_fiberHandler
The WFiberHandler of the action.
std::shared_ptr< WFiberActionRemoveFiber > SPtr
A shared_ptr to this class.
size_t m_position
The position of this fiber in the fibers vector.
WFiberActionRemoveFiber(std::string name, size_t position, WFiberHandler::PCFiber fiber, bool hidden, WFiberHandler *fiberHandler)
Creates this action.
std::string m_name
The name of the fiber.
WFiberHandler::PCFiber m_fiber
The fiber that was removed.
bool m_hidden
Whether the fiber is hidden.
~WFiberActionRemoveFiber()
Empty destructor.
virtual void redo()
Redos this action.
virtual void undo()
Undos this action.
Super class for the actions.
Handles the fibers of the WMPointsConnector.
std::vector< osg::Vec3 > PCFiber
Vector of 3D vectors, representing points.