Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEMoveElementViewResizable.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// Class used for elements that can be moved over view and resized
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
23#include "GNEMoveElementView.h"
24
25// ===========================================================================
26// class definitions
27// ===========================================================================
28
30
31public:
33 enum class ResizingFormat {
36 };
37
40 ResizingFormat resizingFormat, SumoXMLAttr posAttr,
41 Position& position, double& width, double& height);
42
45
50
51// temporal
52//protected:
55
58
61
64
67
70
71private:
73 double& myWidth;
74
76 double& myHeight;
77
79 const double myEditWidth = false;
80
82 const double myEditHeight = false;
83
85 const double myEditLength = false;
86
88 void setMoveShape(const GNEMoveResult& moveResult) override;
89
91 void commitMoveShape(const GNEMoveResult& moveResult, GNEUndoList* undoList) override;
92
95
98};
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
AttributesFormat
attributes format
friend class GNEMoveElementViewResizable
resizable needs access
GNEContour myMovingContourLeft
variable used for moving geometry point contour left
GNEContour myMovingContourRight
variable used for moving geometry point contour right
GNEContour myMovingContourUp
variable used for moving geometry point contour up
void setMoveShape(const GNEMoveResult &moveResult) override
set move shape
GNEContour myMovingContourDown
variable used for moving geometry point contour down
PositionVector myShapeWidth
shape width
const double myEditLength
check if length can be edited
const double myEditWidth
check if width can be edited
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList) override
commit move shape
GNEMoveElementViewResizable & operator=(const GNEMoveElementViewResizable &)=delete
Invalidated assignment operator.
GNEMoveOperation * getMoveOperation()
get move operation
GNEMoveElementViewResizable(const GNEMoveElementViewResizable &)=delete
Invalidated copy constructor.
PositionVector myShapeHeight
shape height
const double myEditHeight
check if height can be edited
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
A list of positions.