Changeset 13041 for OpenSceneGraph/trunk/include/osg/ImageStream
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/ImageStream (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/ImageStream
r12898 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 47 47 REWINDING 48 48 }; 49 49 50 50 virtual void seek(double /*time*/) {} 51 51 … … 55 55 56 56 virtual void rewind() { _status=REWINDING; } 57 57 58 58 virtual void quit(bool /*waitForThreadToExit*/ = true) {} 59 59 60 60 StreamStatus getStatus() { return _status; } 61 61 62 62 63 63 enum LoopingMode … … 66 66 LOOPING 67 67 }; 68 68 69 69 void setLoopingMode(LoopingMode mode) 70 70 { 71 71 if (_loopingMode == mode) return; 72 72 73 73 _loopingMode = mode; 74 74 applyLoopingMode(); 75 75 } 76 76 77 77 LoopingMode getLoopingMode() const { return _loopingMode; } 78 78 79 79 virtual double getCreationTime() const { return HUGE_VAL; } 80 80 virtual double getLength() const { return 0.0; } 81 virtual double getFrameRate() const { return 0.0; } 81 virtual double getFrameRate() const { return 0.0; } 82 82 virtual double getCurrentTime() const { return 0.0; } 83 83 84 84 virtual void setReferenceTime(double) {} 85 85 virtual double getReferenceTime() const { return 0.0; } 86 86 87 87 virtual void setTimeMultiplier(double) {} 88 88 virtual double getTimeMultiplier() const { return 0.0; } 89 89 90 90 virtual void setVolume(float) {} 91 91 virtual float getVolume() const { return 0.0f; } … … 95 95 AudioStreams& getAudioStreams() { return _audioStreams; } 96 96 const AudioStreams& getAudioStreams() const { return _audioStreams; } 97 97 98 98 99 99 protected: … … 104 104 StreamStatus _status; 105 105 LoopingMode _loopingMode; 106 106 107 107 AudioStreams _audioStreams; 108 108 };
