Path: blob/main/src/netedit/elements/additional/GNEAdditionalSquared.h
185790 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file GNEAdditionalSquared.h14/// @author Pablo Alvarez Lopez15/// @date Oct 202516///17// A abstract class for representation of additional squared elements18/****************************************************************************/19#pragma once20#include <config.h>2122#include <utils/gui/images/GUITextureSubSys.h>2324// ===========================================================================25// class declaration26// ===========================================================================2728class GNEAdditional;29class GNEMoveElementView;3031// ===========================================================================32// class definitions33// ===========================================================================3435class GNEAdditionalSquared {3637public:38/// @brief default constructor39GNEAdditionalSquared(GNEAdditional* additional);4041/// @brief parameter constructor42GNEAdditionalSquared(GNEAdditional* additional, const Position pos);4344/// @brief destructor45~GNEAdditionalSquared();4647private:48/// @brief pointer to additional49GNEAdditional* myAdditional;5051protected:52/// @brief position over view53Position myPosOverView;5455/// @brief move element over view56GNEMoveElementView* myMoveElementView = nullptr;5758/// @brief updated squared geometry59void updatedSquaredGeometry();6061/// @brief updated squared centering boundary62void updatedSquaredCenteringBoundary(const bool updateGrid);6364/// @brief draw squared additional65void drawSquaredAdditional(const GUIVisualizationSettings& s, const double size,66GUITexture texture, GUITexture selectedTexture) const;6768private:69/// @brief Invalidated copy constructor.70GNEAdditionalSquared(const GNEAdditionalSquared&) = delete;7172/// @brief Invalidated assignment operator.73GNEAdditionalSquared& operator=(const GNEAdditionalSquared&) = delete;74};757677