class SG_EXPORT osg::ImageStream

Image Stream class

Inheritance:


Public Classes

[more]enum StreamStatus

Public Methods

[more] ImageStream()
[more] ImageStream(const ImageStream& image, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more]virtual Object* cloneType() const
[more]virtual Object* clone(const CopyOp& copyop) const
[more]virtual bool isSameKindAs(const Object* obj) const
[more]virtual const char* libraryName() const
[more]virtual const char* className() const
[more]virtual int compare(const Image& rhs) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
[more]virtual void play()
[more]virtual void pause()
[more]virtual void rewind()
[more]virtual void quit(bool = true)
[more]StreamStatus getStatus()
[more]virtual void setReferenceTime(double)
[more]virtual double getReferenceTime() const
[more]virtual void setTimeMultiplier(double)
[more]virtual double getTimeMultiplier()
[more]virtual void update()

Protected Fields

[more]StreamStatus _status

Protected Methods

[more]virtual ~ImageStream()


Inherited from Image:

Public Classes

oenum AllocationMode

Public Methods

ovoid setFileName(const std::string& fileName)
oinline const std::string& getFileName() const
ovoid setAllocationMode(AllocationMode mode)
oAllocationMode getAllocationMode() const
ovoid allocateImage(int s, int t, int r, GLenum pixelFormat, GLenum type, int packing=1)
ovoid setImage(int s, int t, int r, GLint internalTextureformat, GLenum pixelFormat, GLenum type, unsigned char* data, AllocationMode mode, int packing=1)
ovoid readPixels(int x, int y, int width, int height, GLenum pixelFormat, GLenum type)
ovoid readImageFromCurrentTexture(unsigned int contextID, bool copyMipMapsIfAvailable)
ovoid scaleImage(int s, int t, int r)
ovoid scaleImage(int s, int t, int r, GLenum newDataType)
ovoid copySubImage(int s_offset, int t_offset, int r_offset, osg::Image* source)
oinline int s() const
oinline int t() const
oinline int r() const
ovoid setInternalTextureFormat(GLint internalFormat)
oinline GLint getInternalTextureFormat() const
ovoid setPixelFormat(GLenum pixelFormat)
oinline GLenum getPixelFormat() const
oinline GLenum getDataType() const
oinline unsigned int getPacking() const
oinline unsigned int getPixelSizeInBits() const
oinline unsigned int getRowSizeInBytes() const
oinline unsigned int getImageSizeInBytes() const
oinline unsigned int getTotalSizeInBytes() const
ounsigned int getTotalSizeInBytesIncludingMipmaps() const
oinline unsigned char* data()
oinline const unsigned char* data() const
oinline unsigned char* data(int column, int row=0, int image=0) const
ovoid flipHorizontal()
ovoid flipVertical()
ovoid ensureValidSizeForTexturing(GLint maxTextureSize)
oinline void dirty()
oinline void setModifiedTag(unsigned int value)
oinline unsigned int getModifiedTag() const
ostatic bool isPackedType(GLenum type)
ostatic unsigned int computeNumComponents(GLenum pixelFormat)
ostatic unsigned int computePixelSizeInBits(GLenum pixelFormat, GLenum type)
ostatic unsigned int computeRowWidthInBytes(int width, GLenum pixelFormat, GLenum type, int packing)
ostatic int computeNearestPowerOfTwo(int s, float bias=0.5f)
oinline bool isMipmap() const
ounsigned int getNumMipmapLevels() const
oinline void setMipmapData(const MipmapDataType& mipmapDataVector)
oinline unsigned char* getMipmapData(unsigned int mipmapNumber) const
obool isImageTranslucent() const

Public

otypedef std::vector< unsigned int > MipmapDataType

Protected Fields

ostd::string _fileName
oint _s
oint _t
oint _r
oGLint _internalTextureFormat
oGLenum _pixelFormat
oGLenum _dataType
ounsigned int _packing
oAllocationMode _allocationMode
ounsigned char* _data
ounsigned int _modifiedTag
oMipmapDataType _mipmapData

Protected Methods

oImage& operator = (const Image&)
ovoid deallocateData()
ovoid setData(unsigned char* data, AllocationMode allocationMode)


Inherited from Object:

Public Classes

oenum DataVariance

Public Methods

oinline void setDataVariance(DataVariance dv)
oinline DataVariance getDataVariance() const
oinline void setUserData(Referenced* obj)
oinline Referenced* getUserData()
oinline const Referenced* getUserData() const

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable OpenThreads::Mutex _refMutex
omutable int _refCount


Documentation

Image Stream class
o ImageStream()

o ImageStream(const ImageStream& image, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy

ovirtual Object* cloneType() const

ovirtual Object* clone(const CopyOp& copyop) const

ovirtual bool isSameKindAs(const Object* obj) const

ovirtual const char* libraryName() const

ovirtual const char* className() const

ovirtual int compare(const Image& rhs) const
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs

oenum StreamStatus

o PLAYING

o PAUSED

o REWINDING

ovirtual void play()

ovirtual void pause()

ovirtual void rewind()

ovirtual void quit(bool = true)

oStreamStatus getStatus()

ovirtual void setReferenceTime(double)

ovirtual double getReferenceTime() const

ovirtual void setTimeMultiplier(double)

ovirtual double getTimeMultiplier()

ovirtual void update()

ovirtual ~ImageStream()

oStreamStatus _status


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.