Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIOSGHeader.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-2026 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// Headers for OSG -- Oldest supported version is OSG 3.2.1
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
23#ifdef HAVE_OSG
24
25// avoid certain warnings in MSVC
26#ifdef _MSC_VER
27// avoid warnings in clang
28#ifdef __clang__
29#pragma clang system_header
30#endif
31#pragma warning(push, 0)
32#pragma warning(disable: 4275) // do not warn about the DLL interface for OSG
33#pragma warning(disable: 4005) // do not warn about macro redefinition
34#endif
35
36// OSG Headers
37#include <osg/ComputeBoundsVisitor>
38#include <osg/Geode>
39#include <osg/Geometry>
40#include <osg/Group>
41#include <osg/Light>
42#include <osg/LightSource>
43#include <osg/Material>
44#include <osg/MatrixTransform>
45#include <osg/Node>
46#include <osg/PositionAttitudeTransform>
47#include <osg/Sequence>
48#include <osg/ShadeModel>
49#include <osg/State>
50#include <osg/ShapeDrawable>
51#include <osg/Texture2D>
52#include <osg/Vec4>
53#include <osg/Version>
54#include <osg/ref_ptr>
55#include <osgDB/ReadFile>
56#include <osgDB/WriteFile>
57#include <osgGA/FirstPersonManipulator>
58#include <osgGA/KeySwitchMatrixManipulator>
59//#include <osgGA/NodeTrackerManipulator>
60#include <osgGA/StandardManipulator>
61#include <osgGA/TerrainManipulator>
62//#include <osgGA/TrackballManipulator>
63#include <osgText/FadeText>
64#include <osgUtil/Optimizer>
65#include <osgUtil/Tessellator>
66#include <osgUtil/SmoothingVisitor>
67#include <osgViewer/Viewer>
68#include <osgViewer/CompositeViewer>
69#include <osgViewer/ViewerEventHandlers>
70
71// pop MSVC warnings
72#ifdef _MSC_VER
73#pragma warning(pop)
74#endif
75
76#endif