FlightGear next
sview.cxx File Reference
#include "sview.hxx"
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <Scenery/scenery.hxx>
#include <Viewer/FGEventHandler.hxx>
#include <Viewer/renderer.hxx>
#include <Viewer/WindowBuilder.hxx>
#include <Viewer/WindowSystemAdapter.hxx>
#include <simgear/debug/logstream.hxx>
#include <simgear/math/SGMath.hxx>
#include <simgear/props/props.hxx>
#include <simgear/props/props_io.hxx>
#include <simgear/scene/util/OsgMath.hxx>
#include <simgear/scene/viewer/Compositor.hxx>
#include <osg/CameraView>
#include <osg/GraphicsContext>
#include <osgViewer/CompositeViewer>

Go to the source code of this file.

Classes

struct  SviewPosDir
 
struct  Damping
 
struct  SviewStep
 
struct  Callsign
 
struct  SviewStepAircraft
 
struct  SviewStepMove
 
struct  SviewStepRotate
 
struct  SviewStepMouseDrag
 
struct  SviewStepDirectionMultiply
 
struct  SviewStepCopyToTarget
 
struct  SviewStepNearestTower
 
struct  SviewStepFinal
 
struct  SviewStepAGL
 
struct  SviewStepDouble
 
struct  SviewSteps
 
struct  SviewView
 
struct  SviewViewEyeTarget
 
struct  EventHandler
 

Functions

static std::ostream & operator<< (std::ostream &out, const osg::Vec3f &vec)
 
static std::ostream & operator<< (std::ostream &out, const osg::Quat &quat)
 
static std::ostream & operator<< (std::ostream &out, const osg::Matrixd &matrix)
 
static double legacy_damping_time (double damping)
 
static SGPropertyNode_ptr SviewConfigForCurrentView ()
 
void SviewPush ()
 
void SviewUpdate (double dt)
 
void SviewClear ()
 
std::shared_ptr< SviewViewSviewCreate (SGPropertyNode *config)
 
std::shared_ptr< SviewViewSviewCreate (const SGPropertyNode *config)
 
simgear::compositor::Compositor * SviewGetEventViewport (const osgGA::GUIEventAdapter &ea)
 
void SViewSetCompositorParams (osg::ref_ptr< simgear::SGReaderWriterOptions > options, const std::string &compositor_path)
 
bool SviewMouseMotion (int x, int y, const osgGA::GUIEventAdapter &ea)
 

Variables

static const double pi = 3.141592653589793238463
 
static std::vector< std::shared_ptr< SviewView > > s_views
 
static std::deque< std::shared_ptr< SviewViewEyeTarget > > s_recent_views
 
static osg::ref_ptr< simgear::SGReaderWriterOptions > s_compositor_options
 
static std::string s_compositor_path
 

Function Documentation

◆ legacy_damping_time()

static double legacy_damping_time ( double damping)
static

Definition at line 1067 of file sview.cxx.

◆ operator<<() [1/3]

static std::ostream & operator<< ( std::ostream & out,
const osg::Matrixd & matrix )
static

Definition at line 80 of file sview.cxx.

◆ operator<<() [2/3]

static std::ostream & operator<< ( std::ostream & out,
const osg::Quat & quat )
static

Definition at line 70 of file sview.cxx.

◆ operator<<() [3/3]

static std::ostream & operator<< ( std::ostream & out,
const osg::Vec3f & vec )
static

Definition at line 61 of file sview.cxx.

◆ SviewClear()

void SviewClear ( )

Definition at line 1582 of file sview.cxx.

◆ SviewConfigForCurrentView()

static SGPropertyNode_ptr SviewConfigForCurrentView ( )
static

Definition at line 1480 of file sview.cxx.

◆ SviewCreate() [1/2]

std::shared_ptr< SviewView > SviewCreate ( const SGPropertyNode * config)

Definition at line 1824 of file sview.cxx.

◆ SviewCreate() [2/2]

std::shared_ptr< SviewView > SviewCreate ( SGPropertyNode * config)

Definition at line 1613 of file sview.cxx.

◆ SviewGetEventViewport()

simgear::compositor::Compositor * SviewGetEventViewport ( const osgGA::GUIEventAdapter & ea)

Definition at line 1829 of file sview.cxx.

◆ SviewMouseMotion()

bool SviewMouseMotion ( int x,
int y,
const osgGA::GUIEventAdapter & ea )

Definition at line 1849 of file sview.cxx.

◆ SviewPush()

void SviewPush ( )

Definition at line 1522 of file sview.cxx.

◆ SViewSetCompositorParams()

void SViewSetCompositorParams ( osg::ref_ptr< simgear::SGReaderWriterOptions > options,
const std::string & compositor_path )

Definition at line 1840 of file sview.cxx.

◆ SviewUpdate()

void SviewUpdate ( double dt)

Definition at line 1536 of file sview.cxx.

Variable Documentation

◆ pi

const double pi = 3.141592653589793238463
static

Definition at line 59 of file sview.cxx.

◆ s_compositor_options

osg::ref_ptr<simgear::SGReaderWriterOptions> s_compositor_options
static

Definition at line 1589 of file sview.cxx.

◆ s_compositor_path

std::string s_compositor_path
static

Definition at line 1590 of file sview.cxx.

◆ s_recent_views

std::deque<std::shared_ptr<SviewViewEyeTarget> > s_recent_views
static

Definition at line 1475 of file sview.cxx.

◆ s_views

std::vector<std::shared_ptr<SviewView> > s_views
static

Definition at line 1472 of file sview.cxx.