Image Stream class
Inheritance:
Public Classes
-
enum StreamStatus
Public Methods
-
ImageStream()
-
ImageStream(const ImageStream& image, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
-
virtual Object* cloneType() const
-
virtual Object* clone(const CopyOp& copyop) const
-
virtual bool isSameKindAs(const Object* obj) const
-
virtual const char* libraryName() const
-
virtual const char* className() const
-
virtual int compare(const Image& rhs) const
- return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
-
virtual void play()
-
virtual void pause()
-
virtual void rewind()
-
virtual void quit(bool = true)
-
StreamStatus getStatus()
-
virtual void setReferenceTime(double)
-
virtual double getReferenceTime() const
-
virtual void setTimeMultiplier(double)
-
virtual double getTimeMultiplier()
-
virtual void update()
Protected Fields
-
StreamStatus _status
Protected Methods
-
virtual ~ImageStream()
Inherited from Image:
Public Classes
-
enum AllocationMode
Public Methods
-
void setFileName(const std::string& fileName)
-
inline const std::string& getFileName() const
-
void setAllocationMode(AllocationMode mode)
-
AllocationMode getAllocationMode() const
-
void allocateImage(int s, int t, int r, GLenum pixelFormat, GLenum type, int packing=1)
-
void setImage(int s, int t, int r, GLint internalTextureformat, GLenum pixelFormat, GLenum type, unsigned char* data, AllocationMode mode, int packing=1)
-
void readPixels(int x, int y, int width, int height, GLenum pixelFormat, GLenum type)
-
void readImageFromCurrentTexture(unsigned int contextID, bool copyMipMapsIfAvailable)
-
void scaleImage(int s, int t, int r)
-
void scaleImage(int s, int t, int r, GLenum newDataType)
-
void copySubImage(int s_offset, int t_offset, int r_offset, osg::Image* source)
-
inline int s() const
-
inline int t() const
-
inline int r() const
-
void setInternalTextureFormat(GLint internalFormat)
-
inline GLint getInternalTextureFormat() const
-
void setPixelFormat(GLenum pixelFormat)
-
inline GLenum getPixelFormat() const
-
inline GLenum getDataType() const
-
inline unsigned int getPacking() const
-
inline unsigned int getPixelSizeInBits() const
-
inline unsigned int getRowSizeInBytes() const
-
inline unsigned int getImageSizeInBytes() const
-
inline unsigned int getTotalSizeInBytes() const
-
unsigned int getTotalSizeInBytesIncludingMipmaps() const
-
inline unsigned char* data()
-
inline const unsigned char* data() const
-
inline unsigned char* data(int column, int row=0, int image=0) const
-
void flipHorizontal()
-
void flipVertical()
-
void ensureValidSizeForTexturing(GLint maxTextureSize)
-
inline void dirty()
-
inline void setModifiedTag(unsigned int value)
-
inline unsigned int getModifiedTag() const
-
static bool isPackedType(GLenum type)
-
static unsigned int computeNumComponents(GLenum pixelFormat)
-
static unsigned int computePixelSizeInBits(GLenum pixelFormat, GLenum type)
-
static unsigned int computeRowWidthInBytes(int width, GLenum pixelFormat, GLenum type, int packing)
-
static int computeNearestPowerOfTwo(int s, float bias=0.5f)
-
inline bool isMipmap() const
-
unsigned int getNumMipmapLevels() const
-
inline void setMipmapData(const MipmapDataType& mipmapDataVector)
-
inline unsigned char* getMipmapData(unsigned int mipmapNumber) const
-
bool isImageTranslucent() const
Public
-
typedef std::vector< unsigned int > MipmapDataType
Protected Fields
-
std::string _fileName
-
int _s
-
int _t
-
int _r
-
GLint _internalTextureFormat
-
GLenum _pixelFormat
-
GLenum _dataType
-
unsigned int _packing
-
AllocationMode _allocationMode
-
unsigned char* _data
-
unsigned int _modifiedTag
-
MipmapDataType _mipmapData
Protected Methods
-
Image& operator = (const Image&)
-
void deallocateData()
-
void setData(unsigned char* data, AllocationMode allocationMode)
Inherited from Object:
Public Classes
-
enum DataVariance
Public Methods
-
inline void setDataVariance(DataVariance dv)
-
inline DataVariance getDataVariance() const
-
inline void setUserData(Referenced* obj)
-
inline Referenced* getUserData()
-
inline const Referenced* getUserData() const
Protected Fields
-
DataVariance _dataVariance
-
ref_ptr<Referenced> _userData
Public Methods
-
static void setDeleteHandler(DeleteHandler* handler)
-
static DeleteHandler* getDeleteHandler()
-
inline void ref() const
-
inline void unref_nodelete() const
-
inline int referenceCount() const
-
inline void unref() const
Protected Fields
-
mutable OpenThreads::Mutex _refMutex
-
mutable int _refCount
Documentation
Image Stream class
- ImageStream()
- ImageStream(const ImageStream& image, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
- virtual Object* cloneType() const
- virtual Object* clone(const CopyOp& copyop) const
- virtual bool isSameKindAs(const Object* obj) const
- virtual const char* libraryName() const
- virtual const char* className() const
- virtual int compare(const Image& rhs) const
- return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
- enum StreamStatus
- PLAYING
- PAUSED
- REWINDING
- virtual void play()
- virtual void pause()
- virtual void rewind()
- virtual void quit(bool = true)
- StreamStatus getStatus()
- virtual void setReferenceTime(double)
- virtual double getReferenceTime() const
- virtual void setTimeMultiplier(double)
- virtual double getTimeMultiplier()
- virtual void update()
- virtual ~ImageStream()
- StreamStatus _status
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.