OpenWalnut  1.5.0dev
Public Types | Public Member Functions | Private Attributes | List of all members
WFiberActionRemoveVertex Class Reference

The action when removing a Vertex. More...

#include <WFiberActionRemoveVertex.h>

+ Inheritance diagram for WFiberActionRemoveVertex:
+ Collaboration diagram for WFiberActionRemoveVertex:

Public Types

typedef std::shared_ptr< WFiberActionRemoveVertexSPtr
 A shared_ptr to this class. More...
 
- Public Types inherited from WFiberAction
typedef std::shared_ptr< WFiberActionSPtr
 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...
 
WFiberHandlerm_fiberHandler
 The WFiberHandler of the action. More...
 

Detailed Description

The action when removing a Vertex.

Definition at line 40 of file WFiberActionRemoveVertex.h.

Member Typedef Documentation

◆ SPtr

A shared_ptr to this class.

Definition at line 46 of file WFiberActionRemoveVertex.h.

Constructor & Destructor Documentation

◆ WFiberActionRemoveVertex()

WFiberActionRemoveVertex::WFiberActionRemoveVertex ( osg::Vec3  vertex,
size_t  fiberIdx,
size_t  position,
WFiberHandler fiberHandler 
)

Creates this action.

Parameters
vertexThe vertex to add.
fiberIdxThe index of the fiber this vertex was added to.
positionThe position of the vertex in the vertices vector.
fiberHandlerThe WFiberHandler of the action.

Definition at line 29 of file WFiberActionRemoveVertex.cpp.

◆ ~WFiberActionRemoveVertex()

WFiberActionRemoveVertex::~WFiberActionRemoveVertex ( )

Empty destructor.

Definition at line 37 of file WFiberActionRemoveVertex.cpp.

Member Function Documentation

◆ redo()

void WFiberActionRemoveVertex::redo ( )
virtual

◆ undo()

void WFiberActionRemoveVertex::undo ( )
virtual

Member Data Documentation

◆ m_fiberHandler

WFiberHandler* WFiberActionRemoveVertex::m_fiberHandler
private

The WFiberHandler of the action.

Definition at line 91 of file WFiberActionRemoveVertex.h.

Referenced by redo(), and undo().

◆ m_fiberIdx

size_t WFiberActionRemoveVertex::m_fiberIdx
private

The index of the fiber this vertex was added to.

Definition at line 81 of file WFiberActionRemoveVertex.h.

Referenced by redo(), and undo().

◆ m_position

size_t WFiberActionRemoveVertex::m_position
private

The position of the vertex in the vertices vector.

Definition at line 86 of file WFiberActionRemoveVertex.h.

Referenced by undo().

◆ m_vertex

osg::Vec3 WFiberActionRemoveVertex::m_vertex
private

The vertex to add.

Definition at line 76 of file WFiberActionRemoveVertex.h.

Referenced by redo(), and undo().


The documentation for this class was generated from the following files: