Lomse library. API documentation  0.30.0
CmdMoveObjectPoint Class Reference

#include <lomse_command.h>

Inheritance diagram for CmdMoveObjectPoint:
DocCmdSimple DocCommand

Detailed Description

A command for moving an object to another position. This command is not fully coded. Current code assumes that the object is a Tie and the selected point is the first bezier

See constructor for details.

Public Member Functions

 CmdMoveObjectPoint (int pointIndex, UPoint shift, const std::string &name="Move object point")
 
int get_cursor_update_policy () override
 
int get_undo_policy () override
 
int get_selection_update_policy () override
 
- Public Member Functions inherited from DocCmdSimple
virtual ~DocCmdSimple ()
 
bool is_composite () override
 
- Public Member Functions inherited from DocCommand
virtual ~DocCommand ()
 
std::string get_name ()
 
bool is_reversible ()
 
bool is_recordable ()
 
std::string get_error ()
 

Additional Inherited Members

- Public Types inherited from DocCommand
enum  ECmdCursorPolicy
 
enum  ECmdUndoPolicy
 
enum  ECmdSelectionPolicy
 

Constructor & Destructor Documentation

◆ CmdMoveObjectPoint()

CmdMoveObjectPoint::CmdMoveObjectPoint ( int  pointIndex,
UPoint  shift,
const std::string &  name = "Move object point" 
)

This command moves an object to another position.

Warning
This command is not fully coded. Current code assumes that the object is a Tie and the selected point is the first bezier point.
Parameters
pointIndexThe control point (handler) number (0...n-1) to which this command refers to.
shiftThe shift (in logical units) to apply to the handler.
nameThe displayable name for the command. If not specified will be replaced by the string "Move object point".

Member Function Documentation

◆ get_cursor_update_policy()

int CmdMoveObjectPoint::get_cursor_update_policy ( )
inlineoverridevirtual

Returns a value from ECmdCursorPolicy that indicates the update policy followed by this command.

Implements DocCommand.

◆ get_selection_update_policy()

int CmdMoveObjectPoint::get_selection_update_policy ( )
inlineoverridevirtual

Returns a value from ECmdSelectionPolicy that indicates the undo policy followed by this command.

Implements DocCommand.

◆ get_undo_policy()

int CmdMoveObjectPoint::get_undo_policy ( )
inlineoverridevirtual

Returns a value from ECmdUndoPolicy that indicates the undo policy followed by this command.

Implements DocCommand.