openscenegraph
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
osgPresentation::SlideShowConstructor Class Reference

Classes

struct  FontData
 
struct  ImageData
 
struct  ModelData
 
struct  PositionData
 
struct  VolumeData
 

Public Types

enum  CoordinateFrame { SLIDE, MODEL }
 
enum  PresentationContext { CURRENT_PRESENTATION, CURRENT_SLIDE, CURRENT_LAYER }
 

Public Member Functions

LayerAttributesgetOrCreateLayerAttributes (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::Vec4getBackgroundColor () const
 
void setTextColor (const osg::Vec4 &color)
 
const osg::Vec4getTextColor () const
 
void setPresentationName (const std::string &name)
 
void setPresentationAspectRatio (float aspectRatio)
 
void setPresentationAspectRatio (const std::string &str)
 
void setPresentationDuration (double duration)
 
void addSlide ()
 
void selectSlide (int slideNum)
 
void setSlideTitle (const std::string &name, PositionData &positionData, FontData &fontData)
 
void setSlideBackgrondHUD (bool hud)
 
void setSlideBackground (const std::string &name)
 
void setSlideDuration (double duration)
 
TimeoutaddTimeout ()
 
void addLayer (bool inheritPreviousLayers=true, bool defineAsBaseLayer=false)
 
void selectLayer (int layerNum)
 
void setLayerDuration (double duration)
 
FontDatagetTitleFontData ()
 
FontDatagetTitleFontDataDefault ()
 
PositionDatagetTitlePositionData ()
 
PositionDatagetTitlePositionDataDefault ()
 
FontDatagetTextFontData ()
 
FontDatagetTextFontDataDefault ()
 
PositionDatagetTextPositionData ()
 
PositionDatagetTextPositionDataDefault ()
 
void translateTextCursor (const osg::Vec3 &delta)
 
PositionDatagetImagePositionData ()
 
PositionDatagetImagePositionDataDefault ()
 
PositionDatagetModelPositionData ()
 
PositionDatagetModelPositionDataDefault ()
 
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 addToCurrentLayer (osg::Node *subgraph)
 
void addBullet (const std::string &bullet, PositionData &positionData, FontData &fontData)
 
void addParagraph (const std::string &paragraph, PositionData &positionData, FontData &fontData)
 
osg::ImagereadImage (const std::string &filename, const ImageData &imageData)
 
void addImage (const std::string &filename, const PositionData &positionData, const ImageData &imageData)
 
void addStereoImagePair (const std::string &filenameLeft, const ImageData &imageDataLeft, const std::string &filenameRight, const ImageData &imageDataRight, const PositionData &positionData)
 
void addGraph (const std::string &filename, const PositionData &positionData, const ImageData &imageData)
 
void addVNC (const std::string &filename, const PositionData &positionData, const ImageData &imageData, const std::string &password)
 
void addBrowser (const std::string &filename, const PositionData &positionData, const ImageData &imageData)
 
void addPDF (const std::string &filename, const PositionData &positionData, const ImageData &imageData)
 
osg::ImageaddInteractiveImage (const std::string &filename, const PositionData &positionData, const ImageData &imageData)
 
void addModel (osg::Node *subgraph, const PositionData &positionData, const ModelData &modelData)
 
void addModel (const std::string &filename, const PositionData &positionData, const ModelData &modelData)
 
void setUpVolumeScalarProperty (osgVolume::VolumeTile *tile, osgVolume::ScalarProperty *property, const std::string &source)
 
void addVolume (const std::string &filename, const PositionData &positionData, const VolumeData &volumeData)
 
osg::GrouptakePresentation ()
 
osg::GroupgetPresentation ()
 
osg::SwitchgetPresentationSwitch ()
 
osg::SwitchgetCurrentSlide ()
 
void pushCurrentLayer ()
 
void popCurrentLayer ()
 
osg::GroupgetCurrentLayer ()
 
void setLoopPresentation (bool loop)
 
bool getLoopPresentation () const
 
void setAutoSteppingActive (bool flag=true)
 
bool getAutoSteppingActive () const
 
void setHUDSettings (HUDSettings *hudSettings)
 
HUDSettingsgetHUDSettings ()
 
const HUDSettingsgetHUDSettings () const
 

Protected Types

typedef std::vector
< osg::ref_ptr< osg::Group > > 
LayerStack
 
typedef std::list
< osg::ref_ptr
< osgGA::GUIEventHandler > > 
EventHandlerList
 

Protected Member Functions

void findImageStreamsAndAddCallbacks (osg::Node *node)
 
osg::GeometrycreateTexturedQuadGeometry (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::AnimationPathCallbackgetAnimationPathCallback (const PositionData &positionData)
 
osg::NodeattachMaterialAnimation (osg::Node *model, const PositionData &positionData)
 
bool attachTexMat (osg::StateSet *stateset, const ImageData &imageData, float s, float t, bool textureRectangle)
 
osg::StateSetcreateTransformStateSet ()
 
osg::NodedecorateSubgraphForPosition (osg::Node *node, PositionData &positionData)
 
std::string findFileAndRecordPath (const std::string &filename)
 
void recordOptionsFilePath (const osgDB::Options *options)
 

Protected Attributes

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
 
FontData _titleFontData
 
FontData _titleFontDataDefault
 
PositionData _titlePositionData
 
PositionData _titlePositionDataDefault
 
FontData _textFontData
 
FontData _textFontDataDefault
 
PositionData _textPositionData
 
PositionData _textPositionDataDefault
 
PositionData _imagePositionData
 
PositionData _imagePositionDataDefault
 
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
 
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
 
LayerStack _layerStack
 
osg::ref_ptr< FilePathData_filePathData
 
osg::ref_ptr< osg::Group_layerToApplyEventCallbackTo
 
EventHandlerList _currentEventCallbacksToApply
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
SLIDE 
MODEL 
Enumerator
CURRENT_PRESENTATION 
CURRENT_SLIDE 
CURRENT_LAYER 

Constructor & Destructor Documentation

osgPresentation::SlideShowConstructor::SlideShowConstructor ( osgDB::Options options)

Member Function Documentation

void osgPresentation::SlideShowConstructor::addBrowser ( const std::string &  filename,
const PositionData positionData,
const ImageData imageData 
)
void osgPresentation::SlideShowConstructor::addBullet ( const std::string &  bullet,
PositionData positionData,
FontData fontData 
)
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 
)
void osgPresentation::SlideShowConstructor::addImage ( const std::string &  filename,
const PositionData positionData,
const ImageData imageData 
)
osg::Image* osgPresentation::SlideShowConstructor::addInteractiveImage ( const std::string &  filename,
const PositionData positionData,
const ImageData imageData 
)
void osgPresentation::SlideShowConstructor::addKey ( osg::Node node,
const KeyPosition kp 
)
inline
void osgPresentation::SlideShowConstructor::addLayer ( bool  inheritPreviousLayers = true,
bool  defineAsBaseLayer = false 
)
void osgPresentation::SlideShowConstructor::addLayerKey ( const KeyPosition kp)
inline
void osgPresentation::SlideShowConstructor::addLayerRunString ( const std::string &  runString)
inline
void osgPresentation::SlideShowConstructor::addModel ( osg::Node subgraph,
const PositionData positionData,
const ModelData modelData 
)
void osgPresentation::SlideShowConstructor::addModel ( const std::string &  filename,
const PositionData positionData,
const ModelData modelData 
)
void osgPresentation::SlideShowConstructor::addParagraph ( const std::string &  paragraph,
PositionData positionData,
FontData fontData 
)
void osgPresentation::SlideShowConstructor::addPDF ( const std::string &  filename,
const PositionData positionData,
const ImageData imageData 
)
void osgPresentation::SlideShowConstructor::addPresentationKey ( const KeyPosition kp)
inline
void osgPresentation::SlideShowConstructor::addPresentationRunString ( const std::string &  runString)
inline
void osgPresentation::SlideShowConstructor::addPropertyAnimation ( PresentationContext  presentationContext,
PropertyAnimation propertyAnimation 
)
void osgPresentation::SlideShowConstructor::addRunString ( osg::Node node,
const std::string &  runString 
)
inline
void osgPresentation::SlideShowConstructor::addSlide ( )
void osgPresentation::SlideShowConstructor::addSlideKey ( const KeyPosition kp)
inline
void osgPresentation::SlideShowConstructor::addSlideRunString ( const std::string &  runString)
inline
void osgPresentation::SlideShowConstructor::addStereoImagePair ( const std::string &  filenameLeft,
const ImageData imageDataLeft,
const std::string &  filenameRight,
const ImageData imageDataRight,
const PositionData positionData 
)
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 
)
void osgPresentation::SlideShowConstructor::addVolume ( const std::string &  filename,
const PositionData positionData,
const VolumeData volumeData 
)
osg::Node* osgPresentation::SlideShowConstructor::attachMaterialAnimation ( osg::Node model,
const PositionData positionData 
)
protected
bool osgPresentation::SlideShowConstructor::attachTexMat ( osg::StateSet stateset,
const ImageData imageData,
float  s,
float  t,
bool  textureRectangle 
)
protected
osg::Vec3 osgPresentation::SlideShowConstructor::computePositionInModelCoords ( const PositionData positionData) const
protected
osg::Vec3 osgPresentation::SlideShowConstructor::convertModelToSlide ( const osg::Vec3 position) const
protected
osg::Vec3 osgPresentation::SlideShowConstructor::convertSlideToModel ( const osg::Vec3 position) const
protected
void osgPresentation::SlideShowConstructor::createPresentation ( )
osg::Geometry* osgPresentation::SlideShowConstructor::createTexturedQuadGeometry ( const osg::Vec3 pos,
const osg::Vec4 rotation,
float  width,
float  height,
osg::Image image,
bool &  usedTextureRectangle 
)
protected
osg::StateSet* osgPresentation::SlideShowConstructor::createTransformStateSet ( )
inlineprotected
osg::Node* osgPresentation::SlideShowConstructor::decorateSubgraphForPosition ( osg::Node node,
PositionData positionData 
)
protected
std::string osgPresentation::SlideShowConstructor::findFileAndRecordPath ( const std::string &  filename)
protected
void osgPresentation::SlideShowConstructor::findImageStreamsAndAddCallbacks ( osg::Node node)
protected
osg::AnimationPathCallback* osgPresentation::SlideShowConstructor::getAnimationPathCallback ( const PositionData positionData)
protected
bool osgPresentation::SlideShowConstructor::getAutoSteppingActive ( ) const
inline
const osg::Vec4& osgPresentation::SlideShowConstructor::getBackgroundColor ( ) const
inline
osg::Group* osgPresentation::SlideShowConstructor::getCurrentLayer ( )
inline
osg::Switch* osgPresentation::SlideShowConstructor::getCurrentSlide ( )
inline
HUDSettings* osgPresentation::SlideShowConstructor::getHUDSettings ( )
inline
const HUDSettings* osgPresentation::SlideShowConstructor::getHUDSettings ( ) const
inline
PositionData& osgPresentation::SlideShowConstructor::getImagePositionData ( )
inline
PositionData& osgPresentation::SlideShowConstructor::getImagePositionDataDefault ( )
inline
bool osgPresentation::SlideShowConstructor::getLoopPresentation ( ) const
inline
PositionData& osgPresentation::SlideShowConstructor::getModelPositionData ( )
inline
PositionData& osgPresentation::SlideShowConstructor::getModelPositionDataDefault ( )
inline
LayerAttributes* osgPresentation::SlideShowConstructor::getOrCreateLayerAttributes ( osg::Node node)
osg::Group* osgPresentation::SlideShowConstructor::getPresentation ( )
inline
osg::Switch* osgPresentation::SlideShowConstructor::getPresentationSwitch ( )
inline
const osg::Vec4& osgPresentation::SlideShowConstructor::getTextColor ( ) const
inline
FontData& osgPresentation::SlideShowConstructor::getTextFontData ( )
inline
FontData& osgPresentation::SlideShowConstructor::getTextFontDataDefault ( )
inline
PositionData& osgPresentation::SlideShowConstructor::getTextPositionData ( )
inline
PositionData& osgPresentation::SlideShowConstructor::getTextPositionDataDefault ( )
inline
FontData& osgPresentation::SlideShowConstructor::getTitleFontData ( )
inline
FontData& osgPresentation::SlideShowConstructor::getTitleFontDataDefault ( )
inline
PositionData& osgPresentation::SlideShowConstructor::getTitlePositionData ( )
inline
PositionData& osgPresentation::SlideShowConstructor::getTitlePositionDataDefault ( )
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::Image* osgPresentation::SlideShowConstructor::readImage ( const std::string &  filename,
const ImageData imageData 
)
void osgPresentation::SlideShowConstructor::recordOptionsFilePath ( const osgDB::Options options)
protected
void osgPresentation::SlideShowConstructor::selectLayer ( int  layerNum)
void osgPresentation::SlideShowConstructor::selectSlide ( int  slideNum)
void osgPresentation::SlideShowConstructor::setAutoSteppingActive ( bool  flag = true)
inline
void osgPresentation::SlideShowConstructor::setBackgroundColor ( const osg::Vec4 color,
bool  updateClearNode 
)
void osgPresentation::SlideShowConstructor::setDuration ( osg::Node node,
double  duration 
)
inline
void osgPresentation::SlideShowConstructor::setHUDSettings ( HUDSettings hudSettings)
inline
void osgPresentation::SlideShowConstructor::setJump ( osg::Node node,
const JumpData jumpData 
)
inline
void osgPresentation::SlideShowConstructor::setLayerDuration ( double  duration)
void osgPresentation::SlideShowConstructor::setLayerJump ( const JumpData jumpData)
inline
void osgPresentation::SlideShowConstructor::setLoopPresentation ( bool  loop)
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)
void osgPresentation::SlideShowConstructor::setSlideBackgrondHUD ( bool  hud)
inline
void osgPresentation::SlideShowConstructor::setSlideBackground ( const std::string &  name)
inline
void osgPresentation::SlideShowConstructor::setSlideDuration ( double  duration)
void osgPresentation::SlideShowConstructor::setSlideJump ( const JumpData jumpData)
inline
void osgPresentation::SlideShowConstructor::setSlideTitle ( const std::string &  name,
PositionData positionData,
FontData fontData 
)
inline
void osgPresentation::SlideShowConstructor::setTextColor ( const osg::Vec4 color)
void osgPresentation::SlideShowConstructor::setUpMovieVolume ( osg::Node subgraph,
osg::ImageStream imageStream,
const ImageData imageData 
)
protected
void osgPresentation::SlideShowConstructor::setUpVolumeScalarProperty ( osgVolume::VolumeTile tile,
osgVolume::ScalarProperty property,
const std::string &  source 
)
osg::Group* osgPresentation::SlideShowConstructor::takePresentation ( )
inline
void osgPresentation::SlideShowConstructor::translateTextCursor ( const osg::Vec3 delta)
inline
void osgPresentation::SlideShowConstructor::updatePositionFromInModelCoords ( const osg::Vec3 vertex,
PositionData positionData 
) const
protected

