Fixed spaces at ends of lines
This commit is contained in:
parent
2e11c49742
commit
4f6be906b3
@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
/* -*-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
|
||||
* 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
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
@ -27,19 +27,19 @@
|
||||
namespace osgViewer {
|
||||
|
||||
/** Event handler for adding on screen help to Viewers.*/
|
||||
class OSGVIEWER_EXPORT HelpHandler : public osgGA::GUIEventHandler
|
||||
class OSGVIEWER_EXPORT HelpHandler : public osgGA::GUIEventHandler
|
||||
{
|
||||
public:
|
||||
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(); }
|
||||
@ -55,7 +55,7 @@ class OSGVIEWER_EXPORT HelpHandler : public osgGA::GUIEventHandler
|
||||
void setUpHUDCamera(osgViewer::ViewerBase* viewer);
|
||||
|
||||
void setUpScene(osgViewer::ViewerBase* viewer);
|
||||
|
||||
|
||||
osg::ref_ptr<osg::ApplicationUsage> _applicationUsage;
|
||||
|
||||
int _keyEventTogglesOnScreenHelp;
|
||||
@ -65,13 +65,13 @@ class OSGVIEWER_EXPORT HelpHandler : public osgGA::GUIEventHandler
|
||||
bool _initialized;
|
||||
osg::ref_ptr<osg::Camera> _camera;
|
||||
osg::ref_ptr<osg::Switch> _switch;
|
||||
|
||||
|
||||
};
|
||||
|
||||
/** Event handler for adding on screen stats reporting to Viewers.*/
|
||||
class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
|
||||
class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
|
||||
{
|
||||
public:
|
||||
public:
|
||||
|
||||
StatsHandler();
|
||||
|
||||
@ -84,10 +84,10 @@ class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
|
||||
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; }
|
||||
|
||||
@ -114,11 +114,11 @@ class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
|
||||
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);
|
||||
|
||||
|
||||
osg::Node* createCameraTimeStats(const std::string& font, osg::Vec3& pos, float startBlocks, bool acquireGPUStats, float characterSize, osg::Stats* viewerStats, osg::Camera* camera);
|
||||
|
||||
void setUpScene(osgViewer::ViewerBase* viewer);
|
||||
|
||||
|
||||
void updateThreadingModelText();
|
||||
|
||||
int _keyEventTogglesOnScreenStats;
|
||||
@ -128,9 +128,9 @@ class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
|
||||
|
||||
bool _initialized;
|
||||
osg::ref_ptr<osg::Camera> _camera;
|
||||
|
||||
|
||||
osg::ref_ptr<osg::Switch> _switch;
|
||||
|
||||
|
||||
ViewerBase::ThreadingModel _threadingModel;
|
||||
osg::ref_ptr<osgText::Text> _threadingModelText;
|
||||
|
||||
@ -140,17 +140,17 @@ class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
|
||||
unsigned int _viewerSceneChildNum;
|
||||
unsigned int _numBlocks;
|
||||
double _blockMultiplier;
|
||||
|
||||
|
||||
float _statsWidth;
|
||||
float _statsHeight;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/** Event handler allowing to change the screen resolution (in windowed mode) and toggle between fullscreen and windowed mode. */
|
||||
class OSGVIEWER_EXPORT WindowSizeHandler : public osgGA::GUIEventHandler
|
||||
class OSGVIEWER_EXPORT WindowSizeHandler : public osgGA::GUIEventHandler
|
||||
{
|
||||
public:
|
||||
public:
|
||||
|
||||
WindowSizeHandler();
|
||||
|
||||
@ -191,9 +191,9 @@ protected:
|
||||
};
|
||||
|
||||
/** Event handler allowing to change the viewer threading model */
|
||||
class OSGVIEWER_EXPORT ThreadingHandler : public osgGA::GUIEventHandler
|
||||
class OSGVIEWER_EXPORT ThreadingHandler : public osgGA::GUIEventHandler
|
||||
{
|
||||
public:
|
||||
public:
|
||||
|
||||
ThreadingHandler();
|
||||
|
||||
@ -273,15 +273,15 @@ protected:
|
||||
};
|
||||
|
||||
/** Event handler for increase/decreasing LODScale.*/
|
||||
class OSGVIEWER_EXPORT LODScaleHandler : public osgGA::GUIEventHandler
|
||||
class OSGVIEWER_EXPORT LODScaleHandler : public osgGA::GUIEventHandler
|
||||
{
|
||||
public:
|
||||
public:
|
||||
|
||||
LODScaleHandler();
|
||||
|
||||
void setKeyEventIncreaseLODScale(int key) { _keyEventIncreaseLODScale = key; }
|
||||
int getKeyEventIncreaseLODScale() const { return _keyEventIncreaseLODScale; }
|
||||
|
||||
|
||||
void setKeyEventDecreaseLODScale(int key) { _keyEventDecreaseLODScale = key; }
|
||||
int getKeyEventDecreaseLODScale() const { return _keyEventDecreaseLODScale; }
|
||||
|
||||
@ -295,8 +295,8 @@ class OSGVIEWER_EXPORT LODScaleHandler : public osgGA::GUIEventHandler
|
||||
|
||||
int _keyEventIncreaseLODScale;
|
||||
int _keyEventDecreaseLODScale;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -331,9 +331,9 @@ class OSGVIEWER_EXPORT ScreenCaptureHandler : public osgGA::GUIEventHandler
|
||||
SavePolicy getSavePolicy() const { return _savePolicy; }
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
WriteToFile& operator = (const WriteToFile&) { return *this; }
|
||||
|
||||
|
||||
const std::string _filename;
|
||||
const std::string _extension;
|
||||
|
||||
@ -382,7 +382,7 @@ public:
|
||||
_image(image) {}
|
||||
|
||||
META_Object(osgViewer, InteractiveImageHandler);
|
||||
|
||||
|
||||
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;
|
||||
@ -390,11 +390,11 @@ public:
|
||||
protected:
|
||||
|
||||
virtual ~InteractiveImageHandler() {}
|
||||
|
||||
|
||||
InteractiveImageHandler() {}
|
||||
|
||||
InteractiveImageHandler(const InteractiveImageHandler&,const osg::CopyOp& = osg::CopyOp::SHALLOW_COPY):
|
||||
osg::Object(), osgGA::GUIEventHandler(), osg::Drawable::CullCallback() {}
|
||||
osg::Object(), osgGA::GUIEventHandler(), osg::Drawable::CullCallback() {}
|
||||
|
||||
bool mousePosition(osgViewer::View* view, osg::NodeVisitor* nv, const osgGA::GUIEventAdapter& ea, int& x, int &y) const;
|
||||
|
||||
@ -403,7 +403,7 @@ protected:
|
||||
bool _handledOnKeyboardEvents;
|
||||
bool _handleMouseEvents;
|
||||
bool _handledOnMouseEvents;
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user