AGX Dynamics  2.37.3.2
agxOSG::CameraData Struct Reference

#include <ExampleApplication.h>

Public Member Functions

 CameraData (const osg::Camera *camera)
 Uses camera view matrix for eye, center and up. More...
 
 CameraData (const osgViewer::Viewer *viewer)
 Uses camera manipulator for eye, center and up. More...
 
void applyTo (osg::Camera *camera) const
 Apply current settings to a camera. More...
 
void applyTo (osgViewer::Viewer *viewer) const
 Apply current settings to a viewer which assigns home position of the camera manipulator. More...
 

Public Attributes

double aspectRatio
 
agx::Vec3 center
 
agx::Vec3 eye
 
double farClippingPlane
 
double fieldOfView
 
double nearClippingPlane
 
double nearFarRatio
 
agx::Vec3 up
 
bool valid
 

Detailed Description

Definition at line 265 of file ExampleApplication.h.

Constructor & Destructor Documentation

◆ CameraData() [1/2]

agxOSG::CameraData::CameraData ( const osg::Camera *  camera)

Uses camera view matrix for eye, center and up.

◆ CameraData() [2/2]

agxOSG::CameraData::CameraData ( const osgViewer::Viewer *  viewer)

Uses camera manipulator for eye, center and up.

Member Function Documentation

◆ applyTo() [1/2]

void agxOSG::CameraData::applyTo ( osg::Camera *  camera) const

Apply current settings to a camera.

◆ applyTo() [2/2]

void agxOSG::CameraData::applyTo ( osgViewer::Viewer *  viewer) const

Apply current settings to a viewer which assigns home position of the camera manipulator.

Member Data Documentation

◆ aspectRatio

double agxOSG::CameraData::aspectRatio

Definition at line 290 of file ExampleApplication.h.

◆ center

agx::Vec3 agxOSG::CameraData::center

Definition at line 295 of file ExampleApplication.h.

◆ eye

agx::Vec3 agxOSG::CameraData::eye

Definition at line 294 of file ExampleApplication.h.

◆ farClippingPlane

double agxOSG::CameraData::farClippingPlane

Definition at line 288 of file ExampleApplication.h.

◆ fieldOfView

double agxOSG::CameraData::fieldOfView

Definition at line 289 of file ExampleApplication.h.

◆ nearClippingPlane

double agxOSG::CameraData::nearClippingPlane

Definition at line 287 of file ExampleApplication.h.

◆ nearFarRatio

double agxOSG::CameraData::nearFarRatio

Definition at line 292 of file ExampleApplication.h.

◆ up

agx::Vec3 agxOSG::CameraData::up

Definition at line 296 of file ExampleApplication.h.

◆ valid

bool agxOSG::CameraData::valid

Definition at line 291 of file ExampleApplication.h.


The documentation for this struct was generated from the following file: