osgViewer/ViewerEventHandlers
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGVIEWER_VIEWEREVENTHANDLERS
#define OSGVIEWER_VIEWEREVENTHANDLERS 1
#include <osg/AnimationPath>
#include <osgText/Text>
#include <osgGA/GUIEventHandler>
#include <osgGA/AnimationPathManipulator>
#include <osgViewer/GraphicsWindow>
#include <osgViewer/Viewer>
#include <osgDB/fstream>
namespace osgViewer {
class OSGVIEWER_EXPORT HelpHandler : public osgGA::GUIEventHandler
{
public:
HelpHandler(osg::ApplicationUsage* au=0);
void setApplicationUsage(osg::ApplicationUsage* au) { _applicationUsage = au; }
osg::ApplicationUsage* getApplicationUsage() { return _applicationUsage.get(); }
const osg::ApplicationUsage* getApplicationUsage() const { return _applicationUsage.get(); }
void setKeyEventTogglesOnScreenHelp(int key) { _keyEventTogglesOnScreenHelp = key; }
int getKeyEventTogglesOnScreenHelp() const { return _keyEventTogglesOnScreenHelp; }
void reset();
osg::Camera* getCamera() { return _camera.get(); }
const osg::Camera* getCamera() const { return _camera.get(); }
bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);
virtual void getUsage(osg::ApplicationUsage& usage) const;
protected:
void setUpHUDCamera(osgViewer::ViewerBase* viewer);
void setUpScene(osgViewer::ViewerBase* viewer);
osg::ref_ptr<osg::ApplicationUsage> _applicationUsage;
int _keyEventTogglesOnScreenHelp;
bool _helpEnabled;
bool _initialized;
osg::ref_ptr<osg::Camera> _camera;
osg::ref_ptr<osg::Switch> _switch;
};
class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
{
public:
StatsHandler();
enum StatsType
{
NO_STATS = 0,
FRAME_RATE = 1,
VIEWER_STATS = 2,
CAMERA_SCENE_STATS = 3,
VIEWER_SCENE_STATS = 4,
LAST = 5
};
void setKeyEventTogglesOnScreenStats(int key) { _keyEventTogglesOnScreenStats = key; }
int getKeyEventTogglesOnScreenStats() const { return _keyEventTogglesOnScreenStats; }
void setKeyEventPrintsOutStats(int key) { _keyEventPrintsOutStats = key; }
int getKeyEventPrintsOutStats() const { return _keyEventPrintsOutStats; }
double getBlockMultiplier() const { return _blockMultiplier; }
void reset();
osg::Camera* getCamera() { return _camera.get(); }
const osg::Camera* getCamera() const { return _camera.get(); }
virtual void collectWhichCamerasToRenderStatsFor(osgViewer::ViewerBase* viewer, osgViewer::ViewerBase::Cameras& cameras);
virtual bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);
virtual void getUsage(osg::ApplicationUsage& usage) const;
void addUserStatsLine(const std::string& label, const osg::Vec4& textColor, const osg::Vec4& barColor,
const std::string& timeTakenName, float multiplier, bool average, bool averageInInverseSpace,
const std::string& beginTimeName, const std::string& endTimeName, float maxValue);
void removeUserStatsLine(const std::string& label);
protected:
void setUpHUDCamera(osgViewer::ViewerBase* viewer);
void setWindowSize(int width, int height);
osg::Geometry* createBackgroundRectangle(const osg::Vec3& pos, const float width, const float height, osg::Vec4& color);
osg::Geometry* createGeometry(const osg::Vec3& pos, float height, const osg::Vec4& colour, unsigned int numBlocks);
osg::Geometry* createFrameMarkers(const osg::Vec3& pos, float height, const osg::Vec4& colour, unsigned int numBlocks);
osg::Geometry* createTick(const osg::Vec3& pos, float height, const osg::Vec4& colour, unsigned int numTicks);
void createTimeStatsLine(const std::string& lineLabel, osg::Vec3 pos,
const osg::Vec4& textColor, const osg::Vec4& barColor, osg::Stats* viewerStats, osg::Stats* stats,
const std::string& timeTakenName, float multiplier, bool average, bool averageInInverseSpace,
const std::string& beginTimeName, const std::string& endTimeName);
void createCameraTimeStats(osg::Vec3& pos, bool acquireGPUStats, osg::Stats* viewerStats, osg::Camera* camera);
void setUpScene(osgViewer::ViewerBase* viewer);
void updateThreadingModelText();
int _keyEventTogglesOnScreenStats;
int _keyEventPrintsOutStats;
int _statsType;
bool _initialized;
osg::ref_ptr<osg::Camera> _camera;
osg::ref_ptr<osg::Switch> _switch;
osg::ref_ptr<osg::Geode> _statsGeode;
ViewerBase::ThreadingModel _threadingModel;
osg::ref_ptr<osgText::Text> _threadingModelText;
unsigned int _frameRateChildNum;
unsigned int _viewerChildNum;
unsigned int _cameraSceneChildNum;
unsigned int _viewerSceneChildNum;
unsigned int _numBlocks;
double _blockMultiplier;
float _statsWidth;
float _statsHeight;
std::string _font;
float _startBlocks;
float _leftPos;
float _characterSize;
float _lineHeight;
struct UserStatsLine
{
std::string label;
osg::Vec4 textColor;
osg::Vec4 barColor;
std::string timeTakenName;
float multiplier;
bool average;
bool averageInInverseSpace;
std::string beginTimeName;
std::string endTimeName;
float maxValue;
UserStatsLine(const std::string& label_, const osg::Vec4& textColor_, const osg::Vec4& barColor_,
const std::string& timeTakenName_, float multiplier_, bool average_, bool averageInInverseSpace_,
const std::string& beginTimeName_, const std::string& endTimeName_, float maxValue_)
: label(label_), textColor(textColor_), barColor(barColor_),
timeTakenName(timeTakenName_), multiplier(multiplier_), average(average_), averageInInverseSpace(averageInInverseSpace_),
beginTimeName(beginTimeName_), endTimeName(endTimeName_), maxValue(maxValue_)
{
}
};
typedef std::vector<UserStatsLine> UserStatsLines;
UserStatsLines _userStatsLines;
};
class OSGVIEWER_EXPORT WindowSizeHandler : public osgGA::GUIEventHandler
{
public:
WindowSizeHandler();
virtual void getUsage(osg::ApplicationUsage &usage) const;
void setKeyEventToggleFullscreen(int key) { _keyEventToggleFullscreen = key; }
int getKeyEventToggleFullscreen() const { return _keyEventToggleFullscreen; }
void setToggleFullscreen(bool flag) { _toggleFullscreen = flag; }
bool getToggleFullscreen() const { return _toggleFullscreen; }
void setKeyEventWindowedResolutionUp(int key) { _keyEventWindowedResolutionUp = key; }
int getKeyEventWindowedResolutionUp() const { return _keyEventWindowedResolutionUp; }
void setKeyEventWindowedResolutionDown(int key) { _keyEventWindowedResolutionDown = key; }
int getKeyEventWindowedResolutionDown() const { return _keyEventWindowedResolutionDown; }
void setChangeWindowedResolution(bool flag) { _changeWindowedResolution = flag; }
bool getChangeWindowedResolution() const { return _changeWindowedResolution; }
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa);
protected:
void toggleFullscreen(osgViewer::GraphicsWindow *window);
void changeWindowedResolution(osgViewer::GraphicsWindow *window, bool increase);
unsigned int getNearestResolution(int screenWidth, int screenHeight, int width, int height) const;
int _keyEventToggleFullscreen;
bool _toggleFullscreen;
int _keyEventWindowedResolutionUp;
int _keyEventWindowedResolutionDown;
bool _changeWindowedResolution;
std::vector<osg::Vec2> _resolutionList;
int _currentResolutionIndex;
};
class OSGVIEWER_EXPORT ThreadingHandler : public osgGA::GUIEventHandler
{
public:
ThreadingHandler();
virtual void getUsage(osg::ApplicationUsage &usage) const;
void setKeyEventChangeThreadingModel(int key) { _keyEventChangeThreadingModel = key; }
int getKeyEventChangeThreadingModel() const { return _keyEventChangeThreadingModel; }
void setChangeThreadingModel(bool flag) { _changeThreadingModel = flag; }
bool getChangeThreadingModel() const { return _changeThreadingModel; }
void setKeyEventChangeEndBarrierPosition(int key) { _keyEventChangeEndBarrierPosition = key; }
int getKeyEventChangeEndBarrierPosition() const { return _keyEventChangeEndBarrierPosition; }
void setChangeEndBarrierPosition(bool flag) { _changeEndBarrierPosition = flag; }
bool getChangeEndBarrierPosition() const { return _changeEndBarrierPosition; }
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa);
protected:
int _keyEventChangeThreadingModel;
bool _changeThreadingModel;
int _keyEventChangeEndBarrierPosition;
bool _changeEndBarrierPosition;
osg::Timer_t _tickOrLastKeyPress;
};
class OSGVIEWER_EXPORT RecordCameraPathHandler : public osgGA::GUIEventHandler
{
public:
RecordCameraPathHandler(const std::string &filename = "saved_animation.path", float fps = 25.0f);
void setKeyEventToggleRecord(int key) { _keyEventToggleRecord = key; }
int getKeyEventToggleRecord() const { return _keyEventToggleRecord; }
void setKeyEventTogglePlayback(int key) { _keyEventTogglePlayback = key; }
int getKeyEventTogglePlayback() const { return _keyEventTogglePlayback; }
void setAutoIncrementFilename( bool autoinc = true ) { _autoinc = autoinc?0:-1; }
virtual void getUsage(osg::ApplicationUsage &usage) const;
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa);
protected:
std::string _filename;
int _autoinc;
osgDB::ofstream _fout;
int _keyEventToggleRecord;
int _keyEventTogglePlayback;
bool _currentlyRecording;
bool _currentlyPlaying;
double _interval;
double _delta;
osg::Timer_t _animStartTime;
osg::Timer_t _lastFrameTime;
osg::ref_ptr<osg::AnimationPath> _animPath;
osg::ref_ptr<osgGA::AnimationPathManipulator> _animPathManipulator;
osg::ref_ptr<osgGA::CameraManipulator> _oldManipulator;
};
class OSGVIEWER_EXPORT LODScaleHandler : public osgGA::GUIEventHandler
{
public:
LODScaleHandler();
void setKeyEventIncreaseLODScale(int key) { _keyEventIncreaseLODScale = key; }
int getKeyEventIncreaseLODScale() const { return _keyEventIncreaseLODScale; }
void setKeyEventDecreaseLODScale(int key) { _keyEventDecreaseLODScale = key; }
int getKeyEventDecreaseLODScale() const { return _keyEventDecreaseLODScale; }
bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);
virtual void getUsage(osg::ApplicationUsage& usage) const;
protected:
int _keyEventIncreaseLODScale;
int _keyEventDecreaseLODScale;
};
class OSGVIEWER_EXPORT ToggleSyncToVBlankHandler : public osgGA::GUIEventHandler
{
public:
ToggleSyncToVBlankHandler();
void setKeyEventToggleSyncToVBlankHandler(int key) { _keyEventToggleSyncToVBlank = key; }
int getKeyEventToggleSyncToVBlankHandler() const { return _keyEventToggleSyncToVBlank; }
bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);
virtual void getUsage(osg::ApplicationUsage& usage) const;
protected:
int _keyEventToggleSyncToVBlank;
};
class OSGVIEWER_EXPORT ScreenCaptureHandler : public osgGA::GUIEventHandler
{
public:
class CaptureOperation : public osg::Referenced
{
public:
virtual void operator()(const osg::Image& image, const unsigned int context_id) = 0;
};
class OSGVIEWER_EXPORT WriteToFile : public CaptureOperation
{
public:
enum SavePolicy
{
OVERWRITE,
SEQUENTIAL_NUMBER
// ... any others?
};
WriteToFile(const std::string& filename, const std::string& extension, SavePolicy savePolicy = SEQUENTIAL_NUMBER);
virtual void operator()(const osg::Image& image, const unsigned int context_id);
void setSavePolicy(SavePolicy savePolicy) { _savePolicy = savePolicy; }
SavePolicy getSavePolicy() const { return _savePolicy; }
protected:
WriteToFile& operator = (const WriteToFile&) { return *this; }
const std::string _filename;
const std::string _extension;
SavePolicy _savePolicy;
std::vector<unsigned int> _contextSaveCounter;
};
ScreenCaptureHandler(CaptureOperation* defaultOperation = 0, int numFrames = 1);
void setKeyEventTakeScreenShot(int key) { _keyEventTakeScreenShot = key; }
int getKeyEventTakeScreenShot() const { return _keyEventTakeScreenShot; }
void setKeyEventToggleContinuousCapture(int key) { _keyEventToggleContinuousCapture = key; }
int getKeyEventToggleContinuousCapture() const { return _keyEventToggleContinuousCapture; }
void setCaptureOperation(CaptureOperation* operation);
CaptureOperation* getCaptureOperation() const;
// aa will point to an osgViewer::View, so we will take a screenshot
// of that view's graphics contexts.
virtual bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);
virtual void captureNextFrame(osgViewer::ViewerBase& viewer);
void setFramesToCapture(int numFrames);
int getFramesToCapture() const;
void startCapture();
void stopCapture();
virtual void getUsage(osg::ApplicationUsage& usage) const;
protected:
bool _startCapture;
bool _stopCapture;
int _keyEventTakeScreenShot;
int _keyEventToggleContinuousCapture;
// there could be a key to start taking screenshots every new frame
osg::ref_ptr<CaptureOperation> _operation;
osg::ref_ptr<osg::Camera::DrawCallback> _callback;
void addCallbackToViewer(osgViewer::ViewerBase& viewer);
void removeCallbackFromViewer(osgViewer::ViewerBase& viewer);
osg::Camera* findAppropriateCameraForCallback(osgViewer::ViewerBase& viewer);
};
class OSGVIEWER_EXPORT InteractiveImageHandler : public osgGA::GUIEventHandler, public osg::DrawableCullCallback
{
public:
InteractiveImageHandler(osg::Image* image);
InteractiveImageHandler(osg::Image* image, osg::Texture2D* texture, osg::Camera* camera);
META_Object(osgViewer, InteractiveImageHandler);
virtual NodeCallback* asNodeCallback() { return osg::NodeCallback::asNodeCallback(); }
virtual const NodeCallback* asNodeCallback() const { return osg::NodeCallback::asNodeCallback(); }
virtual DrawableEventCallback* asDrawableEventCallback() { return osg::DrawableEventCallback::asDrawableEventCallback(); }
virtual const DrawableEventCallback* asDrawableEventCallback() const { return osg::DrawableEventCallback::asDrawableEventCallback(); }
virtual DrawableCullCallback* asDrawableCullCallback() { return osg::DrawableCullCallback::asDrawableCullCallback(); }
virtual const DrawableCullCallback* asDrawableCullCallback() const { return osg::DrawableCullCallback::asDrawableCullCallback(); }
virtual osgGA::EventHandler* asEventHandler() { return osgGA::EventHandler::asEventHandler(); }
virtual const osgGA::EventHandler* asEventHandler() const { return osgGA::EventHandler::asEventHandler(); }
// use the osgGA::GUIEventHandler implementation of run.
virtual bool run(osg::Object* object, osg::Object* data) { return osgGA::GUIEventHandler::run(object, data); }
virtual bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& aa, osg::Object*, osg::NodeVisitor* nv);
virtual bool cull(osg::NodeVisitor* nv, osg::Drawable* drawable, osg::RenderInfo* renderInfo) const;
protected:
virtual ~InteractiveImageHandler() {}
InteractiveImageHandler():
_fullscreen(false) {}
InteractiveImageHandler(const InteractiveImageHandler&,const osg::CopyOp& = osg::CopyOp::SHALLOW_COPY):
osg::Object(), osg::Callback(), osgGA::GUIEventHandler(), osg::DrawableCullCallback(), _fullscreen(false) {}
bool mousePosition(osgViewer::View* view, osg::NodeVisitor* nv, const osgGA::GUIEventAdapter& ea, int& x, int &y) const;
void resize(int width, int height);
osg::observer_ptr<osg::Image> _image;
osg::observer_ptr<osg::Texture2D> _texture;
bool _fullscreen;
osg::observer_ptr<osg::Camera> _camera;
};
}
#endif
AnimationPathManipulator
AnimationPath
GUIEventHandler
GraphicsWindow
Text
Viewer
osgDB::ofstream
Definition fstream:47
osgGA::EventHandler
Definition EventHandler:34
osgGA::EventHandler::asEventHandler
virtual EventHandler * asEventHandler()
Definition EventHandler:52
osgGA::GUIActionAdapter
Definition GUIActionAdapter:62
osgGA::GUIEventAdapter
Definition GUIEventAdapter:82
osgGA::GUIEventHandler
Definition GUIEventHandler:50
osgGA::GUIEventHandler::GUIEventHandler
GUIEventHandler()
Definition GUIEventHandler:53
osgViewer::GraphicsWindow
Definition GraphicsWindow:43
osgViewer::HelpHandler::getCamera
const osg::Camera * getCamera() const
Definition osgViewer/ViewerEventHandlers:46
osgViewer::HelpHandler::setUpHUDCamera
void setUpHUDCamera(osgViewer::ViewerBase *viewer)
osgViewer::HelpHandler::setUpScene
void setUpScene(osgViewer::ViewerBase *viewer)
osgViewer::HelpHandler::getApplicationUsage
const osg::ApplicationUsage * getApplicationUsage() const
Definition osgViewer/ViewerEventHandlers:38
osgViewer::HelpHandler::_helpEnabled
bool _helpEnabled
Definition osgViewer/ViewerEventHandlers:63
osgViewer::HelpHandler::_applicationUsage
osg::ref_ptr< osg::ApplicationUsage > _applicationUsage
Definition osgViewer/ViewerEventHandlers:59
osgViewer::HelpHandler::getUsage
virtual void getUsage(osg::ApplicationUsage &usage) const
osgViewer::HelpHandler::setApplicationUsage
void setApplicationUsage(osg::ApplicationUsage *au)
Definition osgViewer/ViewerEventHandlers:36
osgViewer::HelpHandler::setKeyEventTogglesOnScreenHelp
void setKeyEventTogglesOnScreenHelp(int key)
Definition osgViewer/ViewerEventHandlers:40
osgViewer::HelpHandler::reset
void reset()
osgViewer::HelpHandler::_camera
osg::ref_ptr< osg::Camera > _camera
Definition osgViewer/ViewerEventHandlers:66
osgViewer::HelpHandler::HelpHandler
HelpHandler(osg::ApplicationUsage *au=0)
osgViewer::HelpHandler::getApplicationUsage
osg::ApplicationUsage * getApplicationUsage()
Definition osgViewer/ViewerEventHandlers:37
osgViewer::HelpHandler::_initialized
bool _initialized
Definition osgViewer/ViewerEventHandlers:65
osgViewer::HelpHandler::_switch
osg::ref_ptr< osg::Switch > _switch
Definition osgViewer/ViewerEventHandlers:67
osgViewer::HelpHandler::getCamera
osg::Camera * getCamera()
Definition osgViewer/ViewerEventHandlers:45
osgViewer::HelpHandler::handle
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
osgViewer::HelpHandler::getKeyEventTogglesOnScreenHelp
int getKeyEventTogglesOnScreenHelp() const
Definition osgViewer/ViewerEventHandlers:41
osgViewer::HelpHandler::_keyEventTogglesOnScreenHelp
int _keyEventTogglesOnScreenHelp
Definition osgViewer/ViewerEventHandlers:61
osgViewer::InteractiveImageHandler::asNodeCallback
virtual const NodeCallback * asNodeCallback() const
Definition osgViewer/ViewerEventHandlers:516
osgViewer::InteractiveImageHandler::InteractiveImageHandler
InteractiveImageHandler(osg::Image *image)
Constructor to use when the InteractiveImage is in the 3D scene (i.e. not in a fullscreen HUD overlay...
osgViewer::InteractiveImageHandler::mousePosition
bool mousePosition(osgViewer::View *view, osg::NodeVisitor *nv, const osgGA::GUIEventAdapter &ea, int &x, int &y) const
osgViewer::InteractiveImageHandler::asEventHandler
virtual const osgGA::EventHandler * asEventHandler() const
Definition osgViewer/ViewerEventHandlers:525
osgViewer::InteractiveImageHandler::cull
virtual bool cull(osg::NodeVisitor *nv, osg::Drawable *drawable, osg::RenderInfo *renderInfo) const
osgViewer::InteractiveImageHandler::asDrawableCullCallback
virtual const DrawableCullCallback * asDrawableCullCallback() const
Definition osgViewer/ViewerEventHandlers:522
osgViewer::InteractiveImageHandler::_camera
osg::observer_ptr< osg::Camera > _camera
Definition osgViewer/ViewerEventHandlers:552
osgViewer::InteractiveImageHandler::InteractiveImageHandler
InteractiveImageHandler()
Definition osgViewer/ViewerEventHandlers:538
osgViewer::InteractiveImageHandler::InteractiveImageHandler
InteractiveImageHandler(osg::Image *image, osg::Texture2D *texture, osg::Camera *camera)
Constructor to use when the InteractiveImage is in a fullscreen HUD overlay.
osgViewer::InteractiveImageHandler::asDrawableEventCallback
virtual DrawableEventCallback * asDrawableEventCallback()
Definition osgViewer/ViewerEventHandlers:518
osgViewer::InteractiveImageHandler::run
virtual bool run(osg::Object *object, osg::Object *data)
Definition osgViewer/ViewerEventHandlers:528
osgViewer::InteractiveImageHandler::asDrawableEventCallback
virtual const DrawableEventCallback * asDrawableEventCallback() const
Definition osgViewer/ViewerEventHandlers:519
osgViewer::InteractiveImageHandler::handle
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *nv)
osgViewer::InteractiveImageHandler::_texture
osg::observer_ptr< osg::Texture2D > _texture
Definition osgViewer/ViewerEventHandlers:549
osgViewer::InteractiveImageHandler::META_Object
META_Object(osgViewer, InteractiveImageHandler)
osgViewer::InteractiveImageHandler::asDrawableCullCallback
virtual DrawableCullCallback * asDrawableCullCallback()
Definition osgViewer/ViewerEventHandlers:521
osgViewer::InteractiveImageHandler::~InteractiveImageHandler
virtual ~InteractiveImageHandler()
Definition osgViewer/ViewerEventHandlers:536
osgViewer::InteractiveImageHandler::InteractiveImageHandler
InteractiveImageHandler(const InteractiveImageHandler &, const osg::CopyOp &=osg::CopyOp::SHALLOW_COPY)
Definition osgViewer/ViewerEventHandlers:541
osgViewer::InteractiveImageHandler::resize
void resize(int width, int height)
osgViewer::InteractiveImageHandler::asEventHandler
virtual osgGA::EventHandler * asEventHandler()
Definition osgViewer/ViewerEventHandlers:524
osgViewer::InteractiveImageHandler::_image
osg::observer_ptr< osg::Image > _image
Definition osgViewer/ViewerEventHandlers:548
osgViewer::InteractiveImageHandler::_fullscreen
bool _fullscreen
Definition osgViewer/ViewerEventHandlers:551
osgViewer::InteractiveImageHandler::asNodeCallback
virtual NodeCallback * asNodeCallback()
Definition osgViewer/ViewerEventHandlers:515
osgViewer::LODScaleHandler::_keyEventIncreaseLODScale
int _keyEventIncreaseLODScale
Definition osgViewer/ViewerEventHandlers:376
osgViewer::LODScaleHandler::setKeyEventDecreaseLODScale
void setKeyEventDecreaseLODScale(int key)
Definition osgViewer/ViewerEventHandlers:365
osgViewer::LODScaleHandler::_keyEventDecreaseLODScale
int _keyEventDecreaseLODScale
Definition osgViewer/ViewerEventHandlers:377
osgViewer::LODScaleHandler::LODScaleHandler
LODScaleHandler()
osgViewer::LODScaleHandler::getUsage
virtual void getUsage(osg::ApplicationUsage &usage) const
osgViewer::LODScaleHandler::handle
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
osgViewer::LODScaleHandler::getKeyEventDecreaseLODScale
int getKeyEventDecreaseLODScale() const
Definition osgViewer/ViewerEventHandlers:366
osgViewer::LODScaleHandler::getKeyEventIncreaseLODScale
int getKeyEventIncreaseLODScale() const
Definition osgViewer/ViewerEventHandlers:363
osgViewer::LODScaleHandler::setKeyEventIncreaseLODScale
void setKeyEventIncreaseLODScale(int key)
Definition osgViewer/ViewerEventHandlers:362
osgViewer::RecordCameraPathHandler::_interval
double _interval
Definition osgViewer/ViewerEventHandlers:346
osgViewer::RecordCameraPathHandler::_currentlyPlaying
bool _currentlyPlaying
Definition osgViewer/ViewerEventHandlers:345
osgViewer::RecordCameraPathHandler::_keyEventToggleRecord
int _keyEventToggleRecord
Definition osgViewer/ViewerEventHandlers:340
osgViewer::RecordCameraPathHandler::_autoinc
int _autoinc
Definition osgViewer/ViewerEventHandlers:337
osgViewer::RecordCameraPathHandler::getKeyEventToggleRecord
int getKeyEventToggleRecord() const
Definition osgViewer/ViewerEventHandlers:323
osgViewer::RecordCameraPathHandler::_fout
osgDB::ofstream _fout
Definition osgViewer/ViewerEventHandlers:338
osgViewer::RecordCameraPathHandler::setKeyEventToggleRecord
void setKeyEventToggleRecord(int key)
Definition osgViewer/ViewerEventHandlers:322
osgViewer::RecordCameraPathHandler::_currentlyRecording
bool _currentlyRecording
Definition osgViewer/ViewerEventHandlers:344
osgViewer::RecordCameraPathHandler::_lastFrameTime
osg::Timer_t _lastFrameTime
Definition osgViewer/ViewerEventHandlers:349
osgViewer::RecordCameraPathHandler::_animPathManipulator
osg::ref_ptr< osgGA::AnimationPathManipulator > _animPathManipulator
Definition osgViewer/ViewerEventHandlers:351
osgViewer::RecordCameraPathHandler::setKeyEventTogglePlayback
void setKeyEventTogglePlayback(int key)
Definition osgViewer/ViewerEventHandlers:325
osgViewer::RecordCameraPathHandler::_filename
std::string _filename
Definition osgViewer/ViewerEventHandlers:336
osgViewer::RecordCameraPathHandler::_keyEventTogglePlayback
int _keyEventTogglePlayback
Definition osgViewer/ViewerEventHandlers:341
osgViewer::RecordCameraPathHandler::_delta
double _delta
Definition osgViewer/ViewerEventHandlers:347
osgViewer::RecordCameraPathHandler::_oldManipulator
osg::ref_ptr< osgGA::CameraManipulator > _oldManipulator
Definition osgViewer/ViewerEventHandlers:352
osgViewer::RecordCameraPathHandler::handle
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
osgViewer::RecordCameraPathHandler::RecordCameraPathHandler
RecordCameraPathHandler(const std::string &filename="saved_animation.path", float fps=25.0f)
osgViewer::RecordCameraPathHandler::_animPath
osg::ref_ptr< osg::AnimationPath > _animPath
Definition osgViewer/ViewerEventHandlers:350
osgViewer::RecordCameraPathHandler::getUsage
virtual void getUsage(osg::ApplicationUsage &usage) const
osgViewer::RecordCameraPathHandler::setAutoIncrementFilename
void setAutoIncrementFilename(bool autoinc=true)
Definition osgViewer/ViewerEventHandlers:328
osgViewer::RecordCameraPathHandler::getKeyEventTogglePlayback
int getKeyEventTogglePlayback() const
Definition osgViewer/ViewerEventHandlers:326
osgViewer::RecordCameraPathHandler::_animStartTime
osg::Timer_t _animStartTime
Definition osgViewer/ViewerEventHandlers:348
osgViewer::ScreenCaptureHandler::CaptureOperation
Definition osgViewer/ViewerEventHandlers:413
osgViewer::ScreenCaptureHandler::CaptureOperation::operator()
virtual void operator()(const osg::Image &image, const unsigned int context_id)=0
osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy
SavePolicy
Definition osgViewer/ViewerEventHandlers:423
osgViewer::ScreenCaptureHandler::WriteToFile::SEQUENTIAL_NUMBER
@ SEQUENTIAL_NUMBER
Definition osgViewer/ViewerEventHandlers:425
osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE
@ OVERWRITE
Definition osgViewer/ViewerEventHandlers:424
osgViewer::ScreenCaptureHandler::WriteToFile::getSavePolicy
SavePolicy getSavePolicy() const
Definition osgViewer/ViewerEventHandlers:434
osgViewer::ScreenCaptureHandler::WriteToFile::_extension
const std::string _extension
Definition osgViewer/ViewerEventHandlers:441
osgViewer::ScreenCaptureHandler::WriteToFile::_savePolicy
SavePolicy _savePolicy
Definition osgViewer/ViewerEventHandlers:443
osgViewer::ScreenCaptureHandler::WriteToFile::_contextSaveCounter
std::vector< unsigned int > _contextSaveCounter
Definition osgViewer/ViewerEventHandlers:445
osgViewer::ScreenCaptureHandler::WriteToFile::operator()
virtual void operator()(const osg::Image &image, const unsigned int context_id)
osgViewer::ScreenCaptureHandler::WriteToFile::_filename
const std::string _filename
Definition osgViewer/ViewerEventHandlers:440
osgViewer::ScreenCaptureHandler::WriteToFile::WriteToFile
WriteToFile(const std::string &filename, const std::string &extension, SavePolicy savePolicy=SEQUENTIAL_NUMBER)
osgViewer::ScreenCaptureHandler::WriteToFile::setSavePolicy
void setSavePolicy(SavePolicy savePolicy)
Definition osgViewer/ViewerEventHandlers:433
osgViewer::ScreenCaptureHandler::_startCapture
bool _startCapture
Definition osgViewer/ViewerEventHandlers:486
osgViewer::ScreenCaptureHandler::getKeyEventToggleContinuousCapture
int getKeyEventToggleContinuousCapture() const
Definition osgViewer/ViewerEventHandlers:456
osgViewer::ScreenCaptureHandler::stopCapture
void stopCapture()
osgViewer::ScreenCaptureHandler::_operation
osg::ref_ptr< CaptureOperation > _operation
Definition osgViewer/ViewerEventHandlers:493
osgViewer::ScreenCaptureHandler::setKeyEventToggleContinuousCapture
void setKeyEventToggleContinuousCapture(int key)
Definition osgViewer/ViewerEventHandlers:455
osgViewer::ScreenCaptureHandler::captureNextFrame
virtual void captureNextFrame(osgViewer::ViewerBase &viewer)
osgViewer::ScreenCaptureHandler::getFramesToCapture
int getFramesToCapture() const
osgViewer::ScreenCaptureHandler::findAppropriateCameraForCallback
osg::Camera * findAppropriateCameraForCallback(osgViewer::ViewerBase &viewer)
osgViewer::ScreenCaptureHandler::ScreenCaptureHandler
ScreenCaptureHandler(CaptureOperation *defaultOperation=0, int numFrames=1)
osgViewer::ScreenCaptureHandler::setFramesToCapture
void setFramesToCapture(int numFrames)
osgViewer::ScreenCaptureHandler::setCaptureOperation
void setCaptureOperation(CaptureOperation *operation)
osgViewer::ScreenCaptureHandler::setKeyEventTakeScreenShot
void setKeyEventTakeScreenShot(int key)
Definition osgViewer/ViewerEventHandlers:452
osgViewer::ScreenCaptureHandler::_stopCapture
bool _stopCapture
Definition osgViewer/ViewerEventHandlers:487
osgViewer::ScreenCaptureHandler::startCapture
void startCapture()
osgViewer::ScreenCaptureHandler::removeCallbackFromViewer
void removeCallbackFromViewer(osgViewer::ViewerBase &viewer)
osgViewer::ScreenCaptureHandler::_keyEventTakeScreenShot
int _keyEventTakeScreenShot
Definition osgViewer/ViewerEventHandlers:489
osgViewer::ScreenCaptureHandler::handle
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
osgViewer::ScreenCaptureHandler::getKeyEventTakeScreenShot
int getKeyEventTakeScreenShot() const
Definition osgViewer/ViewerEventHandlers:453
osgViewer::ScreenCaptureHandler::addCallbackToViewer
void addCallbackToViewer(osgViewer::ViewerBase &viewer)
osgViewer::ScreenCaptureHandler::_keyEventToggleContinuousCapture
int _keyEventToggleContinuousCapture
Definition osgViewer/ViewerEventHandlers:490
osgViewer::ScreenCaptureHandler::_callback
osg::ref_ptr< osg::Camera::DrawCallback > _callback
Definition osgViewer/ViewerEventHandlers:494
osgViewer::ScreenCaptureHandler::getCaptureOperation
CaptureOperation * getCaptureOperation() const
osgViewer::ScreenCaptureHandler::getUsage
virtual void getUsage(osg::ApplicationUsage &usage) const
osgViewer::StatsHandler::addUserStatsLine
void addUserStatsLine(const std::string &label, const osg::Vec4 &textColor, const osg::Vec4 &barColor, const std::string &timeTakenName, float multiplier, bool average, bool averageInInverseSpace, const std::string &beginTimeName, const std::string &endTimeName, float maxValue)
osgViewer::StatsHandler::getUsage
virtual void getUsage(osg::ApplicationUsage &usage) const
osgViewer::StatsHandler::createTimeStatsLine
void createTimeStatsLine(const std::string &lineLabel, osg::Vec3 pos, const osg::Vec4 &textColor, const osg::Vec4 &barColor, osg::Stats *viewerStats, osg::Stats *stats, const std::string &timeTakenName, float multiplier, bool average, bool averageInInverseSpace, const std::string &beginTimeName, const std::string &endTimeName)
osgViewer::StatsHandler::_threadingModel
ViewerBase::ThreadingModel _threadingModel
Definition osgViewer/ViewerEventHandlers:184
osgViewer::StatsHandler::setUpScene
void setUpScene(osgViewer::ViewerBase *viewer)
osgViewer::StatsHandler::createGeometry
osg::Geometry * createGeometry(const osg::Vec3 &pos, float height, const osg::Vec4 &colour, unsigned int numBlocks)
osgViewer::StatsHandler::UserStatsLines
std::vector< UserStatsLine > UserStatsLines
Definition osgViewer/ViewerEventHandlers:226
osgViewer::StatsHandler::_userStatsLines
UserStatsLines _userStatsLines
Definition osgViewer/ViewerEventHandlers:227
osgViewer::StatsHandler::setWindowSize
void setWindowSize(int width, int height)
osgViewer::StatsHandler::_threadingModelText
osg::ref_ptr< osgText::Text > _threadingModelText
Definition osgViewer/ViewerEventHandlers:185
osgViewer::StatsHandler::getKeyEventTogglesOnScreenStats
int getKeyEventTogglesOnScreenStats() const
Definition osgViewer/ViewerEventHandlers:91
osgViewer::StatsHandler::createFrameMarkers
osg::Geometry * createFrameMarkers(const osg::Vec3 &pos, float height, const osg::Vec4 &colour, unsigned int numBlocks)
osgViewer::StatsHandler::_frameRateChildNum
unsigned int _frameRateChildNum
Definition osgViewer/ViewerEventHandlers:187
osgViewer::StatsHandler::_switch
osg::ref_ptr< osg::Switch > _switch
Definition osgViewer/ViewerEventHandlers:180
osgViewer::StatsHandler::handle
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
osgViewer::StatsHandler::reset
void reset()
osgViewer::StatsHandler::createTick
osg::Geometry * createTick(const osg::Vec3 &pos, float height, const osg::Vec4 &colour, unsigned int numTicks)
osgViewer::StatsHandler::setKeyEventTogglesOnScreenStats
void setKeyEventTogglesOnScreenStats(int key)
Definition osgViewer/ViewerEventHandlers:90
osgViewer::StatsHandler::getCamera
osg::Camera * getCamera()
Definition osgViewer/ViewerEventHandlers:100
osgViewer::StatsHandler::setUpHUDCamera
void setUpHUDCamera(osgViewer::ViewerBase *viewer)
osgViewer::StatsHandler::getCamera
const osg::Camera * getCamera() const
Definition osgViewer/ViewerEventHandlers:101
osgViewer::StatsHandler::_statsGeode
osg::ref_ptr< osg::Geode > _statsGeode
Definition osgViewer/ViewerEventHandlers:182
osgViewer::StatsHandler::_keyEventPrintsOutStats
int _keyEventPrintsOutStats
Definition osgViewer/ViewerEventHandlers:173
osgViewer::StatsHandler::_statsType
int _statsType
Definition osgViewer/ViewerEventHandlers:175
osgViewer::StatsHandler::_statsWidth
float _statsWidth
Definition osgViewer/ViewerEventHandlers:194
osgViewer::StatsHandler::_blockMultiplier
double _blockMultiplier
Definition osgViewer/ViewerEventHandlers:192
osgViewer::StatsHandler::getBlockMultiplier
double getBlockMultiplier() const
Definition osgViewer/ViewerEventHandlers:96
osgViewer::StatsHandler::_leftPos
float _leftPos
Definition osgViewer/ViewerEventHandlers:199
osgViewer::StatsHandler::_characterSize
float _characterSize
Definition osgViewer/ViewerEventHandlers:200
osgViewer::StatsHandler::_viewerSceneChildNum
unsigned int _viewerSceneChildNum
Definition osgViewer/ViewerEventHandlers:190
osgViewer::StatsHandler::_font
std::string _font
Definition osgViewer/ViewerEventHandlers:197
osgViewer::StatsHandler::StatsType
StatsType
Definition osgViewer/ViewerEventHandlers:81
osgViewer::StatsHandler::LAST
@ LAST
Definition osgViewer/ViewerEventHandlers:87
osgViewer::StatsHandler::VIEWER_STATS
@ VIEWER_STATS
Definition osgViewer/ViewerEventHandlers:84
osgViewer::StatsHandler::CAMERA_SCENE_STATS
@ CAMERA_SCENE_STATS
Definition osgViewer/ViewerEventHandlers:85
osgViewer::StatsHandler::NO_STATS
@ NO_STATS
Definition osgViewer/ViewerEventHandlers:82
osgViewer::StatsHandler::FRAME_RATE
@ FRAME_RATE
Definition osgViewer/ViewerEventHandlers:83
osgViewer::StatsHandler::VIEWER_SCENE_STATS
@ VIEWER_SCENE_STATS
Definition osgViewer/ViewerEventHandlers:86
osgViewer::StatsHandler::updateThreadingModelText
void updateThreadingModelText()
osgViewer::StatsHandler::createBackgroundRectangle
osg::Geometry * createBackgroundRectangle(const osg::Vec3 &pos, const float width, const float height, osg::Vec4 &color)
osgViewer::StatsHandler::createCameraTimeStats
void createCameraTimeStats(osg::Vec3 &pos, bool acquireGPUStats, osg::Stats *viewerStats, osg::Camera *camera)
osgViewer::StatsHandler::_statsHeight
float _statsHeight
Definition osgViewer/ViewerEventHandlers:195
osgViewer::StatsHandler::StatsHandler
StatsHandler()
osgViewer::StatsHandler::removeUserStatsLine
void removeUserStatsLine(const std::string &label)
osgViewer::StatsHandler::setKeyEventPrintsOutStats
void setKeyEventPrintsOutStats(int key)
Definition osgViewer/ViewerEventHandlers:93
osgViewer::StatsHandler::_numBlocks
unsigned int _numBlocks
Definition osgViewer/ViewerEventHandlers:191
osgViewer::StatsHandler::_initialized
bool _initialized
Definition osgViewer/ViewerEventHandlers:177
osgViewer::StatsHandler::_startBlocks
float _startBlocks
Definition osgViewer/ViewerEventHandlers:198
osgViewer::StatsHandler::collectWhichCamerasToRenderStatsFor
virtual void collectWhichCamerasToRenderStatsFor(osgViewer::ViewerBase *viewer, osgViewer::ViewerBase::Cameras &cameras)
osgViewer::StatsHandler::_keyEventTogglesOnScreenStats
int _keyEventTogglesOnScreenStats
Definition osgViewer/ViewerEventHandlers:172
osgViewer::StatsHandler::_cameraSceneChildNum
unsigned int _cameraSceneChildNum
Definition osgViewer/ViewerEventHandlers:189
osgViewer::StatsHandler::_viewerChildNum
unsigned int _viewerChildNum
Definition osgViewer/ViewerEventHandlers:188
osgViewer::StatsHandler::getKeyEventPrintsOutStats
int getKeyEventPrintsOutStats() const
Definition osgViewer/ViewerEventHandlers:94
osgViewer::StatsHandler::_camera
osg::ref_ptr< osg::Camera > _camera
Definition osgViewer/ViewerEventHandlers:178
osgViewer::StatsHandler::_lineHeight
float _lineHeight
Definition osgViewer/ViewerEventHandlers:201
osgViewer::ThreadingHandler::setChangeEndBarrierPosition
void setChangeEndBarrierPosition(bool flag)
Definition osgViewer/ViewerEventHandlers:293
osgViewer::ThreadingHandler::_changeEndBarrierPosition
bool _changeEndBarrierPosition
Definition osgViewer/ViewerEventHandlers:304
osgViewer::ThreadingHandler::getKeyEventChangeThreadingModel
int getKeyEventChangeThreadingModel() const
Definition osgViewer/ViewerEventHandlers:285
osgViewer::ThreadingHandler::getUsage
virtual void getUsage(osg::ApplicationUsage &usage) const
osgViewer::ThreadingHandler::ThreadingHandler
ThreadingHandler()
osgViewer::ThreadingHandler::setChangeThreadingModel
void setChangeThreadingModel(bool flag)
Definition osgViewer/ViewerEventHandlers:287
osgViewer::ThreadingHandler::_changeThreadingModel
bool _changeThreadingModel
Definition osgViewer/ViewerEventHandlers:301
osgViewer::ThreadingHandler::getChangeThreadingModel
bool getChangeThreadingModel() const
Definition osgViewer/ViewerEventHandlers:288
osgViewer::ThreadingHandler::getChangeEndBarrierPosition
bool getChangeEndBarrierPosition() const
Definition osgViewer/ViewerEventHandlers:294
osgViewer::ThreadingHandler::_tickOrLastKeyPress
osg::Timer_t _tickOrLastKeyPress
Definition osgViewer/ViewerEventHandlers:306
osgViewer::ThreadingHandler::_keyEventChangeThreadingModel
int _keyEventChangeThreadingModel
Definition osgViewer/ViewerEventHandlers:300
osgViewer::ThreadingHandler::_keyEventChangeEndBarrierPosition
int _keyEventChangeEndBarrierPosition
Definition osgViewer/ViewerEventHandlers:303
osgViewer::ThreadingHandler::setKeyEventChangeThreadingModel
void setKeyEventChangeThreadingModel(int key)
Definition osgViewer/ViewerEventHandlers:284
osgViewer::ThreadingHandler::handle
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
osgViewer::ThreadingHandler::getKeyEventChangeEndBarrierPosition
int getKeyEventChangeEndBarrierPosition() const
Definition osgViewer/ViewerEventHandlers:291
osgViewer::ThreadingHandler::setKeyEventChangeEndBarrierPosition
void setKeyEventChangeEndBarrierPosition(int key)
Definition osgViewer/ViewerEventHandlers:290
osgViewer::ToggleSyncToVBlankHandler::getUsage
virtual void getUsage(osg::ApplicationUsage &usage) const
osgViewer::ToggleSyncToVBlankHandler::setKeyEventToggleSyncToVBlankHandler
void setKeyEventToggleSyncToVBlankHandler(int key)
Definition osgViewer/ViewerEventHandlers:389
osgViewer::ToggleSyncToVBlankHandler::_keyEventToggleSyncToVBlank
int _keyEventToggleSyncToVBlank
Definition osgViewer/ViewerEventHandlers:400
osgViewer::ToggleSyncToVBlankHandler::handle
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
osgViewer::ToggleSyncToVBlankHandler::getKeyEventToggleSyncToVBlankHandler
int getKeyEventToggleSyncToVBlankHandler() const
Definition osgViewer/ViewerEventHandlers:390
osgViewer::ToggleSyncToVBlankHandler::ToggleSyncToVBlankHandler
ToggleSyncToVBlankHandler()
osgViewer::View
Definition osgViewer/View:76
osgViewer::ViewerBase
Definition ViewerBase:36
osgViewer::ViewerBase::ThreadingModel
ThreadingModel
Definition ViewerBase:78
osgViewer::ViewerBase::Cameras
std::vector< osg::Camera * > Cameras
Definition ViewerBase:263
osgViewer::WindowSizeHandler::setKeyEventWindowedResolutionUp
void setKeyEventWindowedResolutionUp(int key)
Definition osgViewer/ViewerEventHandlers:247
osgViewer::WindowSizeHandler::getKeyEventToggleFullscreen
int getKeyEventToggleFullscreen() const
Definition osgViewer/ViewerEventHandlers:242
osgViewer::WindowSizeHandler::WindowSizeHandler
WindowSizeHandler()
osgViewer::WindowSizeHandler::_keyEventWindowedResolutionDown
int _keyEventWindowedResolutionDown
Definition osgViewer/ViewerEventHandlers:268
osgViewer::WindowSizeHandler::setToggleFullscreen
void setToggleFullscreen(bool flag)
Definition osgViewer/ViewerEventHandlers:244
osgViewer::WindowSizeHandler::getNearestResolution
unsigned int getNearestResolution(int screenWidth, int screenHeight, int width, int height) const
osgViewer::WindowSizeHandler::_keyEventWindowedResolutionUp
int _keyEventWindowedResolutionUp
Definition osgViewer/ViewerEventHandlers:267
osgViewer::WindowSizeHandler::setKeyEventToggleFullscreen
void setKeyEventToggleFullscreen(int key)
Definition osgViewer/ViewerEventHandlers:241
osgViewer::WindowSizeHandler::_keyEventToggleFullscreen
int _keyEventToggleFullscreen
Definition osgViewer/ViewerEventHandlers:264
osgViewer::WindowSizeHandler::toggleFullscreen
void toggleFullscreen(osgViewer::GraphicsWindow *window)
osgViewer::WindowSizeHandler::handle
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
osgViewer::WindowSizeHandler::getKeyEventWindowedResolutionDown
int getKeyEventWindowedResolutionDown() const
Definition osgViewer/ViewerEventHandlers:250
osgViewer::WindowSizeHandler::_toggleFullscreen
bool _toggleFullscreen
Definition osgViewer/ViewerEventHandlers:265
osgViewer::WindowSizeHandler::getChangeWindowedResolution
bool getChangeWindowedResolution() const
Definition osgViewer/ViewerEventHandlers:253
osgViewer::WindowSizeHandler::_changeWindowedResolution
bool _changeWindowedResolution
Definition osgViewer/ViewerEventHandlers:269
osgViewer::WindowSizeHandler::_resolutionList
std::vector< osg::Vec2 > _resolutionList
Definition osgViewer/ViewerEventHandlers:270
osgViewer::WindowSizeHandler::setKeyEventWindowedResolutionDown
void setKeyEventWindowedResolutionDown(int key)
Definition osgViewer/ViewerEventHandlers:249
osgViewer::WindowSizeHandler::getUsage
virtual void getUsage(osg::ApplicationUsage &usage) const
osgViewer::WindowSizeHandler::getKeyEventWindowedResolutionUp
int getKeyEventWindowedResolutionUp() const
Definition osgViewer/ViewerEventHandlers:248
osgViewer::WindowSizeHandler::setChangeWindowedResolution
void setChangeWindowedResolution(bool flag)
Definition osgViewer/ViewerEventHandlers:252
osgViewer::WindowSizeHandler::changeWindowedResolution
void changeWindowedResolution(osgViewer::GraphicsWindow *window, bool increase)
osgViewer::WindowSizeHandler::_currentResolutionIndex
int _currentResolutionIndex
Definition osgViewer/ViewerEventHandlers:271
osgViewer::WindowSizeHandler::getToggleFullscreen
bool getToggleFullscreen() const
Definition osgViewer/ViewerEventHandlers:245
osg::ApplicationUsage
Definition ApplicationUsage:26
osg::Callback::Callback
Callback()
Definition Callback:38
osg::Callback::run
virtual bool run(osg::Object *object, osg::Object *data)
Definition Callback:80
osg::Camera
Definition Camera:45
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::DrawableCullCallback
Definition Callback:341
osg::DrawableCullCallback::asDrawableCullCallback
virtual DrawableCullCallback * asDrawableCullCallback()
Definition Callback:351
osg::DrawableCullCallback::DrawableCullCallback
DrawableCullCallback()
Definition Callback:343
osg::DrawableEventCallback::asDrawableEventCallback
virtual DrawableEventCallback * asDrawableEventCallback()
Definition Callback:330
osg::DrawableEventCallback::DrawableEventCallback
DrawableEventCallback()
Definition Callback:322
osg::Drawable
Definition Drawable:89
osg::Geometry
Definition Geometry:31
osg::Image
Definition Image:179
osg::NodeCallback::NodeCallback
NodeCallback()
Definition Callback:219
osg::NodeCallback::asNodeCallback
virtual NodeCallback * asNodeCallback()
Definition Callback:227
osg::NodeVisitor
Definition NodeVisitor:82
osg::Object
Definition Object:61
osg::Object::Object
Object()
Definition Object:69
osg::Referenced
Definition Referenced:44
osg::RenderInfo
Definition RenderInfo:28
osg::Stats
Definition Stats:29
osg::Texture2D
Definition Texture2D:25
osg::observer_ptr
Definition observer_ptr:39
osg::ref_ptr
Definition ref_ptr:32
fstream
osgGA
Definition Callback:21
osgViewer
osg
Definition AlphaFunc:19
osg::Vec3
Vec3f Vec3
Definition Vec3:21
osg::Vec4
Vec4f Vec4
Definition Vec4:21
osg::Timer_t
unsigned long long Timer_t
Definition Timer:24
OSGVIEWER_EXPORT
#define OSGVIEWER_EXPORT
Definition osgViewer/Export:40
osgViewer::StatsHandler::UserStatsLine::barColor
osg::Vec4 barColor
Definition osgViewer/ViewerEventHandlers:207
osgViewer::StatsHandler::UserStatsLine::timeTakenName
std::string timeTakenName
Definition osgViewer/ViewerEventHandlers:208
osgViewer::StatsHandler::UserStatsLine::textColor
osg::Vec4 textColor
Definition osgViewer/ViewerEventHandlers:206
osgViewer::StatsHandler::UserStatsLine::averageInInverseSpace
bool averageInInverseSpace
Definition osgViewer/ViewerEventHandlers:211
osgViewer::StatsHandler::UserStatsLine::average
bool average
Definition osgViewer/ViewerEventHandlers:210
osgViewer::StatsHandler::UserStatsLine::endTimeName
std::string endTimeName
Definition osgViewer/ViewerEventHandlers:213
osgViewer::StatsHandler::UserStatsLine::beginTimeName
std::string beginTimeName
Definition osgViewer/ViewerEventHandlers:212
osgViewer::StatsHandler::UserStatsLine::UserStatsLine
UserStatsLine(const std::string &label_, const osg::Vec4 &textColor_, const osg::Vec4 &barColor_, const std::string &timeTakenName_, float multiplier_, bool average_, bool averageInInverseSpace_, const std::string &beginTimeName_, const std::string &endTimeName_, float maxValue_)
Definition osgViewer/ViewerEventHandlers:216
osgViewer::StatsHandler::UserStatsLine::maxValue
float maxValue
Definition osgViewer/ViewerEventHandlers:214
osgViewer::StatsHandler::UserStatsLine::label
std::string label
Definition osgViewer/ViewerEventHandlers:205
osgViewer::StatsHandler::UserStatsLine::multiplier
float multiplier
Definition osgViewer/ViewerEventHandlers:209