Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
*
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* the terms of the GNU General Public License (GPL) version 2.0.
|
||||
* The full license is in LICENSE.txt file included with this distribution,.
|
||||
*
|
||||
*
|
||||
* This software 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
|
||||
* include LICENSE.txt for more details.
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace osgPresentation {
|
||||
class OSGPRESENTATION_EXPORT AnimationMaterial : public virtual osg::Object
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AnimationMaterial():_loopMode(LOOP) {}
|
||||
|
||||
AnimationMaterial(const AnimationMaterial& ap, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY):
|
||||
@@ -42,45 +42,45 @@ class OSGPRESENTATION_EXPORT AnimationMaterial : public virtual osg::Object
|
||||
META_Object(osg,AnimationMaterial);
|
||||
|
||||
|
||||
/** get the transformation matrix for a point in time.*/
|
||||
/** get the transformation matrix for a point in time.*/
|
||||
bool getMaterial(double time,osg::Material& material) const;
|
||||
|
||||
void insert(double time,osg::Material* material);
|
||||
|
||||
|
||||
double getFirstTime() const { if (!_timeControlPointMap.empty()) return _timeControlPointMap.begin()->first; else return 0.0;}
|
||||
double getLastTime() const { if (!_timeControlPointMap.empty()) return _timeControlPointMap.rbegin()->first; else return 0.0;}
|
||||
double getPeriod() const { return getLastTime()-getFirstTime();}
|
||||
|
||||
|
||||
enum LoopMode
|
||||
{
|
||||
SWING,
|
||||
LOOP,
|
||||
NO_LOOPING
|
||||
};
|
||||
|
||||
|
||||
void setLoopMode(LoopMode lm) { _loopMode = lm; }
|
||||
|
||||
|
||||
LoopMode getLoopMode() const { return _loopMode; }
|
||||
|
||||
|
||||
typedef std::map<double, osg::ref_ptr<osg::Material> > TimeControlPointMap;
|
||||
|
||||
|
||||
TimeControlPointMap& getTimeControlPointMap() { return _timeControlPointMap; }
|
||||
|
||||
|
||||
const TimeControlPointMap& getTimeControlPointMap() const { return _timeControlPointMap; }
|
||||
|
||||
|
||||
/** read the anumation path from a flat ascii file stream.*/
|
||||
void read(std::istream& in);
|
||||
|
||||
/** write the anumation path to a flat ascii file stream.*/
|
||||
void write(std::ostream& out) const;
|
||||
|
||||
|
||||
bool requiresBlending() const;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
virtual ~AnimationMaterial() {}
|
||||
|
||||
|
||||
void interpolate(osg::Material& material, float r, const osg::Material& lhs,const osg::Material& rhs) const;
|
||||
|
||||
TimeControlPointMap _timeControlPointMap;
|
||||
@@ -100,7 +100,7 @@ class OSGPRESENTATION_EXPORT AnimationMaterialCallback : public osg::NodeCallbac
|
||||
_latestTime(0.0),
|
||||
_pause(false),
|
||||
_pauseTime(0.0) {}
|
||||
|
||||
|
||||
|
||||
AnimationMaterialCallback(const AnimationMaterialCallback& apc,const osg::CopyOp& copyop):
|
||||
osg::NodeCallback(apc,copyop),
|
||||
@@ -113,7 +113,7 @@ class OSGPRESENTATION_EXPORT AnimationMaterialCallback : public osg::NodeCallbac
|
||||
_pause(apc._pause),
|
||||
_pauseTime(apc._pauseTime) {}
|
||||
|
||||
|
||||
|
||||
META_Object(osg,AnimationMaterialCallback);
|
||||
|
||||
AnimationMaterialCallback(AnimationMaterial* ap,double timeOffset=0.0f,double timeMultiplier=1.0f):
|
||||
@@ -125,16 +125,16 @@ class OSGPRESENTATION_EXPORT AnimationMaterialCallback : public osg::NodeCallbac
|
||||
_latestTime(0.0),
|
||||
_pause(false),
|
||||
_pauseTime(0.0) {}
|
||||
|
||||
|
||||
void setAnimationMaterial(AnimationMaterial* path) { _animationMaterial = path; }
|
||||
|
||||
AnimationMaterial* getAnimationMaterial() { return _animationMaterial.get(); }
|
||||
|
||||
const AnimationMaterial* getAnimationMaterial() const { return _animationMaterial.get(); }
|
||||
|
||||
|
||||
void setTimeOffset(double offset) { _timeOffset = offset; }
|
||||
double getTimeOffset() const { return _timeOffset; }
|
||||
|
||||
|
||||
void setTimeMultiplier(double multiplier) { _timeMultiplier = multiplier; }
|
||||
double getTimeMultiplier() const { return _timeMultiplier; }
|
||||
|
||||
@@ -148,7 +148,7 @@ class OSGPRESENTATION_EXPORT AnimationMaterialCallback : public osg::NodeCallbac
|
||||
|
||||
/** implements the callback*/
|
||||
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
|
||||
|
||||
|
||||
void update(osg::Node& node);
|
||||
|
||||
public:
|
||||
@@ -163,7 +163,7 @@ class OSGPRESENTATION_EXPORT AnimationMaterialCallback : public osg::NodeCallbac
|
||||
double _pauseTime;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
~AnimationMaterialCallback(){}
|
||||
|
||||
};
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
*
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* the terms of the GNU General Public License (GPL) version 2.0.
|
||||
* The full license is in LICENSE.txt file included with this distribution,.
|
||||
*
|
||||
*
|
||||
* This software 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
|
||||
* include LICENSE.txt for more details.
|
||||
*/
|
||||
|
||||
@@ -31,9 +31,9 @@ class OSGPRESENTATION_EXPORT CompileSlideCallback : public osg::Camera::DrawCall
|
||||
void needCompile(osg::Node* node) { _needCompile=true; _sceneToCompile = node; }
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
virtual ~CompileSlideCallback() {}
|
||||
|
||||
|
||||
mutable bool _needCompile;
|
||||
mutable unsigned int _frameNumber;
|
||||
osg::ref_ptr<osg::Node> _sceneToCompile;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
# endif
|
||||
#else
|
||||
# define OSGPRESENTATION_EXPORT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
*
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* the terms of the GNU General Public License (GPL) version 2.0.
|
||||
* The full license is in LICENSE.txt file included with this distribution,.
|
||||
*
|
||||
*
|
||||
* This software 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
|
||||
* include LICENSE.txt for more details.
|
||||
*/
|
||||
|
||||
@@ -30,37 +30,37 @@ class OSGPRESENTATION_EXPORT PickEventHandler : public osgGA::GUIEventHandler
|
||||
PickEventHandler(osgPresentation::Operation operation, bool relativeJump=true, int slideNum=0, int layerNum=0);
|
||||
PickEventHandler(const std::string& str, osgPresentation::Operation operation, bool relativeJump=true, int slideNum=0, int layerNum=0);
|
||||
PickEventHandler(const osgPresentation::KeyPosition& keyPos, bool relativeJump=true, int slideNum=0, int layerNum=0);
|
||||
|
||||
|
||||
void setOperation(osgPresentation::Operation operation) { _operation = operation; }
|
||||
osgPresentation::Operation getOperation() const { return _operation; }
|
||||
|
||||
|
||||
void setCommand(const std::string& str) { _command = str; }
|
||||
const std::string& getCommand() const { return _command; }
|
||||
|
||||
|
||||
void setKeyPosition(const osgPresentation::KeyPosition& keyPos) { _keyPos = keyPos; }
|
||||
const osgPresentation::KeyPosition& getKeyPosition() const { return _keyPos; }
|
||||
|
||||
|
||||
void setRelativeJump(int slideDelta, int layerDelta);
|
||||
void setAbsoluteJump(int slideNum, int layerNum);
|
||||
|
||||
|
||||
bool getRelativeJump() const { return _relativeJump; }
|
||||
int getSlideNum() const { return _slideNum; }
|
||||
int getLayerNum() const { return _layerNum; }
|
||||
|
||||
|
||||
bool requiresJump() const { return _relativeJump ? (_slideNum!=0 || _layerNum!=0) : true; }
|
||||
|
||||
virtual bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& aa, osg::Object* object, osg::NodeVisitor* nv);
|
||||
|
||||
|
||||
virtual void accept(osgGA::GUIEventHandlerVisitor& v);
|
||||
|
||||
|
||||
virtual void getUsage(osg::ApplicationUsage& usage) const;
|
||||
|
||||
|
||||
void doOperation();
|
||||
|
||||
|
||||
std::string _command;
|
||||
osgPresentation::KeyPosition _keyPos;
|
||||
osgPresentation::Operation _operation;
|
||||
|
||||
|
||||
bool _relativeJump;
|
||||
int _slideNum;
|
||||
int _layerNum;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
*
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* the terms of the GNU General Public License (GPL) version 2.0.
|
||||
* The full license is in LICENSE.txt file included with this distribution,.
|
||||
*
|
||||
*
|
||||
* This software 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
|
||||
* include LICENSE.txt for more details.
|
||||
*/
|
||||
|
||||
@@ -162,14 +162,14 @@ class OSGPRESENTATION_EXPORT ActiveOperators
|
||||
public:
|
||||
ActiveOperators();
|
||||
~ActiveOperators();
|
||||
|
||||
|
||||
void collect(osg::Node* incommingNode, osg::NodeVisitor::TraversalMode tm = osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN);
|
||||
|
||||
void process();
|
||||
|
||||
|
||||
void setPause(bool pause);
|
||||
bool getPause() const { return _pause; }
|
||||
|
||||
|
||||
void reset();
|
||||
|
||||
typedef std::set< osg::ref_ptr<ObjectOperator>, dereference_less > OperatorList;
|
||||
@@ -196,9 +196,9 @@ class OSGPRESENTATION_EXPORT SlideEventHandler : public osgGA::GUIEventHandler
|
||||
public:
|
||||
|
||||
SlideEventHandler(osgViewer::Viewer* viewer=0);
|
||||
|
||||
|
||||
static SlideEventHandler* instance();
|
||||
|
||||
|
||||
META_Object(osgslideshowApp,SlideEventHandler);
|
||||
|
||||
void set(osg::Node* model);
|
||||
@@ -209,9 +209,9 @@ public:
|
||||
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
|
||||
|
||||
virtual bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter&);
|
||||
|
||||
|
||||
virtual void getUsage(osg::ApplicationUsage& usage) const;
|
||||
|
||||
|
||||
osgViewer::Viewer* getViewer() { return _viewer.get(); }
|
||||
|
||||
enum WhichPosition
|
||||
@@ -224,7 +224,7 @@ public:
|
||||
void releaseSlide(unsigned int slideNum);
|
||||
|
||||
unsigned int getNumSlides();
|
||||
|
||||
|
||||
int getActiveSlide() const { return _activeSlide; }
|
||||
int getActiveLayer() const { return _activeLayer; }
|
||||
|
||||
@@ -239,15 +239,15 @@ public:
|
||||
|
||||
bool nextLayer();
|
||||
bool previousLayer();
|
||||
|
||||
|
||||
bool home();
|
||||
|
||||
void setAutoSteppingActive(bool flag = true) { _autoSteppingActive = flag; }
|
||||
bool getAutoSteppingActive() const { return _autoSteppingActive; }
|
||||
|
||||
|
||||
void setTimeDelayBetweenSlides(double dt) { _timePerSlide = dt; }
|
||||
double getTimeDelayBetweenSlides() const { return _timePerSlide; }
|
||||
|
||||
|
||||
double getDuration(const osg::Node* node) const;
|
||||
|
||||
double getCurrentTimeDelayBetweenSlides() const;
|
||||
@@ -266,7 +266,7 @@ public:
|
||||
void setRequestReload(bool flag);
|
||||
bool getRequestReload() const { return _requestReload; }
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
~SlideEventHandler() {}
|
||||
@@ -276,13 +276,13 @@ protected:
|
||||
|
||||
void updateAlpha(bool, bool, float x, float y);
|
||||
void updateLight(float x, float y);
|
||||
|
||||
|
||||
|
||||
osg::observer_ptr<osgViewer::Viewer> _viewer;
|
||||
|
||||
|
||||
osg::observer_ptr<osg::Switch> _showSwitch;
|
||||
int _activePresentation;
|
||||
|
||||
|
||||
osg::observer_ptr<osg::Switch> _presentationSwitch;
|
||||
int _activeSlide;
|
||||
|
||||
@@ -296,11 +296,11 @@ protected:
|
||||
bool _loopPresentation;
|
||||
bool _pause;
|
||||
bool _hold;
|
||||
|
||||
|
||||
bool _updateLightActive;
|
||||
bool _updateOpacityActive;
|
||||
float _previousX, _previousY;
|
||||
|
||||
|
||||
bool _cursorOn;
|
||||
|
||||
bool _releaseAndCompileOnEachNewSlide;
|
||||
@@ -310,18 +310,18 @@ protected:
|
||||
osg::Timer_t _tickAtLastSlideOrLayerChange;
|
||||
|
||||
float _timeDelayOnNewSlideWithMovies;
|
||||
|
||||
|
||||
double _minimumTimeBetweenKeyPresses;
|
||||
double _timeLastKeyPresses;
|
||||
|
||||
|
||||
ActiveOperators _activeOperators;
|
||||
|
||||
|
||||
osg::ref_ptr<CompileSlideCallback> _compileSlideCallback;
|
||||
|
||||
bool _requestReload;
|
||||
|
||||
void updateOperators();
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
/* -*-c++-*- Present3D - Copyright (C) 1999-2006 Robert Osfield
|
||||
*
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* This software is open source and may be redistributed and/or modified under
|
||||
* the terms of the GNU General Public License (GPL) version 2.0.
|
||||
* The full license is in LICENSE.txt file included with this distribution,.
|
||||
*
|
||||
*
|
||||
* This software 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
|
||||
* include LICENSE.txt for more details.
|
||||
*/
|
||||
|
||||
@@ -74,17 +74,17 @@ class OSGPRESENTATION_EXPORT SlideShowConstructor
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
|
||||
enum CoordinateFrame { SLIDE, MODEL };
|
||||
|
||||
|
||||
|
||||
LayerAttributes* getOrCreateLayerAttributes(osg::Node* node);
|
||||
|
||||
|
||||
void setDuration(osg::Node* node,double duration)
|
||||
{
|
||||
getOrCreateLayerAttributes(node)->setDuration(duration);
|
||||
}
|
||||
|
||||
|
||||
void addKey(osg::Node* node,const KeyPosition& kp)
|
||||
{
|
||||
getOrCreateLayerAttributes(node)->addKey(kp);
|
||||
@@ -102,13 +102,13 @@ public:
|
||||
|
||||
void addPresentationKey(const KeyPosition& kp)
|
||||
{
|
||||
if (!_presentationSwitch) createPresentation();
|
||||
if (!_presentationSwitch) createPresentation();
|
||||
if (_presentationSwitch.valid()) addKey( _presentationSwitch.get(), kp);
|
||||
}
|
||||
|
||||
void addPresentationRunString(const std::string& runString)
|
||||
{
|
||||
if (!_presentationSwitch) createPresentation();
|
||||
if (!_presentationSwitch) createPresentation();
|
||||
if (_presentationSwitch.valid()) addRunString( _presentationSwitch.get(),runString);
|
||||
}
|
||||
|
||||
@@ -117,13 +117,13 @@ public:
|
||||
if (!_slide) addSlide();
|
||||
if (_slide.valid()) addKey(_slide.get(),kp);
|
||||
}
|
||||
|
||||
|
||||
void addSlideRunString(const std::string& runString)
|
||||
{
|
||||
if (!_slide) addSlide();
|
||||
if (_slide.valid()) addRunString(_slide.get(),runString);
|
||||
}
|
||||
|
||||
|
||||
void setSlideJump(bool relativeJump, int switchNum, int layerNum)
|
||||
{
|
||||
if (!_slide) addSlide();
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
if (!_currentLayer) addLayer();
|
||||
if (_currentLayer.valid()) addRunString(_currentLayer.get(),runString);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void setLayerJump(bool relativeJump, int switchNum, int layerNum)
|
||||
{
|
||||
@@ -223,7 +223,7 @@ public:
|
||||
struct ModelData
|
||||
{
|
||||
ModelData() {}
|
||||
|
||||
|
||||
std::string effect;
|
||||
std::string options;
|
||||
};
|
||||
@@ -317,24 +317,24 @@ public:
|
||||
SlideShowConstructor(osgDB::Options* options);
|
||||
|
||||
void createPresentation();
|
||||
|
||||
|
||||
void setBackgroundColor(const osg::Vec4& color, bool updateClearNode);
|
||||
const osg::Vec4& getBackgroundColor() const { return _backgroundColor; }
|
||||
|
||||
|
||||
void setTextColor(const osg::Vec4& color);
|
||||
const osg::Vec4& getTextColor() const { return _textFontDataDefault.color; }
|
||||
|
||||
|
||||
void setPresentationName(const std::string& name);
|
||||
|
||||
|
||||
void setPresentationAspectRatio(float aspectRatio);
|
||||
|
||||
void setPresentationAspectRatio(const std::string& str);
|
||||
|
||||
|
||||
void setPresentationDuration(double duration);
|
||||
|
||||
|
||||
void addSlide();
|
||||
|
||||
|
||||
void selectSlide(int slideNum);
|
||||
|
||||
|
||||
@@ -347,17 +347,17 @@ public:
|
||||
|
||||
void setSlideBackgrondHUD(bool hud) { _slideBackgroundAsHUD = hud; }
|
||||
void setSlideBackground(const std::string& name) { _slideBackgroundImageFileName = name; }
|
||||
|
||||
|
||||
void setSlideDuration(double duration);
|
||||
|
||||
|
||||
void addLayer(bool inheritPreviousLayers=true, bool defineAsBaseLayer=false);
|
||||
|
||||
|
||||
void selectLayer(int layerNum);
|
||||
|
||||
|
||||
void setLayerDuration(double duration);
|
||||
|
||||
|
||||
|
||||
// title settings
|
||||
FontData& getTitleFontData() { return _titleFontData; }
|
||||
FontData& getTitleFontDataDefault() { return _titleFontDataDefault; }
|
||||
@@ -368,7 +368,7 @@ public:
|
||||
// text settings
|
||||
FontData& getTextFontData() { return _textFontData; }
|
||||
FontData& getTextFontDataDefault() { return _textFontDataDefault; }
|
||||
|
||||
|
||||
PositionData& getTextPositionData() { return _textPositionData; }
|
||||
PositionData& getTextPositionDataDefault() { return _textPositionDataDefault; }
|
||||
|
||||
@@ -388,11 +388,11 @@ public:
|
||||
void layerClickEventOperation(const KeyPosition& keyPos, bool relativeJump=true, int slideNum=0, int layerNum=0);
|
||||
|
||||
void addToCurrentLayer(osg::Node* subgraph);
|
||||
|
||||
|
||||
void addBullet(const std::string& bullet, PositionData& positionData, FontData& fontData);
|
||||
|
||||
|
||||
void addParagraph(const std::string& paragraph, PositionData& positionData, FontData& fontData);
|
||||
|
||||
|
||||
void addImage(const std::string& filename,const PositionData& positionData, const ImageData& imageData);
|
||||
|
||||
void addStereoImagePair(const std::string& filenameLeft, const ImageData& imageDataLeft, const std::string& filenameRight,const ImageData& imageDataRight, const PositionData& positionData);
|
||||
@@ -406,17 +406,17 @@ public:
|
||||
void addModel(osg::Node* subgraph, const PositionData& positionData, const ModelData& modelData);
|
||||
|
||||
void addModel(const std::string& filename, const PositionData& positionData, const ModelData& modelData);
|
||||
|
||||
|
||||
void addVolume(const std::string& filename, const PositionData& positionData, const VolumeData& volumeData);
|
||||
|
||||
osg::Group* takePresentation() { return _root.release(); }
|
||||
|
||||
|
||||
osg::Group* getPresentation() { return _root.get(); }
|
||||
|
||||
osg::Switch* getPresentationSwitch() { return _presentationSwitch.get(); }
|
||||
|
||||
osg::Switch* getCurrentSlide() { return _slide.get(); }
|
||||
|
||||
|
||||
osg::Group* getCurrentLayer() { return _currentLayer.get(); }
|
||||
|
||||
void setLoopPresentation(bool loop) { _loopPresentation = loop; }
|
||||
@@ -438,15 +438,15 @@ protected:
|
||||
|
||||
osg::Vec3 computePositionInModelCoords(const PositionData& positionData) const;
|
||||
void updatePositionFromInModelCoords(const osg::Vec3& vertex, PositionData& positionData) const;
|
||||
|
||||
|
||||
osg::Vec3 convertSlideToModel(const osg::Vec3& position) const;
|
||||
osg::Vec3 convertModelToSlide(const osg::Vec3& position) const;
|
||||
|
||||
osg::AnimationPathCallback* getAnimationPathCallback(const PositionData& positionData);
|
||||
|
||||
|
||||
osg::Node* attachMaterialAnimation(osg::Node* model, const PositionData& positionData);
|
||||
bool attachTexMat(osg::StateSet* stateset, const ImageData& imageData, float s, float t, bool textureRectangle);
|
||||
|
||||
|
||||
osg::StateSet* createTransformStateSet()
|
||||
{
|
||||
osg::StateSet* stateset = new osg::StateSet;
|
||||
@@ -469,7 +469,7 @@ protected:
|
||||
unsigned int _rightEyeMask;
|
||||
|
||||
osg::ref_ptr<HUDSettings> _hudSettings;
|
||||
|
||||
|
||||
// title settings
|
||||
FontData _titleFontData;
|
||||
FontData _titleFontDataDefault;
|
||||
@@ -480,7 +480,7 @@ protected:
|
||||
// text settings
|
||||
FontData _textFontData;
|
||||
FontData _textFontDataDefault;
|
||||
|
||||
|
||||
PositionData _textPositionData;
|
||||
PositionData _textPositionDataDefault;
|
||||
|
||||
@@ -501,24 +501,24 @@ protected:
|
||||
|
||||
osg::ref_ptr<osg::Group> _root;
|
||||
osg::ref_ptr<osg::Switch> _presentationSwitch;
|
||||
|
||||
|
||||
osg::ref_ptr<osg::ClearNode> _slideClearNode;
|
||||
osg::ref_ptr<osg::Switch> _slide;
|
||||
std::string _slideTitle;
|
||||
std::string _slideBackgroundImageFileName;
|
||||
bool _slideBackgroundAsHUD;
|
||||
|
||||
|
||||
osg::ref_ptr<osg::Group> _previousLayer;
|
||||
osg::ref_ptr<osg::Group> _currentLayer;
|
||||
|
||||
|
||||
osg::ref_ptr<FilePathData> _filePathData;
|
||||
|
||||
|
||||
osg::ref_ptr<osg::Group> _layerToApplyEventCallbackTo;
|
||||
osg::ref_ptr<osgGA::GUIEventHandler> _currentEventCallbackToApply;
|
||||
|
||||
|
||||
std::string findFileAndRecordPath(const std::string& filename);
|
||||
|
||||
|
||||
void recordOptionsFilePath(const osgDB::Options* options);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user