OpenLexocad  27.1
OpenLxCmd::CmdAddStructuralAction Class Reference

#include <CmdAddStructuralAction.h>

Inheritance diagram for OpenLxCmd::CmdAddStructuralAction:
Core::Command OpenLxCmd::CmdAddStructuralCurveAction OpenLxCmd::CmdAddStructuralPlanarAction OpenLxCmd::CmdAddStructuralPointAction

Public Member Functions

 CmdAddStructuralAction ()=default
 
 CmdAddStructuralAction (Core::Command *command)
 
 ~CmdAddStructuralAction ()=default
 
bool redo () override
 
bool undo () override
 
std::shared_ptr< OpenLxApp::ElementgetNewElement () const
 
- Public Member Functions inherited from Core::Command
 Command ()
 
virtual ~Command ()
 
virtual void serialize (std::ostream &, const unsigned int)
 
Base::String getDescription () const
 
void setDescription (const Base::String &s)
 
void setParameter (const std::string &key, const Core::Variant &value)
 
bool getParameter (const std::string &key, Core::Variant &value) const
 
void setSilentMode (bool on)
 
bool isInSilentMode () const
 
void setDoRecomputeInRedo (bool on)
 
void setDoRecomputeInUndo (bool on)
 
bool getDoRecomputeInRedo () const
 
bool getDoRecomputeInUndo () const
 
void setDone (bool yes)
 
bool isDone () const
 

Protected Attributes

std::unique_ptr< Core::Command_cmd
 

Constructor & Destructor Documentation

◆ CmdAddStructuralAction() [1/2]

OpenLxCmd::CmdAddStructuralAction::CmdAddStructuralAction ( )
default

◆ CmdAddStructuralAction() [2/2]

OpenLxCmd::CmdAddStructuralAction::CmdAddStructuralAction ( Core::Command command)
explicit

◆ ~CmdAddStructuralAction()

OpenLxCmd::CmdAddStructuralAction::~CmdAddStructuralAction ( )
default

Member Function Documentation

◆ getNewElement()

std::shared_ptr<OpenLxApp::Element> OpenLxCmd::CmdAddStructuralAction::getNewElement ( ) const

◆ redo()

bool OpenLxCmd::CmdAddStructuralAction::redo ( )
overridevirtual

Reimplemented from Core::Command.

◆ undo()

bool OpenLxCmd::CmdAddStructuralAction::undo ( )
overridevirtual

Reimplemented from Core::Command.

Member Data Documentation

◆ _cmd

std::unique_ptr<Core::Command> OpenLxCmd::CmdAddStructuralAction::_cmd
protected

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