Mapper  0.9.0
API documentation
Classes | Static Public Member Functions | List of all members
OpenOrienteering::DistributePointsTool Class Reference

Provides methods to create evenly spaced point objects along a line. More...

#include <distribute_points_tool.h>

Classes

struct  Settings
 Required user input for applying the action. More...
 

Static Public Member Functions

static bool showSettingsDialog (QWidget *parent, const PointSymbol *point, DistributePointsTool::Settings &settings)
 Shows a settings dialog for the tool. More...
 
static void execute (const PathObject *path, PointSymbol *point, const DistributePointsTool::Settings &settings, std::vector< PointObject *> &out_objects)
 Executes the tool on the path, creating points according to settings. More...
 

Detailed Description

Provides methods to create evenly spaced point objects along a line.

Todo:
Integrate implementation of MapEditorController::distributePointsClicked().

Member Function Documentation

◆ execute()

void OpenOrienteering::DistributePointsTool::execute ( const PathObject path,
PointSymbol point,
const DistributePointsTool::Settings settings,
std::vector< PointObject *> &  out_objects 
)
static

Executes the tool on the path, creating points according to settings.

Appends the created objects to the out_objects vector, but does not add them to the map.

◆ showSettingsDialog()

bool OpenOrienteering::DistributePointsTool::showSettingsDialog ( QWidget parent,
const PointSymbol point,
DistributePointsTool::Settings settings 
)
static

Shows a settings dialog for the tool.

If the user presses Ok, returns true and saves the chosen values to settings, otherwise returns false.

The settings parameter is also used as initial values for the dialog. The point symbol is used to determine the enabled state of some options.


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