SlideShowConstructor
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2018 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 SLIDESHOWCONSTRUCTOR
#define SLIDESHOWCONSTRUCTOR
#include <osg/Vec3>
#include <osg/Vec4>
#include <osg/ImageUtils>
#include <osg/Group>
#include <osg/ClearNode>
#include <osg/Switch>
#include <osg/AnimationPath>
#include <osg/TransferFunction>
#include <osg/ImageStream>
#include <osg/ImageSequence>
#include <osg/ScriptEngine>
#include <osgText/Text>
#include <osgGA/GUIEventAdapter>
#include <osgDB/FileUtils>
#include <osgVolume/VolumeTile>
#include <osgVolume/VolumeSettings>
#include <osgPresentation/AnimationMaterial>
#include <osgPresentation/SlideEventHandler>
#include <osgPresentation/PropertyManager>
#include <osgPresentation/Timeout>
namespace osgPresentation
{
class OSGPRESENTATION_EXPORT HUDTransform : public osg::Transform
{
public:
HUDTransform(HUDSettings* hudSettings);
virtual bool computeLocalToWorldMatrix(osg::Matrix& matrix,osg::NodeVisitor* nv) const;
virtual bool computeWorldToLocalMatrix(osg::Matrix& matrix,osg::NodeVisitor*) const;
protected:
virtual ~HUDTransform();
osg::ref_ptr<HUDSettings> _hudSettings;
};
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);
}
void addRunString(osg::Node* node, const std::string& runString)
{
getOrCreateLayerAttributes(node)->addRunString(runString);
}
void setJump(osg::Node* node, const JumpData& jumpData)
{
getOrCreateLayerAttributes(node)->setJump(jumpData);
}
void addPresentationKey(const KeyPosition& kp)
{
if (!_presentationSwitch) createPresentation();
if (_presentationSwitch.valid()) addKey( _presentationSwitch.get(), kp);
}
void addPresentationRunString(const std::string& runString)
{
if (!_presentationSwitch) createPresentation();
if (_presentationSwitch.valid()) addRunString( _presentationSwitch.get(),runString);
}
void addSlideKey(const KeyPosition& kp)
{
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(const JumpData& jumpData)
{
if (!_slide) addSlide();
if (_slide.valid()) setJump(_slide.get(),jumpData);
}
void addLayerKey(const KeyPosition& kp)
{
if (!_currentLayer) addLayer();
if (_currentLayer.valid()) addKey(_currentLayer.get(),kp);
}
void addLayerRunString(const std::string& runString)
{
if (!_currentLayer) addLayer();
if (_currentLayer.valid()) addRunString(_currentLayer.get(),runString);
}
void setLayerJump(const JumpData& jumpData)
{
if (!_currentLayer) addLayer();
if (_currentLayer.valid()) setJump(_currentLayer.get(),jumpData);
}
struct PositionData
{
PositionData():
frame(SlideShowConstructor::SLIDE),
position(0.0f,1.0f,0.0f),
//position(0.5f,0.5f,0.0f),
scale(1.0f,1.0f,1.0f),
rotate(0.0f,0.0f,0.0f,1.0f),
rotation(0.0f,0.0f,1.0f,0.0f),
absolute_path(false),
inverse_path(false),
path_time_offset(0.0),
path_time_multiplier(1.0f),
path_loop_mode(osg::AnimationPath::NO_LOOPING),
animation_material_time_offset(0.0),
animation_material_time_multiplier(1.0),
animation_material_loop_mode(AnimationMaterial::NO_LOOPING),
autoRotate(false),
autoScale(false),
hud(false) {}
bool requiresPosition() const
{
return (position[0]!=0.0f || position[1]!=1.0f || position[2]!=1.0f);
}
bool requiresScale() const
{
return (scale[0]!=1.0f || scale[1]!=1.0f || scale[2]!=1.0f);
}
bool requiresRotate() const
{
return rotate[0]!=0.0f;
}
bool requiresAnimation() const
{
return (rotation[0]!=0.0f || !path.empty());
}
bool requiresMaterialAnimation() const
{
return !animation_material_filename.empty() || !fade.empty();
}
CoordinateFrame frame;
osg::Vec3 position;
osg::Vec3 scale;
osg::Vec4 rotate;
osg::Vec4 rotation;
std::string animation_name;
bool absolute_path;
bool inverse_path;
double path_time_offset;
double path_time_multiplier;
osg::AnimationPath::LoopMode path_loop_mode;
std::string path;
double animation_material_time_offset;
double animation_material_time_multiplier;
AnimationMaterial::LoopMode animation_material_loop_mode;
std::string animation_material_filename;
std::string fade;
bool autoRotate;
bool autoScale;
bool hud;
};
struct ModelData
{
ModelData() {}
std::string region;
std::string effect;
std::string options;
};
struct ImageData
{
ImageData():
width(1.0f),
height(1.0f),
region(0.0f,0.0f,1.0f,1.0f),
region_in_pixel_coords(false),
texcoord_rotate(0.0f),
loopingMode(osg::ImageStream::NO_LOOPING),
page(-1),
backgroundColor(1.0f,1.0f,1.0f,1.0f),
fps(30.0),
duration(-1.0),
imageSequence(false),
imageSequencePagingMode(osg::ImageSequence::PAGE_AND_DISCARD_USED_IMAGES),
imageSequenceInteractionMode(PLAY_AUTOMATICALLY_LIKE_MOVIE),
blendingHint(USE_IMAGE_ALPHA),
delayTime(0.0),
startTime(0.0),
stopTime(-1.0),
volume("")
{}
std::string options;
float width;
float height;
osg::Vec4 region;
bool region_in_pixel_coords;
float texcoord_rotate;
osg::ImageStream::LoopingMode loopingMode;
int page;
osg::Vec4 backgroundColor;
double fps;
double duration;
bool imageSequence;
osg::ImageSequence::Mode imageSequencePagingMode;
enum ImageSequenceInteractionMode
{
PLAY_AUTOMATICALLY_LIKE_MOVIE,
USE_MOUSE_X_POSITION,
USE_MOUSE_Y_POSITION
};
ImageSequenceInteractionMode imageSequenceInteractionMode;
enum BlendingHint
{
USE_IMAGE_ALPHA,
OFF,
ON
};
BlendingHint blendingHint;
double delayTime;
double startTime;
double stopTime;
std::string volume;
};
struct VolumeData
{
typedef osgVolume::VolumeSettings::ShadingModel ShadingModel;
typedef osgVolume::VolumeSettings::Technique Technique;
VolumeData():
shadingModel(osgVolume::VolumeSettings::Standard),
useTabbedDragger(false),
useTrackballDragger(false),
region_in_pixel_coords(false),
alphaValue(),
cutoffValue(),
exteriorTransparencyFactorValue(),
sampleDensityValue(),
sampleRatioValue(),
colorSpaceOperation(osg::NO_COLOR_SPACE_OPERATION),
colorModulate(1.0f,1.0f,1.0f,1.0f),
technique(osgVolume::VolumeSettings::RayTraced)
{
hullPositionData.position = osg::Vec3(0.0,0.0,0.0);
hullPositionData.frame = osgPresentation::SlideShowConstructor::MODEL;
}
osg::ref_ptr<osgVolume::VolumeSettings> volumeSettings;
std::string options;
ShadingModel shadingModel;
osg::ref_ptr<osg::TransferFunction1D> transferFunction;
bool useTabbedDragger;
bool useTrackballDragger;
std::string region;
bool region_in_pixel_coords;
std::string alphaValue;
std::string cutoffValue;
std::string exteriorTransparencyFactorValue;
std::string sampleDensityValue;
std::string sampleDensityWhenMovingValue;
std::string sampleRatioValue;
std::string sampleRatioWhenMovingValue;
osg::ColorSpaceOperation colorSpaceOperation;
osg::Vec4 colorModulate;
Technique technique;
std::string hull;
PositionData hullPositionData;
};
struct FontData
{
FontData():
font("fonts/arial.ttf"),
layout(osgText::Text::LEFT_TO_RIGHT),
alignment(osgText::Text::LEFT_BASE_LINE),
axisAlignment(osgText::Text::XZ_PLANE),
characterSizeMode(osgText::Text::OBJECT_COORDS),
characterSize(0.04f),
maximumHeight(1.0f),
maximumWidth(1.0f),
color(1.0f,1.0f,1.0f,1.0f) {}
std::string font;
osgText::Text::Layout layout;
osgText::Text::AlignmentType alignment;
osgText::Text::AxisAlignment axisAlignment;
osgText::Text::CharacterSizeMode characterSizeMode;
float characterSize;
float maximumHeight;
float maximumWidth;
osg::Vec4 color;
};
enum ScriptCallbackType
{
UPDATE_SCRIPT,
EVENT_SCRIPT
};
typedef std::pair<ScriptCallbackType, std::string> ScriptPair;
struct ScriptData
{
ScriptData() {}
typedef std::vector<ScriptPair> Scripts;
Scripts scripts;
bool hasScripts() const { return !scripts.empty(); }
};
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 addScriptEngine(const std::string& scriptEngineName);
void addScriptFile(const std::string& name, const std::string& filename);
void addScript(const std::string& name, const std::string& language, const std::string& script);
void addSlide();
void selectSlide(int slideNum);
void setSlideTitle(const std::string& name, PositionData& positionData, FontData& fontData)
{
_titlePositionData = positionData;
_titleFontData = fontData;
_slideTitle = name;
}
void setSlideBackgrondHUD(bool hud) { _slideBackgroundAsHUD = hud; }
void setSlideBackground(const std::string& name) { _slideBackgroundImageFileName = name; }
void setSlideDuration(double duration);
Timeout* addTimeout();
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; }
PositionData& getTitlePositionData() { return _titlePositionData; }
PositionData& getTitlePositionDataDefault() { return _titlePositionDataDefault; }
// text settings
FontData& getTextFontData() { return _textFontData; }
FontData& getTextFontDataDefault() { return _textFontDataDefault; }
PositionData& getTextPositionData() { return _textPositionData; }
PositionData& getTextPositionDataDefault() { return _textPositionDataDefault; }
void translateTextCursor(const osg::Vec3& delta) { _textPositionData.position += delta; }
// image settings
PositionData& getImagePositionData() { return _imagePositionData; }
PositionData& getImagePositionDataDefault() { return _imagePositionDataDefault; }
// model settings
PositionData& getModelPositionData() { return _modelPositionData; }
PositionData& getModelPositionDataDefault() { return _modelPositionDataDefault; }
enum PresentationContext {
CURRENT_PRESENTATION,
CURRENT_SLIDE,
CURRENT_LAYER
};
void addEventHandler(PresentationContext presentationContext, osg::ref_ptr<osgGA::GUIEventHandler> handler);
void keyToDoOperation(PresentationContext presentationContext, int key, Operation operation, const JumpData& jumpData=JumpData());
void keyToDoOperation(PresentationContext presentationContext, int key, const std::string& command, Operation operation, const JumpData& jumpData=JumpData());
void keyEventOperation(PresentationContext presentationContext, int key, const KeyPosition& keyPos, const JumpData& jumpData=JumpData());
void layerClickToDoOperation(Operation operation, const JumpData& jumpData=JumpData());
void layerClickToDoOperation(const std::string& command, Operation operation, const JumpData& jumpData=JumpData());
void layerClickEventOperation(const KeyPosition& keyPos, const JumpData& jumpData=JumpData());
void addPropertyAnimation(PresentationContext presentationContext, PropertyAnimation* propertyAnimation);
void addScriptCallback(PresentationContext presentationContext, ScriptCallbackType scriptCallbackType, const std::string& functionName);
void addScriptToNode(ScriptCallbackType scriptCallbackType, const std::string& name, osg::Node* node);
void addScriptsToNode(const ScriptData& scriptData, osg::Node* node);
void addToCurrentLayer(osg::Node* subgraph);
void addBullet(const std::string& bullet, PositionData& positionData, FontData& fontData, const ScriptData& scriptData);
void addParagraph(const std::string& paragraph, PositionData& positionData, FontData& fontData, const ScriptData& scriptData);
osg::ref_ptr<osg::Image> readImage(const std::string& filename, const ImageData& imageData);
void addImage(const std::string& filename,const PositionData& positionData, const ImageData& imageData, const ScriptData& scriptData);
void addStereoImagePair(const std::string& filenameLeft, const ImageData& imageDataLeft, const std::string& filenameRight,const ImageData& imageDataRight, const PositionData& positionData, const ScriptData& scriptData);
void addGraph(const std::string& filename,const PositionData& positionData, const ImageData& imageData, const ScriptData& scriptData);
void addVNC(const std::string& filename,const PositionData& positionData, const ImageData& imageData, const std::string& password, const ScriptData& scriptData);
void addBrowser(const std::string& filename,const PositionData& positionData, const ImageData& imageData, const ScriptData& scriptData);
void addPDF(const std::string& filename,const PositionData& positionData, const ImageData& imageData, const ScriptData& scriptData);
osg::ref_ptr<osg::Image> addInteractiveImage(const std::string& filename,const PositionData& positionData, const ImageData& imageData, const ScriptData& scriptData);
void addModel(osg::Node* subgraph, const PositionData& positionData, const ModelData& modelData, const ScriptData& scriptData);
void addModel(const std::string& filename, const PositionData& positionData, const ModelData& modelData, const ScriptData& scriptData);
void setUpVolumeScalarProperty(osgVolume::VolumeTile* tile, osgVolume::ScalarProperty* property, const std::string& source);
void addVolume(const std::string& filename, const PositionData& positionData, const VolumeData& volumeData, const ScriptData& scriptData);
osg::Group* takePresentation() { return _root.release(); }
osg::Group* getPresentation() { return _root.get(); }
osg::Switch* getPresentationSwitch() { return _presentationSwitch.get(); }
osg::Switch* getCurrentSlide() { return _slide.get(); }
void pushCurrentLayer(osg::Group* newLayerGroup);
void popCurrentLayer();
osg::Group* getCurrentLayer() { return _currentLayer.get(); }
void setLoopPresentation(bool loop) { _loopPresentation = loop; }
bool getLoopPresentation() const { return _loopPresentation; }
void setAutoSteppingActive(bool flag = true) { _autoSteppingActive = flag; }
bool getAutoSteppingActive() const { return _autoSteppingActive; }
void setHUDSettings(HUDSettings* hudSettings) { _hudSettings = hudSettings; }
HUDSettings* getHUDSettings() { return _hudSettings.get(); }
const HUDSettings* getHUDSettings() const { return _hudSettings.get(); }
osg::ScriptEngine* getOrCreateScriptEngine(const std::string& language);
protected:
void findImageStreamsAndAddCallbacks(osg::Node* node);
osg::Geometry* createTexturedQuadGeometry(const osg::Vec3& pos, const osg::Vec4& rotation, float width,float height, osg::Image* image, bool& usedTextureRectangle);
void setUpMovieVolume(osg::Node* subgraph, osg::ImageStream* imageStream, const ImageData& imageData);
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;
#if !defined(OSG_GLES2_AVAILABLE)
stateset->setMode(GL_NORMALIZE,osg::StateAttribute::ON);
#endif
return stateset;
}
osg::Node* decorateSubgraphForPosition(osg::Node* node, PositionData& positionData);
osg::Node* decorateSubgraphForPositionAndAnimation(osg::Node* node, const PositionData& positionData);
osg::ref_ptr<osgDB::Options> _options;
osg::Vec3 _slideOrigin;
osg::Vec3 _eyeOrigin;
double _slideWidth;
double _slideHeight;
double _slideDistance;
unsigned int _leftEyeMask;
unsigned int _rightEyeMask;
osg::ref_ptr<HUDSettings> _hudSettings;
// title settings
FontData _titleFontData;
FontData _titleFontDataDefault;
PositionData _titlePositionData;
PositionData _titlePositionDataDefault;
// text settings
FontData _textFontData;
FontData _textFontDataDefault;
PositionData _textPositionData;
PositionData _textPositionDataDefault;
// image settings
PositionData _imagePositionData;
PositionData _imagePositionDataDefault;
// model settings
PositionData _modelPositionData;
PositionData _modelPositionDataDefault;
bool _loopPresentation;
bool _autoSteppingActive;
osg::Vec4 _backgroundColor;
std::string _presentationName;
double _presentationDuration;
osg::ref_ptr<osgPresentation::PropertyManager> _propertyManager;
osg::ref_ptr<osgPresentation::PropertyEventCallback> _propertyEventCallback;
osg::ref_ptr<osg::Group> _root;
osg::ref_ptr<osg::Switch> _presentationSwitch;
typedef std::map< std::string, osg::ref_ptr<osg::ScriptEngine> > ScriptEngineMap;
ScriptEngineMap _scriptEngines;
typedef std::map< std::string, osg::ref_ptr<osg::Script> > ScriptMap;
ScriptMap _scripts;
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;
typedef std::vector< osg::ref_ptr<osg::Group> > LayerStack;
LayerStack _layerStack;
osg::ref_ptr<FilePathData> _filePathData;
osg::ref_ptr<osg::Group> _layerToApplyEventCallbackTo;
typedef std::list< osg::ref_ptr<osgGA::GUIEventHandler> > EventHandlerList;
EventHandlerList _currentEventCallbacksToApply;
std::string findFileAndRecordPath(const std::string& filename);
void recordOptionsFilePath(const osgDB::Options* options);
};
}
#endif
AnimationMaterial
AnimationPath
ClearNode
FileUtils
GUIEventAdapter
Group
ImageSequence
ImageStream
ImageUtils
PropertyManager
SlideEventHandler
Switch
Text
Timeout
TransferFunction
GL_NORMALIZE
#define GL_NORMALIZE
Definition Transform:25
Vec3
Vec4
VolumeSettings
VolumeTile
osgDB::Options
Definition Options:30
osgPresentation::AnimationMaterial
Definition AnimationMaterial:33
osgPresentation::AnimationMaterial::LoopMode
LoopMode
Definition AnimationMaterial:56
osgPresentation::HUDSettings
Definition Timeout:24
osgPresentation::HUDTransform::HUDTransform
HUDTransform(HUDSettings *hudSettings)
osgPresentation::HUDTransform::computeLocalToWorldMatrix
virtual bool computeLocalToWorldMatrix(osg::Matrix &matrix, osg::NodeVisitor *nv) const
osgPresentation::HUDTransform::_hudSettings
osg::ref_ptr< HUDSettings > _hudSettings
Definition SlideShowConstructor:60
osgPresentation::HUDTransform::~HUDTransform
virtual ~HUDTransform()
osgPresentation::HUDTransform::computeWorldToLocalMatrix
virtual bool computeWorldToLocalMatrix(osg::Matrix &matrix, osg::NodeVisitor *) const
osgPresentation::PropertyAnimation
Definition PropertyManager:133
osgPresentation::SlideShowConstructor::_leftEyeMask
unsigned int _leftEyeMask
Definition SlideShowConstructor:564
osgPresentation::SlideShowConstructor::getOrCreateScriptEngine
osg::ScriptEngine * getOrCreateScriptEngine(const std::string &language)
osgPresentation::SlideShowConstructor::addStereoImagePair
void addStereoImagePair(const std::string &filenameLeft, const ImageData &imageDataLeft, const std::string &filenameRight, const ImageData &imageDataRight, const PositionData &positionData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::getImagePositionDataDefault
PositionData & getImagePositionDataDefault()
Definition SlideShowConstructor:445
osgPresentation::SlideShowConstructor::_filePathData
osg::ref_ptr< FilePathData > _filePathData
Definition SlideShowConstructor:621
osgPresentation::SlideShowConstructor::setAutoSteppingActive
void setAutoSteppingActive(bool flag=true)
Definition SlideShowConstructor:518
osgPresentation::SlideShowConstructor::_slideHeight
double _slideHeight
Definition SlideShowConstructor:562
osgPresentation::SlideShowConstructor::layerClickToDoOperation
void layerClickToDoOperation(const std::string &command, Operation operation, const JumpData &jumpData=JumpData())
osgPresentation::SlideShowConstructor::_currentEventCallbacksToApply
EventHandlerList _currentEventCallbacksToApply
Definition SlideShowConstructor:626
osgPresentation::SlideShowConstructor::getModelPositionData
PositionData & getModelPositionData()
Definition SlideShowConstructor:448
osgPresentation::SlideShowConstructor::popCurrentLayer
void popCurrentLayer()
osgPresentation::SlideShowConstructor::addScriptsToNode
void addScriptsToNode(const ScriptData &scriptData, osg::Node *node)
osgPresentation::SlideShowConstructor::_layerStack
LayerStack _layerStack
Definition SlideShowConstructor:619
osgPresentation::SlideShowConstructor::_titleFontData
FontData _titleFontData
Definition SlideShowConstructor:570
osgPresentation::SlideShowConstructor::translateTextCursor
void translateTextCursor(const osg::Vec3 &delta)
Definition SlideShowConstructor:441
osgPresentation::SlideShowConstructor::addLayerRunString
void addLayerRunString(const std::string &runString)
Definition SlideShowConstructor:131
osgPresentation::SlideShowConstructor::layerClickToDoOperation
void layerClickToDoOperation(Operation operation, const JumpData &jumpData=JumpData())
osgPresentation::SlideShowConstructor::addSlideRunString
void addSlideRunString(const std::string &runString)
Definition SlideShowConstructor:113
osgPresentation::SlideShowConstructor::_slideTitle
std::string _slideTitle
Definition SlideShowConstructor:612
osgPresentation::SlideShowConstructor::addSlideKey
void addSlideKey(const KeyPosition &kp)
Definition SlideShowConstructor:107
osgPresentation::SlideShowConstructor::getHUDSettings
HUDSettings * getHUDSettings()
Definition SlideShowConstructor:522
osgPresentation::SlideShowConstructor::ScriptPair
std::pair< ScriptCallbackType, std::string > ScriptPair
Definition SlideShowConstructor:365
osgPresentation::SlideShowConstructor::addParagraph
void addParagraph(const std::string &paragraph, PositionData &positionData, FontData &fontData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::pushCurrentLayer
void pushCurrentLayer(osg::Group *newLayerGroup)
osgPresentation::SlideShowConstructor::createTransformStateSet
osg::StateSet * createTransformStateSet()
Definition SlideShowConstructor:545
osgPresentation::SlideShowConstructor::getTitlePositionData
PositionData & getTitlePositionData()
Definition SlideShowConstructor:431
osgPresentation::SlideShowConstructor::getCurrentLayer
osg::Group * getCurrentLayer()
Definition SlideShowConstructor:513
osgPresentation::SlideShowConstructor::layerClickEventOperation
void layerClickEventOperation(const KeyPosition &keyPos, const JumpData &jumpData=JumpData())
osgPresentation::SlideShowConstructor::setBackgroundColor
void setBackgroundColor(const osg::Vec4 &color, bool updateClearNode)
osgPresentation::SlideShowConstructor::addToCurrentLayer
void addToCurrentLayer(osg::Node *subgraph)
osgPresentation::SlideShowConstructor::_presentationDuration
double _presentationDuration
Definition SlideShowConstructor:596
osgPresentation::SlideShowConstructor::_imagePositionDataDefault
PositionData _imagePositionDataDefault
Definition SlideShowConstructor:585
osgPresentation::SlideShowConstructor::getTextFontDataDefault
FontData & getTextFontDataDefault()
Definition SlideShowConstructor:436
osgPresentation::SlideShowConstructor::readImage
osg::ref_ptr< osg::Image > readImage(const std::string &filename, const ImageData &imageData)
osgPresentation::SlideShowConstructor::_slideDistance
double _slideDistance
Definition SlideShowConstructor:563
osgPresentation::SlideShowConstructor::addLayerKey
void addLayerKey(const KeyPosition &kp)
Definition SlideShowConstructor:125
osgPresentation::SlideShowConstructor::_slideBackgroundImageFileName
std::string _slideBackgroundImageFileName
Definition SlideShowConstructor:613
osgPresentation::SlideShowConstructor::addPDF
void addPDF(const std::string &filename, const PositionData &positionData, const ImageData &imageData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::addVolume
void addVolume(const std::string &filename, const PositionData &positionData, const VolumeData &volumeData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::getBackgroundColor
const osg::Vec4 & getBackgroundColor() const
Definition SlideShowConstructor:382
osgPresentation::SlideShowConstructor::_textPositionDataDefault
PositionData _textPositionDataDefault
Definition SlideShowConstructor:581
osgPresentation::SlideShowConstructor::getAutoSteppingActive
bool getAutoSteppingActive() const
Definition SlideShowConstructor:519
osgPresentation::SlideShowConstructor::getPresentation
osg::Group * getPresentation()
Definition SlideShowConstructor:504
osgPresentation::SlideShowConstructor::_titlePositionDataDefault
PositionData _titlePositionDataDefault
Definition SlideShowConstructor:574
osgPresentation::SlideShowConstructor::getModelPositionDataDefault
PositionData & getModelPositionDataDefault()
Definition SlideShowConstructor:449
osgPresentation::SlideShowConstructor::_slide
osg::ref_ptr< osg::Switch > _slide
Definition SlideShowConstructor:611
osgPresentation::SlideShowConstructor::addKey
void addKey(osg::Node *node, const KeyPosition &kp)
Definition SlideShowConstructor:80
osgPresentation::SlideShowConstructor::getTextPositionData
PositionData & getTextPositionData()
Definition SlideShowConstructor:438
osgPresentation::SlideShowConstructor::setUpMovieVolume
void setUpMovieVolume(osg::Node *subgraph, osg::ImageStream *imageStream, const ImageData &imageData)
osgPresentation::SlideShowConstructor::_modelPositionData
PositionData _modelPositionData
Definition SlideShowConstructor:588
osgPresentation::SlideShowConstructor::getTitleFontData
FontData & getTitleFontData()
Definition SlideShowConstructor:428
osgPresentation::SlideShowConstructor::setPresentationName
void setPresentationName(const std::string &name)
osgPresentation::SlideShowConstructor::getImagePositionData
PositionData & getImagePositionData()
Definition SlideShowConstructor:444
osgPresentation::SlideShowConstructor::decorateSubgraphForPosition
osg::Node * decorateSubgraphForPosition(osg::Node *node, PositionData &positionData)
osgPresentation::SlideShowConstructor::getHUDSettings
const HUDSettings * getHUDSettings() const
Definition SlideShowConstructor:523
osgPresentation::SlideShowConstructor::addBrowser
void addBrowser(const std::string &filename, const PositionData &positionData, const ImageData &imageData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::getTextPositionDataDefault
PositionData & getTextPositionDataDefault()
Definition SlideShowConstructor:439
osgPresentation::SlideShowConstructor::_eyeOrigin
osg::Vec3 _eyeOrigin
Definition SlideShowConstructor:560
osgPresentation::SlideShowConstructor::_textFontDataDefault
FontData _textFontDataDefault
Definition SlideShowConstructor:578
osgPresentation::SlideShowConstructor::ScriptEngineMap
std::map< std::string, osg::ref_ptr< osg::ScriptEngine > > ScriptEngineMap
Definition SlideShowConstructor:604
osgPresentation::SlideShowConstructor::_textFontData
FontData _textFontData
Definition SlideShowConstructor:577
osgPresentation::SlideShowConstructor::takePresentation
osg::Group * takePresentation()
Definition SlideShowConstructor:502
osgPresentation::SlideShowConstructor::addScript
void addScript(const std::string &name, const std::string &language, const std::string &script)
osgPresentation::SlideShowConstructor::_hudSettings
osg::ref_ptr< HUDSettings > _hudSettings
Definition SlideShowConstructor:567
osgPresentation::SlideShowConstructor::getCurrentSlide
osg::Switch * getCurrentSlide()
Definition SlideShowConstructor:508
osgPresentation::SlideShowConstructor::addInteractiveImage
osg::ref_ptr< osg::Image > addInteractiveImage(const std::string &filename, const PositionData &positionData, const ImageData &imageData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::computePositionInModelCoords
osg::Vec3 computePositionInModelCoords(const PositionData &positionData) const
osgPresentation::SlideShowConstructor::getAnimationPathCallback
osg::AnimationPathCallback * getAnimationPathCallback(const PositionData &positionData)
osgPresentation::SlideShowConstructor::recordOptionsFilePath
void recordOptionsFilePath(const osgDB::Options *options)
osgPresentation::SlideShowConstructor::CoordinateFrame
CoordinateFrame
Definition SlideShowConstructor:69
osgPresentation::SlideShowConstructor::MODEL
@ MODEL
Definition SlideShowConstructor:69
osgPresentation::SlideShowConstructor::SLIDE
@ SLIDE
Definition SlideShowConstructor:69
osgPresentation::SlideShowConstructor::_presentationName
std::string _presentationName
Definition SlideShowConstructor:595
osgPresentation::SlideShowConstructor::_imagePositionData
PositionData _imagePositionData
Definition SlideShowConstructor:584
osgPresentation::SlideShowConstructor::convertModelToSlide
osg::Vec3 convertModelToSlide(const osg::Vec3 &position) const
osgPresentation::SlideShowConstructor::setDuration
void setDuration(osg::Node *node, double duration)
Definition SlideShowConstructor:75
osgPresentation::SlideShowConstructor::_titleFontDataDefault
FontData _titleFontDataDefault
Definition SlideShowConstructor:571
osgPresentation::SlideShowConstructor::addImage
void addImage(const std::string &filename, const PositionData &positionData, const ImageData &imageData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::addPresentationRunString
void addPresentationRunString(const std::string &runString)
Definition SlideShowConstructor:101
osgPresentation::SlideShowConstructor::findImageStreamsAndAddCallbacks
void findImageStreamsAndAddCallbacks(osg::Node *node)
osgPresentation::SlideShowConstructor::setSlideJump
void setSlideJump(const JumpData &jumpData)
Definition SlideShowConstructor:119
osgPresentation::SlideShowConstructor::addScriptCallback
void addScriptCallback(PresentationContext presentationContext, ScriptCallbackType scriptCallbackType, const std::string &functionName)
osgPresentation::SlideShowConstructor::_rightEyeMask
unsigned int _rightEyeMask
Definition SlideShowConstructor:565
osgPresentation::SlideShowConstructor::_slideOrigin
osg::Vec3 _slideOrigin
Definition SlideShowConstructor:559
osgPresentation::SlideShowConstructor::setSlideDuration
void setSlideDuration(double duration)
osgPresentation::SlideShowConstructor::setLayerDuration
void setLayerDuration(double duration)
osgPresentation::SlideShowConstructor::setPresentationDuration
void setPresentationDuration(double duration)
osgPresentation::SlideShowConstructor::addEventHandler
void addEventHandler(PresentationContext presentationContext, osg::ref_ptr< osgGA::GUIEventHandler > handler)
osgPresentation::SlideShowConstructor::ScriptCallbackType
ScriptCallbackType
Definition SlideShowConstructor:360
osgPresentation::SlideShowConstructor::UPDATE_SCRIPT
@ UPDATE_SCRIPT
Definition SlideShowConstructor:361
osgPresentation::SlideShowConstructor::EVENT_SCRIPT
@ EVENT_SCRIPT
Definition SlideShowConstructor:362
osgPresentation::SlideShowConstructor::getTitlePositionDataDefault
PositionData & getTitlePositionDataDefault()
Definition SlideShowConstructor:432
osgPresentation::SlideShowConstructor::setJump
void setJump(osg::Node *node, const JumpData &jumpData)
Definition SlideShowConstructor:90
osgPresentation::SlideShowConstructor::addPropertyAnimation
void addPropertyAnimation(PresentationContext presentationContext, PropertyAnimation *propertyAnimation)
osgPresentation::SlideShowConstructor::getTitleFontDataDefault
FontData & getTitleFontDataDefault()
Definition SlideShowConstructor:429
osgPresentation::SlideShowConstructor::setPresentationAspectRatio
void setPresentationAspectRatio(float aspectRatio)
osgPresentation::SlideShowConstructor::setSlideTitle
void setSlideTitle(const std::string &name, PositionData &positionData, FontData &fontData)
Definition SlideShowConstructor:406
osgPresentation::SlideShowConstructor::createPresentation
void createPresentation()
osgPresentation::SlideShowConstructor::_presentationSwitch
osg::ref_ptr< osg::Switch > _presentationSwitch
Definition SlideShowConstructor:602
osgPresentation::SlideShowConstructor::getTextFontData
FontData & getTextFontData()
Definition SlideShowConstructor:435
osgPresentation::SlideShowConstructor::addGraph
void addGraph(const std::string &filename, const PositionData &positionData, const ImageData &imageData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::_slideWidth
double _slideWidth
Definition SlideShowConstructor:561
osgPresentation::SlideShowConstructor::_slideClearNode
osg::ref_ptr< osg::ClearNode > _slideClearNode
Definition SlideShowConstructor:610
osgPresentation::SlideShowConstructor::createTexturedQuadGeometry
osg::Geometry * createTexturedQuadGeometry(const osg::Vec3 &pos, const osg::Vec4 &rotation, float width, float height, osg::Image *image, bool &usedTextureRectangle)
osgPresentation::SlideShowConstructor::addSlide
void addSlide()
osgPresentation::SlideShowConstructor::EventHandlerList
std::list< osg::ref_ptr< osgGA::GUIEventHandler > > EventHandlerList
Definition SlideShowConstructor:625
osgPresentation::SlideShowConstructor::_loopPresentation
bool _loopPresentation
Definition SlideShowConstructor:592
osgPresentation::SlideShowConstructor::updatePositionFromInModelCoords
void updatePositionFromInModelCoords(const osg::Vec3 &vertex, PositionData &positionData) const
osgPresentation::SlideShowConstructor::_options
osg::ref_ptr< osgDB::Options > _options
Definition SlideShowConstructor:557
osgPresentation::SlideShowConstructor::_textPositionData
PositionData _textPositionData
Definition SlideShowConstructor:580
osgPresentation::SlideShowConstructor::_root
osg::ref_ptr< osg::Group > _root
Definition SlideShowConstructor:601
osgPresentation::SlideShowConstructor::getLoopPresentation
bool getLoopPresentation() const
Definition SlideShowConstructor:516
osgPresentation::SlideShowConstructor::addModel
void addModel(const std::string &filename, const PositionData &positionData, const ModelData &modelData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::convertSlideToModel
osg::Vec3 convertSlideToModel(const osg::Vec3 &position) const
osgPresentation::SlideShowConstructor::setUpVolumeScalarProperty
void setUpVolumeScalarProperty(osgVolume::VolumeTile *tile, osgVolume::ScalarProperty *property, const std::string &source)
osgPresentation::SlideShowConstructor::addTimeout
Timeout * addTimeout()
osgPresentation::SlideShowConstructor::getTextColor
const osg::Vec4 & getTextColor() const
Definition SlideShowConstructor:385
osgPresentation::SlideShowConstructor::_propertyEventCallback
osg::ref_ptr< osgPresentation::PropertyEventCallback > _propertyEventCallback
Definition SlideShowConstructor:599
osgPresentation::SlideShowConstructor::LayerStack
std::vector< osg::ref_ptr< osg::Group > > LayerStack
Definition SlideShowConstructor:618
osgPresentation::SlideShowConstructor::addModel
void addModel(osg::Node *subgraph, const PositionData &positionData, const ModelData &modelData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::_currentLayer
osg::ref_ptr< osg::Group > _currentLayer
Definition SlideShowConstructor:617
osgPresentation::SlideShowConstructor::addVNC
void addVNC(const std::string &filename, const PositionData &positionData, const ImageData &imageData, const std::string &password, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::attachTexMat
bool attachTexMat(osg::StateSet *stateset, const ImageData &imageData, float s, float t, bool textureRectangle)
osgPresentation::SlideShowConstructor::keyEventOperation
void keyEventOperation(PresentationContext presentationContext, int key, const KeyPosition &keyPos, const JumpData &jumpData=JumpData())
osgPresentation::SlideShowConstructor::addScriptToNode
void addScriptToNode(ScriptCallbackType scriptCallbackType, const std::string &name, osg::Node *node)
osgPresentation::SlideShowConstructor::addLayer
void addLayer(bool inheritPreviousLayers=true, bool defineAsBaseLayer=false)
osgPresentation::SlideShowConstructor::setLayerJump
void setLayerJump(const JumpData &jumpData)
Definition SlideShowConstructor:138
osgPresentation::SlideShowConstructor::_layerToApplyEventCallbackTo
osg::ref_ptr< osg::Group > _layerToApplyEventCallbackTo
Definition SlideShowConstructor:623
osgPresentation::SlideShowConstructor::_modelPositionDataDefault
PositionData _modelPositionDataDefault
Definition SlideShowConstructor:589
osgPresentation::SlideShowConstructor::setPresentationAspectRatio
void setPresentationAspectRatio(const std::string &str)
osgPresentation::SlideShowConstructor::_titlePositionData
PositionData _titlePositionData
Definition SlideShowConstructor:573
osgPresentation::SlideShowConstructor::addRunString
void addRunString(osg::Node *node, const std::string &runString)
Definition SlideShowConstructor:85
osgPresentation::SlideShowConstructor::setHUDSettings
void setHUDSettings(HUDSettings *hudSettings)
Definition SlideShowConstructor:521
osgPresentation::SlideShowConstructor::selectLayer
void selectLayer(int layerNum)
osgPresentation::SlideShowConstructor::_backgroundColor
osg::Vec4 _backgroundColor
Definition SlideShowConstructor:594
osgPresentation::SlideShowConstructor::getOrCreateLayerAttributes
LayerAttributes * getOrCreateLayerAttributes(osg::Node *node)
osgPresentation::SlideShowConstructor::keyToDoOperation
void keyToDoOperation(PresentationContext presentationContext, int key, const std::string &command, Operation operation, const JumpData &jumpData=JumpData())
osgPresentation::SlideShowConstructor::keyToDoOperation
void keyToDoOperation(PresentationContext presentationContext, int key, Operation operation, const JumpData &jumpData=JumpData())
osgPresentation::SlideShowConstructor::setTextColor
void setTextColor(const osg::Vec4 &color)
osgPresentation::SlideShowConstructor::attachMaterialAnimation
osg::Node * attachMaterialAnimation(osg::Node *model, const PositionData &positionData)
osgPresentation::SlideShowConstructor::selectSlide
void selectSlide(int slideNum)
osgPresentation::SlideShowConstructor::setLoopPresentation
void setLoopPresentation(bool loop)
Definition SlideShowConstructor:515
osgPresentation::SlideShowConstructor::setSlideBackground
void setSlideBackground(const std::string &name)
Definition SlideShowConstructor:414
osgPresentation::SlideShowConstructor::addBullet
void addBullet(const std::string &bullet, PositionData &positionData, FontData &fontData, const ScriptData &scriptData)
osgPresentation::SlideShowConstructor::SlideShowConstructor
SlideShowConstructor(osgDB::Options *options)
osgPresentation::SlideShowConstructor::setSlideBackgrondHUD
void setSlideBackgrondHUD(bool hud)
Definition SlideShowConstructor:413
osgPresentation::SlideShowConstructor::_scripts
ScriptMap _scripts
Definition SlideShowConstructor:608
osgPresentation::SlideShowConstructor::addPresentationKey
void addPresentationKey(const KeyPosition &kp)
Definition SlideShowConstructor:95
osgPresentation::SlideShowConstructor::decorateSubgraphForPositionAndAnimation
osg::Node * decorateSubgraphForPositionAndAnimation(osg::Node *node, const PositionData &positionData)
osgPresentation::SlideShowConstructor::getPresentationSwitch
osg::Switch * getPresentationSwitch()
Definition SlideShowConstructor:506
osgPresentation::SlideShowConstructor::addScriptEngine
void addScriptEngine(const std::string &scriptEngineName)
osgPresentation::SlideShowConstructor::findFileAndRecordPath
std::string findFileAndRecordPath(const std::string &filename)
osgPresentation::SlideShowConstructor::addScriptFile
void addScriptFile(const std::string &name, const std::string &filename)
osgPresentation::SlideShowConstructor::_previousLayer
osg::ref_ptr< osg::Group > _previousLayer
Definition SlideShowConstructor:616
osgPresentation::SlideShowConstructor::_propertyManager
osg::ref_ptr< osgPresentation::PropertyManager > _propertyManager
Definition SlideShowConstructor:598
osgPresentation::SlideShowConstructor::_scriptEngines
ScriptEngineMap _scriptEngines
Definition SlideShowConstructor:605
osgPresentation::SlideShowConstructor::_slideBackgroundAsHUD
bool _slideBackgroundAsHUD
Definition SlideShowConstructor:614
osgPresentation::SlideShowConstructor::ScriptMap
std::map< std::string, osg::ref_ptr< osg::Script > > ScriptMap
Definition SlideShowConstructor:607
osgPresentation::SlideShowConstructor::PresentationContext
PresentationContext
Definition SlideShowConstructor:452
osgPresentation::SlideShowConstructor::CURRENT_LAYER
@ CURRENT_LAYER
Definition SlideShowConstructor:455
osgPresentation::SlideShowConstructor::CURRENT_PRESENTATION
@ CURRENT_PRESENTATION
Definition SlideShowConstructor:453
osgPresentation::SlideShowConstructor::CURRENT_SLIDE
@ CURRENT_SLIDE
Definition SlideShowConstructor:454
osgPresentation::SlideShowConstructor::_autoSteppingActive
bool _autoSteppingActive
Definition SlideShowConstructor:593
osgPresentation::Timeout
Definition Timeout:43
osgText::TextBase::AlignmentType
AlignmentType
Definition TextBase:169
osgText::TextBase::Layout
Layout
Definition TextBase:220
osgText::TextBase::AxisAlignment
AxisAlignment
Definition TextBase:199
osgText::TextBase::CharacterSizeMode
CharacterSizeMode
Definition TextBase:119
osgVolume::ScalarProperty
Definition Property:227
osgVolume::VolumeSettings::ShadingModel
ShadingModel
Definition VolumeSettings:50
osgVolume::VolumeSettings::Technique
Technique
Definition VolumeSettings:40
osgVolume::VolumeTile
Definition VolumeTile:70
osg::AnimationPathCallback
Definition AnimationPath:218
osg::AnimationPath::LoopMode
LoopMode
Definition AnimationPath:175
osg::Geometry
Definition Geometry:31
osg::Group
Definition Group:29
osg::ImageSequence::Mode
Mode
Definition ImageSequence:73
osg::ImageStream
Definition ImageStream:29
osg::ImageStream::LoopingMode
LoopingMode
Definition ImageStream:67
osg::Image
Definition Image:179
osg::NodeVisitor
Definition NodeVisitor:82
osg::Node
Definition Node:72
osg::ScriptEngine
Definition osg/ScriptEngine:101
osg::StateAttribute::ON
@ ON
Definition StateAttribute:103
osg::StateSet
Definition StateSet:46
osg::StateSet::setMode
void setMode(StateAttribute::GLMode mode, StateAttribute::GLModeValue value)
osg::Switch
Definition Switch:27
osg::Transform
Definition Transform:75
osg::ref_ptr
Definition ref_ptr:32
osgPresentation
Definition AnimationMaterial:26
osgPresentation::Operation
Operation
Operations related to click to run/load/key events.
Definition SlideEventHandler:36
osgText
osgVolume
osg
Definition AlphaFunc:19
osg::ColorSpaceOperation
ColorSpaceOperation
Definition ImageUtils:231
osg::Vec3
Vec3f Vec3
Definition Vec3:21
osg::Matrix
Matrixd Matrix
Definition Matrix:27
osg::Vec4
Vec4f Vec4
Definition Vec4:21
OSGPRESENTATION_EXPORT
#define OSGPRESENTATION_EXPORT
Definition osgPresentation/Export:38
ScriptEngine
osgPresentation::JumpData
Definition SlideEventHandler:46
osgPresentation::KeyPosition
Definition SlideEventHandler:161
osgPresentation::LayerAttributes
Definition SlideEventHandler:220
osgPresentation::SlideShowConstructor::FontData
Definition SlideShowConstructor:336
osgPresentation::SlideShowConstructor::FontData::layout
osgText::Text::Layout layout
Definition SlideShowConstructor:349
osgPresentation::SlideShowConstructor::FontData::font
std::string font
Definition SlideShowConstructor:348
osgPresentation::SlideShowConstructor::FontData::maximumHeight
float maximumHeight
Definition SlideShowConstructor:354
osgPresentation::SlideShowConstructor::FontData::color
osg::Vec4 color
Definition SlideShowConstructor:356
osgPresentation::SlideShowConstructor::FontData::alignment
osgText::Text::AlignmentType alignment
Definition SlideShowConstructor:350
osgPresentation::SlideShowConstructor::FontData::axisAlignment
osgText::Text::AxisAlignment axisAlignment
Definition SlideShowConstructor:351
osgPresentation::SlideShowConstructor::FontData::characterSize
float characterSize
Definition SlideShowConstructor:353
osgPresentation::SlideShowConstructor::FontData::FontData
FontData()
Definition SlideShowConstructor:337
osgPresentation::SlideShowConstructor::FontData::maximumWidth
float maximumWidth
Definition SlideShowConstructor:355
osgPresentation::SlideShowConstructor::FontData::characterSizeMode
osgText::Text::CharacterSizeMode characterSizeMode
Definition SlideShowConstructor:352
osgPresentation::SlideShowConstructor::ImageData
Definition SlideShowConstructor:225
osgPresentation::SlideShowConstructor::ImageData::region
osg::Vec4 region
Definition SlideShowConstructor:250
osgPresentation::SlideShowConstructor::ImageData::duration
double duration
Definition SlideShowConstructor:257
osgPresentation::SlideShowConstructor::ImageData::texcoord_rotate
float texcoord_rotate
Definition SlideShowConstructor:252
osgPresentation::SlideShowConstructor::ImageData::blendingHint
BlendingHint blendingHint
Definition SlideShowConstructor:277
osgPresentation::SlideShowConstructor::ImageData::page
int page
Definition SlideShowConstructor:254
osgPresentation::SlideShowConstructor::ImageData::width
float width
Definition SlideShowConstructor:248
osgPresentation::SlideShowConstructor::ImageData::ImageSequenceInteractionMode
ImageSequenceInteractionMode
Definition SlideShowConstructor:263
osgPresentation::SlideShowConstructor::ImageData::USE_MOUSE_X_POSITION
@ USE_MOUSE_X_POSITION
Definition SlideShowConstructor:265
osgPresentation::SlideShowConstructor::ImageData::USE_MOUSE_Y_POSITION
@ USE_MOUSE_Y_POSITION
Definition SlideShowConstructor:266
osgPresentation::SlideShowConstructor::ImageData::PLAY_AUTOMATICALLY_LIKE_MOVIE
@ PLAY_AUTOMATICALLY_LIKE_MOVIE
Definition SlideShowConstructor:264
osgPresentation::SlideShowConstructor::ImageData::region_in_pixel_coords
bool region_in_pixel_coords
Definition SlideShowConstructor:251
osgPresentation::SlideShowConstructor::ImageData::options
std::string options
Definition SlideShowConstructor:247
osgPresentation::SlideShowConstructor::ImageData::imageSequenceInteractionMode
ImageSequenceInteractionMode imageSequenceInteractionMode
Definition SlideShowConstructor:268
osgPresentation::SlideShowConstructor::ImageData::BlendingHint
BlendingHint
Definition SlideShowConstructor:271
osgPresentation::SlideShowConstructor::ImageData::OFF
@ OFF
Definition SlideShowConstructor:273
osgPresentation::SlideShowConstructor::ImageData::ON
@ ON
Definition SlideShowConstructor:274
osgPresentation::SlideShowConstructor::ImageData::USE_IMAGE_ALPHA
@ USE_IMAGE_ALPHA
Definition SlideShowConstructor:272
osgPresentation::SlideShowConstructor::ImageData::delayTime
double delayTime
Definition SlideShowConstructor:279
osgPresentation::SlideShowConstructor::ImageData::height
float height
Definition SlideShowConstructor:249
osgPresentation::SlideShowConstructor::ImageData::startTime
double startTime
Definition SlideShowConstructor:280
osgPresentation::SlideShowConstructor::ImageData::volume
std::string volume
Definition SlideShowConstructor:282
osgPresentation::SlideShowConstructor::ImageData::fps
double fps
Definition SlideShowConstructor:256
osgPresentation::SlideShowConstructor::ImageData::backgroundColor
osg::Vec4 backgroundColor
Definition SlideShowConstructor:255
osgPresentation::SlideShowConstructor::ImageData::loopingMode
osg::ImageStream::LoopingMode loopingMode
Definition SlideShowConstructor:253
osgPresentation::SlideShowConstructor::ImageData::imageSequence
bool imageSequence
Definition SlideShowConstructor:259
osgPresentation::SlideShowConstructor::ImageData::ImageData
ImageData()
Definition SlideShowConstructor:226
osgPresentation::SlideShowConstructor::ImageData::stopTime
double stopTime
Definition SlideShowConstructor:281
osgPresentation::SlideShowConstructor::ImageData::imageSequencePagingMode
osg::ImageSequence::Mode imageSequencePagingMode
Definition SlideShowConstructor:260
osgPresentation::SlideShowConstructor::ModelData
Definition SlideShowConstructor:216
osgPresentation::SlideShowConstructor::ModelData::effect
std::string effect
Definition SlideShowConstructor:220
osgPresentation::SlideShowConstructor::ModelData::region
std::string region
Definition SlideShowConstructor:219
osgPresentation::SlideShowConstructor::ModelData::ModelData
ModelData()
Definition SlideShowConstructor:217
osgPresentation::SlideShowConstructor::ModelData::options
std::string options
Definition SlideShowConstructor:221
osgPresentation::SlideShowConstructor::PositionData
Definition SlideShowConstructor:147
osgPresentation::SlideShowConstructor::PositionData::requiresScale
bool requiresScale() const
Definition SlideShowConstructor:173
osgPresentation::SlideShowConstructor::PositionData::scale
osg::Vec3 scale
Definition SlideShowConstructor:195
osgPresentation::SlideShowConstructor::PositionData::inverse_path
bool inverse_path
Definition SlideShowConstructor:200
osgPresentation::SlideShowConstructor::PositionData::animation_material_time_offset
double animation_material_time_offset
Definition SlideShowConstructor:205
osgPresentation::SlideShowConstructor::PositionData::requiresPosition
bool requiresPosition() const
Definition SlideShowConstructor:168
osgPresentation::SlideShowConstructor::PositionData::requiresMaterialAnimation
bool requiresMaterialAnimation() const
Definition SlideShowConstructor:188
osgPresentation::SlideShowConstructor::PositionData::requiresAnimation
bool requiresAnimation() const
Definition SlideShowConstructor:183
osgPresentation::SlideShowConstructor::PositionData::rotation
osg::Vec4 rotation
Definition SlideShowConstructor:197
osgPresentation::SlideShowConstructor::PositionData::animation_material_loop_mode
AnimationMaterial::LoopMode animation_material_loop_mode
Definition SlideShowConstructor:207
osgPresentation::SlideShowConstructor::PositionData::autoScale
bool autoScale
Definition SlideShowConstructor:211
osgPresentation::SlideShowConstructor::PositionData::hud
bool hud
Definition SlideShowConstructor:212
osgPresentation::SlideShowConstructor::PositionData::frame
CoordinateFrame frame
Definition SlideShowConstructor:193
osgPresentation::SlideShowConstructor::PositionData::requiresRotate
bool requiresRotate() const
Definition SlideShowConstructor:178
osgPresentation::SlideShowConstructor::PositionData::PositionData
PositionData()
Definition SlideShowConstructor:148
osgPresentation::SlideShowConstructor::PositionData::position
osg::Vec3 position
Definition SlideShowConstructor:194
osgPresentation::SlideShowConstructor::PositionData::path_loop_mode
osg::AnimationPath::LoopMode path_loop_mode
Definition SlideShowConstructor:203
osgPresentation::SlideShowConstructor::PositionData::autoRotate
bool autoRotate
Definition SlideShowConstructor:210
osgPresentation::SlideShowConstructor::PositionData::fade
std::string fade
Definition SlideShowConstructor:209
osgPresentation::SlideShowConstructor::PositionData::absolute_path
bool absolute_path
Definition SlideShowConstructor:199
osgPresentation::SlideShowConstructor::PositionData::animation_name
std::string animation_name
Definition SlideShowConstructor:198
osgPresentation::SlideShowConstructor::PositionData::animation_material_time_multiplier
double animation_material_time_multiplier
Definition SlideShowConstructor:206
osgPresentation::SlideShowConstructor::PositionData::path_time_multiplier
double path_time_multiplier
Definition SlideShowConstructor:202
osgPresentation::SlideShowConstructor::PositionData::path_time_offset
double path_time_offset
Definition SlideShowConstructor:201
osgPresentation::SlideShowConstructor::PositionData::animation_material_filename
std::string animation_material_filename
Definition SlideShowConstructor:208
osgPresentation::SlideShowConstructor::PositionData::rotate
osg::Vec4 rotate
Definition SlideShowConstructor:196
osgPresentation::SlideShowConstructor::PositionData::path
std::string path
Definition SlideShowConstructor:204
osgPresentation::SlideShowConstructor::ScriptData
Definition SlideShowConstructor:368
osgPresentation::SlideShowConstructor::ScriptData::scripts
Scripts scripts
Definition SlideShowConstructor:372
osgPresentation::SlideShowConstructor::ScriptData::hasScripts
bool hasScripts() const
Definition SlideShowConstructor:374
osgPresentation::SlideShowConstructor::ScriptData::ScriptData
ScriptData()
Definition SlideShowConstructor:369
osgPresentation::SlideShowConstructor::ScriptData::Scripts
std::vector< ScriptPair > Scripts
Definition SlideShowConstructor:371
osgPresentation::SlideShowConstructor::VolumeData
Definition SlideShowConstructor:287
osgPresentation::SlideShowConstructor::VolumeData::alphaValue
std::string alphaValue
Definition SlideShowConstructor:318
osgPresentation::SlideShowConstructor::VolumeData::Technique
osgVolume::VolumeSettings::Technique Technique
Definition SlideShowConstructor:289
osgPresentation::SlideShowConstructor::VolumeData::ShadingModel
osgVolume::VolumeSettings::ShadingModel ShadingModel
Definition SlideShowConstructor:288
osgPresentation::SlideShowConstructor::VolumeData::region_in_pixel_coords
bool region_in_pixel_coords
Definition SlideShowConstructor:317
osgPresentation::SlideShowConstructor::VolumeData::transferFunction
osg::ref_ptr< osg::TransferFunction1D > transferFunction
Definition SlideShowConstructor:313
osgPresentation::SlideShowConstructor::VolumeData::cutoffValue
std::string cutoffValue
Definition SlideShowConstructor:319
osgPresentation::SlideShowConstructor::VolumeData::colorModulate
osg::Vec4 colorModulate
Definition SlideShowConstructor:328
osgPresentation::SlideShowConstructor::VolumeData::hullPositionData
PositionData hullPositionData
Definition SlideShowConstructor:331
osgPresentation::SlideShowConstructor::VolumeData::useTabbedDragger
bool useTabbedDragger
Definition SlideShowConstructor:314
osgPresentation::SlideShowConstructor::VolumeData::region
std::string region
Definition SlideShowConstructor:316
osgPresentation::SlideShowConstructor::VolumeData::exteriorTransparencyFactorValue
std::string exteriorTransparencyFactorValue
Definition SlideShowConstructor:320
osgPresentation::SlideShowConstructor::VolumeData::sampleRatioWhenMovingValue
std::string sampleRatioWhenMovingValue
Definition SlideShowConstructor:325
osgPresentation::SlideShowConstructor::VolumeData::options
std::string options
Definition SlideShowConstructor:311
osgPresentation::SlideShowConstructor::VolumeData::useTrackballDragger
bool useTrackballDragger
Definition SlideShowConstructor:315
osgPresentation::SlideShowConstructor::VolumeData::hull
std::string hull
Definition SlideShowConstructor:330
osgPresentation::SlideShowConstructor::VolumeData::sampleDensityValue
std::string sampleDensityValue
Definition SlideShowConstructor:321
osgPresentation::SlideShowConstructor::VolumeData::volumeSettings
osg::ref_ptr< osgVolume::VolumeSettings > volumeSettings
Definition SlideShowConstructor:309
osgPresentation::SlideShowConstructor::VolumeData::colorSpaceOperation
osg::ColorSpaceOperation colorSpaceOperation
Definition SlideShowConstructor:327
osgPresentation::SlideShowConstructor::VolumeData::shadingModel
ShadingModel shadingModel
Definition SlideShowConstructor:312
osgPresentation::SlideShowConstructor::VolumeData::VolumeData
VolumeData()
Definition SlideShowConstructor:291
osgPresentation::SlideShowConstructor::VolumeData::sampleDensityWhenMovingValue
std::string sampleDensityWhenMovingValue
Definition SlideShowConstructor:322
osgPresentation::SlideShowConstructor::VolumeData::sampleRatioValue
std::string sampleRatioValue
Definition SlideShowConstructor:324
osgPresentation::SlideShowConstructor::VolumeData::technique
Technique technique
Definition SlideShowConstructor:329