Member Data Documentation

bool osgPresentation::SlideShowConstructor::_autoSteppingActive
protected
osg::Vec4 osgPresentation::SlideShowConstructor::_backgroundColor
protected
EventHandlerList osgPresentation::SlideShowConstructor::_currentEventCallbacksToApply
protected
osg::ref_ptr<osg::Group> osgPresentation::SlideShowConstructor::_currentLayer
protected
osg::Vec3 osgPresentation::SlideShowConstructor::_eyeOrigin
protected
osg::ref_ptr<FilePathData> osgPresentation::SlideShowConstructor::_filePathData
protected
osg::ref_ptr<HUDSettings> osgPresentation::SlideShowConstructor::_hudSettings
protected
PositionData osgPresentation::SlideShowConstructor::_imagePositionData
protected
PositionData osgPresentation::SlideShowConstructor::_imagePositionDataDefault
protected
LayerStack osgPresentation::SlideShowConstructor::_layerStack
protected
osg::ref_ptr<osg::Group> osgPresentation::SlideShowConstructor::_layerToApplyEventCallbackTo
protected
unsigned int osgPresentation::SlideShowConstructor::_leftEyeMask
protected
bool osgPresentation::SlideShowConstructor::_loopPresentation
protected
PositionData osgPresentation::SlideShowConstructor::_modelPositionData
protected
PositionData osgPresentation::SlideShowConstructor::_modelPositionDataDefault
protected
osg::ref_ptr<osgDB::Options> osgPresentation::SlideShowConstructor::_options
protected
double osgPresentation::SlideShowConstructor::_presentationDuration
protected
std::string osgPresentation::SlideShowConstructor::_presentationName
protected
osg::ref_ptr<osg::Switch> osgPresentation::SlideShowConstructor::_presentationSwitch
protected
osg::ref_ptr<osg::Group> osgPresentation::SlideShowConstructor::_previousLayer
protected
osg::ref_ptr<osgPresentation::PropertyEventCallback> osgPresentation::SlideShowConstructor::_propertyEventCallback
protected
osg::ref_ptr<osgPresentation::PropertyManager> osgPresentation::SlideShowConstructor::_propertyManager
protected
unsigned int osgPresentation::SlideShowConstructor::_rightEyeMask
protected
osg::ref_ptr<osg::Group> osgPresentation::SlideShowConstructor::_root
protected
osg::ref_ptr<osg::Switch> osgPresentation::SlideShowConstructor::_slide
protected
bool osgPresentation::SlideShowConstructor::_slideBackgroundAsHUD
protected
std::string osgPresentation::SlideShowConstructor::_slideBackgroundImageFileName
protected
osg::ref_ptr<osg::ClearNode> osgPresentation::SlideShowConstructor::_slideClearNode
protected
double osgPresentation::SlideShowConstructor::_slideDistance
protected
double osgPresentation::SlideShowConstructor::_slideHeight
protected
osg::Vec3 osgPresentation::SlideShowConstructor::_slideOrigin
protected
std::string osgPresentation::SlideShowConstructor::_slideTitle
protected
double osgPresentation::SlideShowConstructor::_slideWidth
protected
FontData osgPresentation::SlideShowConstructor::_textFontData
protected
FontData osgPresentation::SlideShowConstructor::_textFontDataDefault
protected
PositionData osgPresentation::SlideShowConstructor::_textPositionData
protected
PositionData osgPresentation::SlideShowConstructor::_textPositionDataDefault
protected
FontData osgPresentation::SlideShowConstructor::_titleFontData
protected
FontData osgPresentation::SlideShowConstructor::_titleFontDataDefault
protected
PositionData osgPresentation::SlideShowConstructor::_titlePositionData
protected
PositionData osgPresentation::SlideShowConstructor::_titlePositionDataDefault
protected

The documentation for this class was generated from the following file: