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

The action when adding a Vertex. More...

#include <WFiberActionAddVertex.h>

+ Inheritance diagram for WFiberActionAddVertex:
+ Collaboration diagram for WFiberActionAddVertex:

Public Types

typedef std::shared_ptr< WFiberActionAddVertexSPtr
 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

 WFiberActionAddVertex (osg::Vec3 vertex, size_t fiberIdx, WFiberHandler *fiberHandler)
 Creates this action. More...
 
 ~WFiberActionAddVertex ()
 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...
 
WFiberHandlerm_fiberHandler
 The WFiberHandler of the action. More...
 

Detailed Description

The action when adding a Vertex.

Definition at line 39 of file WFiberActionAddVertex.h.

Member Typedef Documentation

◆ SPtr

A shared_ptr to this class.

Definition at line 45 of file WFiberActionAddVertex.h.

Constructor & Destructor Documentation

◆ WFiberActionAddVertex()

WFiberActionAddVertex::WFiberActionAddVertex ( osg::Vec3  vertex,
size_t  fiberIdx,
WFiberHandler fiberHandler 
)

Creates this action.

Parameters
vertexThe vertex to add.
fiberIdxThe index of the fiber this vertex was added to.
fiberHandlerThe WFiberHandler of the action.

Definition at line 29 of file WFiberActionAddVertex.cpp.

◆ ~WFiberActionAddVertex()

WFiberActionAddVertex::~WFiberActionAddVertex ( )

Empty destructor.

Definition at line 36 of file WFiberActionAddVertex.cpp.

Member Function Documentation

◆ redo()

void WFiberActionAddVertex::redo ( )
virtual

◆ undo()

void WFiberActionAddVertex::undo ( )
virtual

Member Data Documentation

◆ m_fiberHandler

WFiberHandler* WFiberActionAddVertex::m_fiberHandler
private

The WFiberHandler of the action.

Definition at line 84 of file WFiberActionAddVertex.h.

Referenced by redo(), and undo().

◆ m_fiberIdx

size_t WFiberActionAddVertex::m_fiberIdx
private

The index of the fiber this vertex was added to.

Definition at line 79 of file WFiberActionAddVertex.h.

Referenced by redo(), and undo().

◆ m_vertex

osg::Vec3 WFiberActionAddVertex::m_vertex
private

The vertex to add.

Definition at line 74 of file WFiberActionAddVertex.h.

Referenced by redo(), and undo().


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