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

The action when adding multiple Vertices. More...

#include <WFiberActionMultideselect.h>

+ Inheritance diagram for WFiberActionMultideselect:
+ Collaboration diagram for WFiberActionMultideselect:

Public Types

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

 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...
 
WFiberHandlerm_fiberHandler
 The WFiberHandler of the action. More...
 

Detailed Description

The action when adding multiple Vertices.

Definition at line 40 of file WFiberActionMultideselect.h.

Member Typedef Documentation

◆ SPtr

A shared_ptr to this class.

Definition at line 46 of file WFiberActionMultideselect.h.

Constructor & Destructor Documentation

◆ WFiberActionMultideselect()

WFiberActionMultideselect::WFiberActionMultideselect ( std::vector< osg::Vec3 >  vertices,
size_t  fiberIdx,
WFiberHandler fiberHandler 
)

Creates this action.

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

Definition at line 31 of file WFiberActionMultideselect.cpp.

◆ ~WFiberActionMultideselect()

WFiberActionMultideselect::~WFiberActionMultideselect ( )

Empty destructor.

Definition at line 38 of file WFiberActionMultideselect.cpp.

Member Function Documentation

◆ redo()

void WFiberActionMultideselect::redo ( )
virtual

◆ undo()

void WFiberActionMultideselect::undo ( )
virtual

Member Data Documentation

◆ m_fiberHandler

WFiberHandler* WFiberActionMultideselect::m_fiberHandler
private

The WFiberHandler of the action.

Definition at line 85 of file WFiberActionMultideselect.h.

Referenced by redo(), and undo().

◆ m_fiberIdx

size_t WFiberActionMultideselect::m_fiberIdx
private

The index of the fiber this vertex was added to.

Definition at line 80 of file WFiberActionMultideselect.h.

Referenced by redo(), and undo().

◆ m_vertices

std::vector< osg::Vec3 > WFiberActionMultideselect::m_vertices
private

The vertices to add.

Definition at line 75 of file WFiberActionMultideselect.h.

Referenced by redo(), and undo().


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