26#ifndef _SORASTERIMAGERW_
27#define _SORASTERIMAGERW_
411 virtual SbBool getImagesNumber(
size_t& imagesNumber);
438 virtual SbVec3f getOrigin(
const size_t& imageId);
445 virtual SbVec2f getPixelSize(
const size_t& imageId);
452 virtual float getThickness(
const size_t& imageId);
459 virtual SbVec3f getX(
const size_t& imageId);
466 virtual SbVec3f getY(
const size_t& imageId);
474 virtual SbVec3f getZ(
const size_t& imageId);
477 virtual bool supportsAlpha()
const;
488 virtual void createSuffixList() = 0;
494 unsigned int m_multipleWritingNumComponents;
495 SbBool m_firstMultipleImages;
#define FALSE
Possible value of SbBool.
SO_PIMPL_BASE_PUBLIC_DECLARATION(SoRasterImageRW)
#define SO_IMAGE_RASTER_RW_ABSTRACT_HEADER()
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class encapsulat...
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for raster...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
virtual SoRasterImageRW::ReadCapability getReadCapability() const
Returns the read capability of the raster format.
virtual SoDEPRECATED SbBool writeHeader(SbVec2i32 &size)
Writes and encodes the header for this specific format.
ReadCapability
Read Capability enumeration values.
@ READ_UNAVAILABLE
No reading available.
@ READ_AVAILABLE
Read functionality available.
virtual SbBool read(SbRasterImage *rasterImage, SbBool infoOnly=FALSE)=0
Read the current open image into rasterImage.
virtual SbBool isMultipleWritingEnabled() const
Returns TRUE if multiple buffer writing is enabled.
OpenMode
open Mode enumeration values.
@ OPEN_READ
Opened for reading.
@ OPEN_WRITE
Opened for writing.
virtual SoDEPRECATED SbBool writeHeader(SbVec2s &size)
Writes and encodes the header for this specific format.
WriteCapability
Write Capability enumeration values.
@ WRITE_FULL_IMAGE
Can only write a complete image.
@ WRITE_SCANLINES
Can write an image incrementally (e.g., by scan-line).
@ WRITE_UNAVAILABLE
No writing available.
virtual SoRasterImageRW::WriteCapability getWriteCapability() const
Returns the write capability of the raster format.
virtual SbBool open(SoRasterImageIO *rasterImageIO, OpenMode openMode)
Opens the reader/writer in the specified open mode.
virtual void close()
Closes the reader/writer.
virtual ~SoRasterImageRW()
Destructor.
virtual SbBool readRegion(SbRasterImage *rasterImage, const SbBox2i32 ®ion)
Read the specified region of current open image into rasterImage.
virtual SbBool writeHeader(const SbVec2i32 &size)
Writes and encodes the header for this specific format.
virtual SbBool checkRead(SoRasterImageFile *imageFile)
Checks if the specified file can be read.
virtual void enableMultipleWriting(SbBool state)
Enable writing image with multiple calls to write method.
virtual SbBool isMultipleBufferInverted() const
Returns the write order when using multiple buffers.
virtual SbBool write(SbRasterImage *rasterImage, unsigned int xPos=0, unsigned int yPos=0)=0
Writes and encodes the given data in the specific format.
virtual SbBool writeFooter()
Writes and encodes the footer for this specific format.
virtual SbString * getSuffixes(int &numSuffixes) const
Returns the list of file suffixes supported.