![]() |
OpenSceneGraph
|
Classes | |
| struct | FontData |
| struct | ImageData |
| struct | ModelData |
| struct | PositionData |
| struct | ScriptData |
| struct | VolumeData |
Public Types | |
| enum | CoordinateFrame { SLIDE, MODEL } |
| enum | ScriptCallbackType { UPDATE_SCRIPT, EVENT_SCRIPT } |
| enum | PresentationContext { CURRENT_PRESENTATION, CURRENT_SLIDE, CURRENT_LAYER } |
| typedef std::pair< ScriptCallbackType, std::string > | ScriptPair |
Public Member Functions | |
| LayerAttributes * | getOrCreateLayerAttributes (osg::Node *node) |
| void | setDuration (osg::Node *node, double duration) |
| void | addKey (osg::Node *node, const KeyPosition &kp) |
| void | addRunString (osg::Node *node, const std::string &runString) |
| void | setJump (osg::Node *node, const JumpData &jumpData) |
| void | addPresentationKey (const KeyPosition &kp) |
| void | addPresentationRunString (const std::string &runString) |
| void | addSlideKey (const KeyPosition &kp) |
| void | addSlideRunString (const std::string &runString) |
| void | setSlideJump (const JumpData &jumpData) |
| void | addLayerKey (const KeyPosition &kp) |
| void | addLayerRunString (const std::string &runString) |
| void | setLayerJump (const JumpData &jumpData) |
| SlideShowConstructor (osgDB::Options *options) | |
| void | createPresentation () |
| void | setBackgroundColor (const osg::Vec4 &color, bool updateClearNode) |
| const osg::Vec4 & | getBackgroundColor () const |
| void | setTextColor (const osg::Vec4 &color) |
| const osg::Vec4 & | getTextColor () const |
| 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) |
| void | setSlideBackgrondHUD (bool hud) |
| void | setSlideBackground (const std::string &name) |
| void | setSlideDuration (double duration) |
| Timeout * | addTimeout () |
| void | addLayer (bool inheritPreviousLayers=true, bool defineAsBaseLayer=false) |
| void | selectLayer (int layerNum) |
| void | setLayerDuration (double duration) |
| FontData & | getTitleFontData () |
| FontData & | getTitleFontDataDefault () |
| PositionData & | getTitlePositionData () |
| PositionData & | getTitlePositionDataDefault () |
| FontData & | getTextFontData () |
| FontData & | getTextFontDataDefault () |
| PositionData & | getTextPositionData () |
| PositionData & | getTextPositionDataDefault () |
| void | translateTextCursor (const osg::Vec3 &delta) |
| PositionData & | getImagePositionData () |
| PositionData & | getImagePositionDataDefault () |
| PositionData & | getModelPositionData () |
| PositionData & | getModelPositionDataDefault () |
| 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 ¶graph, 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 () |
| osg::Group * | getPresentation () |
| osg::Switch * | getPresentationSwitch () |
| osg::Switch * | getCurrentSlide () |
| void | pushCurrentLayer (osg::Group *newLayerGroup) |
| void | popCurrentLayer () |
| osg::Group * | getCurrentLayer () |
| void | setLoopPresentation (bool loop) |
| bool | getLoopPresentation () const |
| void | setAutoSteppingActive (bool flag=true) |
| bool | getAutoSteppingActive () const |
| void | setHUDSettings (HUDSettings *hudSettings) |
| HUDSettings * | getHUDSettings () |
| const HUDSettings * | getHUDSettings () const |
| osg::ScriptEngine * | getOrCreateScriptEngine (const std::string &language) |
Protected Types | |
| typedef std::map< std::string, osg::ref_ptr< osg::ScriptEngine > > | ScriptEngineMap |
| typedef std::map< std::string, osg::ref_ptr< osg::Script > > | ScriptMap |
| typedef std::vector< osg::ref_ptr< osg::Group > > | LayerStack |
| typedef std::list< osg::ref_ptr< osgGA::GUIEventHandler > > | EventHandlerList |
|
protected |
|
protected |
|
protected |
|
protected |
| typedef std::pair<ScriptCallbackType, std::string> osgPresentation::SlideShowConstructor::ScriptPair |
| osgPresentation::SlideShowConstructor::SlideShowConstructor | ( | osgDB::Options * | options | ) |
| void osgPresentation::SlideShowConstructor::addBrowser | ( | const std::string & | filename, |
| const PositionData & | positionData, | ||
| const ImageData & | imageData, | ||
| const ScriptData & | scriptData | ||
| ) |
| void osgPresentation::SlideShowConstructor::addBullet | ( | const std::string & | bullet, |
| PositionData & | positionData, | ||
| FontData & | fontData, | ||
| const ScriptData & | scriptData | ||
| ) |
| void osgPresentation::SlideShowConstructor::addEventHandler | ( | PresentationContext | presentationContext, |
| osg::ref_ptr< osgGA::GUIEventHandler > | handler | ||
| ) |
| void osgPresentation::SlideShowConstructor::addGraph | ( | const std::string & | filename, |
| const PositionData & | positionData, | ||
| const ImageData & | imageData, | ||
| const ScriptData & | scriptData | ||
| ) |
| void osgPresentation::SlideShowConstructor::addImage | ( | const std::string & | filename, |
| const PositionData & | positionData, | ||
| const ImageData & | imageData, | ||
| const ScriptData & | scriptData | ||
| ) |
| osg::ref_ptr<osg::Image> osgPresentation::SlideShowConstructor::addInteractiveImage | ( | const std::string & | filename, |
| const PositionData & | positionData, | ||
| const ImageData & | imageData, | ||
| const ScriptData & | scriptData | ||
| ) |
|
inline |
References osgPresentation::LayerAttributes::addKey().
| void osgPresentation::SlideShowConstructor::addLayer | ( | bool | inheritPreviousLayers = true, |
| bool | defineAsBaseLayer = false |
||
| ) |
|
inline |
|
inline |
| void osgPresentation::SlideShowConstructor::addModel | ( | osg::Node * | subgraph, |
| const PositionData & | positionData, | ||
| const ModelData & | modelData, | ||
| const ScriptData & | scriptData | ||
| ) |
| void osgPresentation::SlideShowConstructor::addModel | ( | const std::string & | filename, |
| const PositionData & | positionData, | ||
| const ModelData & | modelData, | ||
| const ScriptData & | scriptData | ||
| ) |
| void osgPresentation::SlideShowConstructor::addParagraph | ( | const std::string & | paragraph, |
| PositionData & | positionData, | ||
| FontData & | fontData, | ||
| const ScriptData & | scriptData | ||
| ) |
| void osgPresentation::SlideShowConstructor::addPDF | ( | const std::string & | filename, |
| const PositionData & | positionData, | ||
| const ImageData & | imageData, | ||
| const ScriptData & | scriptData | ||
| ) |
|
inline |
|
inline |
| void osgPresentation::SlideShowConstructor::addPropertyAnimation | ( | PresentationContext | presentationContext, |
| PropertyAnimation * | propertyAnimation | ||
| ) |
|
inline |
References osgPresentation::LayerAttributes::addRunString().
| void osgPresentation::SlideShowConstructor::addScript | ( | const std::string & | name, |
| const std::string & | language, | ||
| const std::string & | script | ||
| ) |
| void osgPresentation::SlideShowConstructor::addScriptCallback | ( | PresentationContext | presentationContext, |
| ScriptCallbackType | scriptCallbackType, | ||
| const std::string & | functionName | ||
| ) |
| void osgPresentation::SlideShowConstructor::addScriptEngine | ( | const std::string & | scriptEngineName | ) |
| void osgPresentation::SlideShowConstructor::addScriptFile | ( | const std::string & | name, |
| const std::string & | filename | ||
| ) |
| void osgPresentation::SlideShowConstructor::addScriptsToNode | ( | const ScriptData & | scriptData, |
| osg::Node * | node | ||
| ) |
| void osgPresentation::SlideShowConstructor::addScriptToNode | ( | ScriptCallbackType | scriptCallbackType, |
| const std::string & | name, | ||
| osg::Node * | node | ||
| ) |
| void osgPresentation::SlideShowConstructor::addSlide | ( | ) |
|
inline |
|
inline |
| void osgPresentation::SlideShowConstructor::addStereoImagePair | ( | const std::string & | filenameLeft, |
| const ImageData & | imageDataLeft, | ||
| const std::string & | filenameRight, | ||
| const ImageData & | imageDataRight, | ||
| const PositionData & | positionData, | ||
| const ScriptData & | scriptData | ||
| ) |
| Timeout* osgPresentation::SlideShowConstructor::addTimeout | ( | ) |
| void osgPresentation::SlideShowConstructor::addToCurrentLayer | ( | osg::Node * | subgraph | ) |
| void osgPresentation::SlideShowConstructor::addVNC | ( | const std::string & | filename, |
| const PositionData & | positionData, | ||
| const ImageData & | imageData, | ||
| const std::string & | password, | ||
| const ScriptData & | scriptData | ||
| ) |
| void osgPresentation::SlideShowConstructor::addVolume | ( | const std::string & | filename, |
| const PositionData & | positionData, | ||
| const VolumeData & | volumeData, | ||
| const ScriptData & | scriptData | ||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void osgPresentation::SlideShowConstructor::createPresentation | ( | ) |
|
protected |
|
inlineprotected |
References GL_NORMALIZE, osg::StateAttribute::ON, and osg::StateSet::setMode().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References osg::createTexturedQuadGeometry().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| LayerAttributes* osgPresentation::SlideShowConstructor::getOrCreateLayerAttributes | ( | osg::Node * | node | ) |
| osg::ScriptEngine* osgPresentation::SlideShowConstructor::getOrCreateScriptEngine | ( | const std::string & | language | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void osgPresentation::SlideShowConstructor::keyEventOperation | ( | PresentationContext | presentationContext, |
| int | key, | ||
| const KeyPosition & | keyPos, | ||
| const JumpData & | jumpData = JumpData() |
||
| ) |
| void osgPresentation::SlideShowConstructor::keyToDoOperation | ( | PresentationContext | presentationContext, |
| int | key, | ||
| Operation | operation, | ||
| const JumpData & | jumpData = JumpData() |
||
| ) |
| void osgPresentation::SlideShowConstructor::keyToDoOperation | ( | PresentationContext | presentationContext, |
| int | key, | ||
| const std::string & | command, | ||
| Operation | operation, | ||
| const JumpData & | jumpData = JumpData() |
||
| ) |
| void osgPresentation::SlideShowConstructor::layerClickEventOperation | ( | const KeyPosition & | keyPos, |
| const JumpData & | jumpData = JumpData() |
||
| ) |
| void osgPresentation::SlideShowConstructor::layerClickToDoOperation | ( | Operation | operation, |
| const JumpData & | jumpData = JumpData() |
||
| ) |
| void osgPresentation::SlideShowConstructor::layerClickToDoOperation | ( | const std::string & | command, |
| Operation | operation, | ||
| const JumpData & | jumpData = JumpData() |
||
| ) |
| void osgPresentation::SlideShowConstructor::popCurrentLayer | ( | ) |
| void osgPresentation::SlideShowConstructor::pushCurrentLayer | ( | osg::Group * | newLayerGroup | ) |
| osg::ref_ptr<osg::Image> osgPresentation::SlideShowConstructor::readImage | ( | const std::string & | filename, |
| const ImageData & | imageData | ||
| ) |
|
protected |
| void osgPresentation::SlideShowConstructor::selectLayer | ( | int | layerNum | ) |
| void osgPresentation::SlideShowConstructor::selectSlide | ( | int | slideNum | ) |
|
inline |
| void osgPresentation::SlideShowConstructor::setBackgroundColor | ( | const osg::Vec4 & | color, |
| bool | updateClearNode | ||
| ) |
|
inline |
References osgPresentation::LayerAttributes::setDuration().
|
inline |
|
inline |
References osgPresentation::LayerAttributes::setJump().
| void osgPresentation::SlideShowConstructor::setLayerDuration | ( | double | duration | ) |
|
inline |
|
inline |
| void osgPresentation::SlideShowConstructor::setPresentationAspectRatio | ( | float | aspectRatio | ) |
| void osgPresentation::SlideShowConstructor::setPresentationAspectRatio | ( | const std::string & | str | ) |
| void osgPresentation::SlideShowConstructor::setPresentationDuration | ( | double | duration | ) |
| void osgPresentation::SlideShowConstructor::setPresentationName | ( | const std::string & | name | ) |
|
inline |
|
inline |
| void osgPresentation::SlideShowConstructor::setSlideDuration | ( | double | duration | ) |
|
inline |
|
inline |
| void osgPresentation::SlideShowConstructor::setTextColor | ( | const osg::Vec4 & | color | ) |
|
protected |
| void osgPresentation::SlideShowConstructor::setUpVolumeScalarProperty | ( | osgVolume::VolumeTile * | tile, |
| osgVolume::ScalarProperty * | property, | ||
| const std::string & | source | ||
| ) |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.13