Path: blob/main/src/netimport/vissim/tempstructs/NIVissimBoundedClusterObject.h
169684 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 NIVissimBoundedClusterObject.h14/// @author Daniel Krajzewicz15/// @date Sept 200216///17// -------------------18/****************************************************************************/19#pragma once20#include <config.h>2122#include <set>23#include <string>242526// ===========================================================================27// class declarations28// ===========================================================================29class Boundary;3031// ===========================================================================32// class definitions33// ===========================================================================34/**35*36*/37class NIVissimBoundedClusterObject {38public:39NIVissimBoundedClusterObject();40virtual ~NIVissimBoundedClusterObject();41virtual void computeBounding() = 0;42bool crosses(const AbstractPoly& poly, double offset = 0) const;43void inCluster(int id);44bool clustered() const;45const Boundary& getBoundary() const;46public:47static void closeLoading();48protected:49typedef std::set<NIVissimBoundedClusterObject*> ContType;50static ContType myDict;51Boundary* myBoundary;52int myClusterID;53};545556