OSG
3.4.0
|
#include <SlideShowConstructor.h>
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::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::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 |
Definition at line 63 of file SlideShowConstructor.h.
|
protected |
Definition at line 624 of file SlideShowConstructor.h.
|
protected |
Definition at line 617 of file SlideShowConstructor.h.
|
protected |
Definition at line 603 of file SlideShowConstructor.h.
|
protected |
Definition at line 606 of file SlideShowConstructor.h.
typedef std::pair<ScriptCallbackType, std::string> osgPresentation::SlideShowConstructor::ScriptPair |
Definition at line 364 of file SlideShowConstructor.h.
Enumerator | |
---|---|
SLIDE | |
MODEL |
Definition at line 68 of file SlideShowConstructor.h.
Enumerator | |
---|---|
CURRENT_PRESENTATION | |
CURRENT_SLIDE | |
CURRENT_LAYER |
Definition at line 451 of file SlideShowConstructor.h.
Enumerator | |
---|---|
UPDATE_SCRIPT | |
EVENT_SCRIPT |
Definition at line 358 of file SlideShowConstructor.h.
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::Image* osgPresentation::SlideShowConstructor::addInteractiveImage | ( | const std::string & | filename, |
const PositionData & | positionData, | ||
const ImageData & | imageData, | ||
const ScriptData & | scriptData | ||
) |
|
inline |
Definition at line 79 of file SlideShowConstructor.h.
void osgPresentation::SlideShowConstructor::addLayer | ( | bool | inheritPreviousLayers = true , |
bool | defineAsBaseLayer = false |
||
) |
|
inline |
Definition at line 124 of file SlideShowConstructor.h.
|
inline |
Definition at line 130 of file SlideShowConstructor.h.
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 |
Definition at line 94 of file SlideShowConstructor.h.
|
inline |
Definition at line 100 of file SlideShowConstructor.h.
void osgPresentation::SlideShowConstructor::addPropertyAnimation | ( | PresentationContext | presentationContext, |
PropertyAnimation * | propertyAnimation | ||
) |
|
inline |
Definition at line 84 of file SlideShowConstructor.h.
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 |
Definition at line 106 of file SlideShowConstructor.h.
|
inline |
Definition at line 112 of file SlideShowConstructor.h.
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Definition at line 518 of file SlideShowConstructor.h.
|
inline |
Definition at line 381 of file SlideShowConstructor.h.
|
inline |
Definition at line 512 of file SlideShowConstructor.h.
|
inline |
Definition at line 507 of file SlideShowConstructor.h.
|
inline |
Definition at line 521 of file SlideShowConstructor.h.
|
inline |
Definition at line 522 of file SlideShowConstructor.h.
|
inline |
Definition at line 443 of file SlideShowConstructor.h.
|
inline |
Definition at line 444 of file SlideShowConstructor.h.
|
inline |
Definition at line 515 of file SlideShowConstructor.h.
|
inline |
Definition at line 447 of file SlideShowConstructor.h.
|
inline |
Definition at line 448 of file SlideShowConstructor.h.
LayerAttributes* osgPresentation::SlideShowConstructor::getOrCreateLayerAttributes | ( | osg::Node * | node | ) |
osg::ScriptEngine* osgPresentation::SlideShowConstructor::getOrCreateScriptEngine | ( | const std::string & | language | ) |
|
inline |
Definition at line 503 of file SlideShowConstructor.h.
|
inline |
Definition at line 505 of file SlideShowConstructor.h.
|
inline |
Definition at line 384 of file SlideShowConstructor.h.
|
inline |
Definition at line 434 of file SlideShowConstructor.h.
|
inline |
Definition at line 435 of file SlideShowConstructor.h.
|
inline |
Definition at line 437 of file SlideShowConstructor.h.
|
inline |
Definition at line 438 of file SlideShowConstructor.h.
|
inline |
Definition at line 427 of file SlideShowConstructor.h.
|
inline |
Definition at line 428 of file SlideShowConstructor.h.
|
inline |
Definition at line 430 of file SlideShowConstructor.h.
|
inline |
Definition at line 431 of file SlideShowConstructor.h.
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::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 |
Definition at line 517 of file SlideShowConstructor.h.
void osgPresentation::SlideShowConstructor::setBackgroundColor | ( | const osg::Vec4 & | color, |
bool | updateClearNode | ||
) |
|
inline |
Definition at line 74 of file SlideShowConstructor.h.
|
inline |
Definition at line 520 of file SlideShowConstructor.h.
|
inline |
Definition at line 89 of file SlideShowConstructor.h.
void osgPresentation::SlideShowConstructor::setLayerDuration | ( | double | duration | ) |
|
inline |
Definition at line 137 of file SlideShowConstructor.h.
|
inline |
Definition at line 514 of file SlideShowConstructor.h.
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 |
Definition at line 412 of file SlideShowConstructor.h.
|
inline |
Definition at line 413 of file SlideShowConstructor.h.
void osgPresentation::SlideShowConstructor::setSlideDuration | ( | double | duration | ) |
|
inline |
Definition at line 118 of file SlideShowConstructor.h.
|
inline |
Definition at line 405 of file SlideShowConstructor.h.
void osgPresentation::SlideShowConstructor::setTextColor | ( | const osg::Vec4 & | color | ) |
|
protected |
void osgPresentation::SlideShowConstructor::setUpVolumeScalarProperty | ( | osgVolume::VolumeTile * | tile, |
osgVolume::ScalarProperty * | property, | ||
const std::string & | source | ||
) |
|
inline |
Definition at line 501 of file SlideShowConstructor.h.
|
inline |
Definition at line 440 of file SlideShowConstructor.h.
|
protected |
|
protected |
Definition at line 592 of file SlideShowConstructor.h.
|
protected |
Definition at line 593 of file SlideShowConstructor.h.
|
protected |
Definition at line 625 of file SlideShowConstructor.h.
|
protected |
Definition at line 616 of file SlideShowConstructor.h.
|
protected |
Definition at line 559 of file SlideShowConstructor.h.
|
protected |
Definition at line 620 of file SlideShowConstructor.h.
|
protected |
Definition at line 566 of file SlideShowConstructor.h.
|
protected |
Definition at line 583 of file SlideShowConstructor.h.
|
protected |
Definition at line 584 of file SlideShowConstructor.h.
|
protected |
Definition at line 618 of file SlideShowConstructor.h.
|
protected |
Definition at line 622 of file SlideShowConstructor.h.
|
protected |
Definition at line 563 of file SlideShowConstructor.h.
|
protected |
Definition at line 591 of file SlideShowConstructor.h.
|
protected |
Definition at line 587 of file SlideShowConstructor.h.
|
protected |
Definition at line 588 of file SlideShowConstructor.h.
|
protected |
Definition at line 556 of file SlideShowConstructor.h.
|
protected |
Definition at line 595 of file SlideShowConstructor.h.
|
protected |
Definition at line 594 of file SlideShowConstructor.h.
|
protected |
Definition at line 601 of file SlideShowConstructor.h.
|
protected |
Definition at line 615 of file SlideShowConstructor.h.
|
protected |
Definition at line 598 of file SlideShowConstructor.h.
|
protected |
Definition at line 597 of file SlideShowConstructor.h.
|
protected |
Definition at line 564 of file SlideShowConstructor.h.
|
protected |
Definition at line 600 of file SlideShowConstructor.h.
|
protected |
Definition at line 604 of file SlideShowConstructor.h.
|
protected |
Definition at line 607 of file SlideShowConstructor.h.
|
protected |
Definition at line 610 of file SlideShowConstructor.h.
|
protected |
Definition at line 613 of file SlideShowConstructor.h.
|
protected |
Definition at line 612 of file SlideShowConstructor.h.
|
protected |
Definition at line 609 of file SlideShowConstructor.h.
|
protected |
Definition at line 562 of file SlideShowConstructor.h.
|
protected |
Definition at line 561 of file SlideShowConstructor.h.
|
protected |
Definition at line 558 of file SlideShowConstructor.h.
|
protected |
Definition at line 611 of file SlideShowConstructor.h.
|
protected |
Definition at line 560 of file SlideShowConstructor.h.
|
protected |
Definition at line 576 of file SlideShowConstructor.h.
|
protected |
Definition at line 577 of file SlideShowConstructor.h.
|
protected |
Definition at line 579 of file SlideShowConstructor.h.
|
protected |
Definition at line 580 of file SlideShowConstructor.h.
|
protected |
Definition at line 569 of file SlideShowConstructor.h.
|
protected |
Definition at line 570 of file SlideShowConstructor.h.
|
protected |
Definition at line 572 of file SlideShowConstructor.h.
|
protected |
Definition at line 573 of file SlideShowConstructor.h.