Image class for encapsulating the storage texture image data
Inheritance:
Public Methods
-
Image()
-
virtual Object* clone() const
-
virtual bool isSameKindAs(const Object* obj) const
-
virtual const char* className() const
-
inline const std::string& getFileName() const
-
void setFileName(const std::string& fileName)
-
void setImage(const int s, const int t, const int r, const int internalFormat, const unsigned int pixelFormat, const unsigned int dataType, unsigned char* data, const int packing=-1)
- set the image data and format.
-
inline const int s() const
- Width of image
-
inline const int t() const
- Height of image
-
inline const int r() const
- Depth of image
-
inline const int internalFormat() const
-
inline const unsigned int pixelFormat() const
-
inline const unsigned int dataType() const
-
inline const unsigned int packing() const
-
inline unsigned char* data()
- raw image data
-
inline const unsigned char* data() const
- raw const image data
-
void scaleImage(const int s, const int t, const int r)
- Scale image to specified size.
-
void ensureDimensionsArePowerOfTwo()
- Ensure image dimensions are a power of two.
-
inline void dirty()
- Dirty the image, which increments the modified flag, to force osg::Texture to reload the image
-
inline void setModifiedTag(const unsigned int value)
- Set the modified tag value, only used by osg::Texture when using texture subloading.
-
inline const unsigned int getModifiedTag() const
- Get modified tag value, only used by osg::Texture when using texture subloading.
Protected Fields
-
std::string _fileName
-
int _s
-
int _t
-
int _r
-
int _internalFormat
-
unsigned int _pixelFormat
-
unsigned int _dataType
-
unsigned int _packing
-
unsigned char* _data
-
unsigned int _modifiedTag
Protected Methods
-
virtual ~Image()
Inherited from Object:
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
Image class for encapsulating the storage texture image data
- Image()
- virtual Object* clone() const
- virtual bool isSameKindAs(const Object* obj) const
- virtual const char* className() const
- inline const std::string& getFileName() const
- void setFileName(const std::string& fileName)
- void setImage(const int s, const int t, const int r, const int internalFormat, const unsigned int pixelFormat, const unsigned int dataType, unsigned char* data, const int packing=-1)
- set the image data and format.
note, when the packing value is negative (the default is -1) this method assumes
a _packing width of 1 if the width is not a multiple of 4,
otherwise automatically sets to _packing to 4. If a positive
value of packing is supplied than _packing is simply set to that value.
- inline const int s() const
- Width of image
- inline const int t() const
- Height of image
- inline const int r() const
- Depth of image
- inline const int internalFormat() const
- inline const unsigned int pixelFormat() const
- inline const unsigned int dataType() const
- inline const unsigned int packing() const
- inline unsigned char* data()
- raw image data
- inline const unsigned char* data() const
- raw const image data
- void scaleImage(const int s, const int t, const int r)
- Scale image to specified size.
- void ensureDimensionsArePowerOfTwo()
- Ensure image dimensions are a power of two.
Mip Mapped texture require the image dimensions to be
power of two.
- inline void dirty()
- Dirty the image, which increments the modified flag, to force osg::Texture to reload the image
- inline void setModifiedTag(const unsigned int value)
- Set the modified tag value, only used by osg::Texture when using texture subloading.
- inline const unsigned int getModifiedTag() const
- Get modified tag value, only used by osg::Texture when using texture subloading.
- virtual ~Image()
- std::string _fileName
- int _s
- int _t
- int _r
- int _internalFormat
- unsigned int _pixelFormat
- unsigned int _dataType
- unsigned int _packing
- unsigned char* _data
- unsigned int _modifiedTag
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.