Class for encoding and decoding a PostScript raster image More...
#include <Inventor/image/SoPSImageRW.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
Returns the type identifier for this specific instance. | |
SoPSImageRW () | |
Constructor. | |
virtual | ~SoPSImageRW () |
Destructor. | |
virtual SbBool | write (SbRasterImage *rasterImage, unsigned int xPos=0, unsigned int yPos=0) |
Writes and encodes the given data in the specific format. | |
virtual SbBool | writeFooter () |
Writes and encodes the header of this specific format. | |
virtual SbBool | read (SbRasterImage *rasterImage, SbBool infoOnly=FALSE) |
Reads, decodes, and fills the rasterImage parameter. | |
virtual SbBool | isMultipleBufferInverted () const |
Specifies the write way when using multiple buffers. | |
virtual SoRasterImageRW::WriteCapability | getWriteCapability () const |
Returns if the class can write in the specific raster format. | |
virtual SoRasterImageRW::ReadCapability | getReadCapability () const |
Returns if the class can read the specific raster format. | |
void | setPrintSize (const SbVec2f &printSize) |
Sets the print size for output. | |
SbVec2f | getPrintSize () const |
Returns the print size given, specified in inches. | |
Public Member Functions inherited from SoRasterImageRW | |
virtual | ~SoRasterImageRW () |
Destructor. | |
virtual SbBool | open (SoRasterImageIO *rasterImageIO, OpenMode openMode) |
Opens the reader/writer in the specified open mode. | |
virtual void | close () |
Closes the reader/writer. | |
virtual SbBool | checkRead (SoRasterImageFile *imageFile) |
Checks if the specified file can be read. | |
virtual SbBool | writeHeader (const SbVec2i32 &size) |
Writes and encodes the header for this specific format. | |
virtual SbBool | readRegion (SbRasterImage *rasterImage, const SbBox2i32 ®ion) |
Read the specified region of current open image into rasterImage. | |
virtual SbString * | getSuffixes (int &numSuffixes) const |
Returns the list of file suffixes supported. | |
virtual void | enableMultipleWriting (SbBool state) |
Enable writing image with multiple calls to write method. | |
virtual SbBool | isMultipleWritingEnabled () const |
Returns TRUE if multiple buffer writing is enabled. | |
virtual SoDEPRECATED SbBool | writeHeader (SbVec2i32 &size) |
Writes and encodes the header for this specific format. | |
virtual SoDEPRECATED SbBool | writeHeader (SbVec2s &size) |
Writes and encodes the header for this specific format. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Static Public Member Functions inherited from SoRasterImageRW | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
Additional Inherited Members | |
Public Types inherited from SoRasterImageRW | |
enum | WriteCapability { WRITE_SCANLINES , WRITE_FULL_IMAGE , WRITE_UNAVAILABLE } |
Write Capability enumeration values. More... | |
enum | ReadCapability { READ_AVAILABLE , READ_UNAVAILABLE } |
Read Capability enumeration values. More... | |
enum | OpenMode { OPEN_READ , OPEN_WRITE } |
open Mode enumeration values. More... | |
Class for encoding and decoding a PostScript raster image
This class is used for encoding and decoding a PostScript raster image.
The writeCapability is WRITE_SCANLINES and isMultipleBufferInverted is FALSE.
See SoRasterImageRW for more information and code examples.
SoRasterImageFile, SoRasterImageRW, SbRasterImage
Definition at line 52 of file SoPSImageRW.h.
SoPSImageRW::SoPSImageRW | ( | ) |
Constructor.
|
virtual |
Destructor.
|
static |
Returns the type identifier for this class.
SbVec2f SoPSImageRW::getPrintSize | ( | ) | const |
Returns the print size given, specified in inches.
|
virtual |
Returns if the class can read the specific raster format.
Reimplemented from SoRasterImageRW.
|
virtual |
Returns the type identifier for this specific instance.
Implements SoRasterImageRW.
|
virtual |
Returns if the class can write in the specific raster format.
Reimplemented from SoRasterImageRW.
|
virtual |
Specifies the write way when using multiple buffers.
Returns FALSE if buffers are written from top to bottom. Returns TRUE if buffers are written from bottom to top.
Reimplemented from SoRasterImageRW.
|
virtual |
Reads, decodes, and fills the rasterImage parameter.
If infoOnly is TRUE, then the buffer will not be read, the parameter rasterImage will be set with raster size and raster number of components, the buffer will be NULL.
Implements SoRasterImageRW.
void SoPSImageRW::setPrintSize | ( | const SbVec2f & | printSize | ) |
Sets the print size for output.
The size is given in inches.
|
virtual |
Writes and encodes the given data in the specific format.
If you are using the multiple writing mode, then you can give the offset with (xPos,yPos) you want to write to.
Implements SoRasterImageRW.
|
virtual |
Writes and encodes the header of this specific format.
Reimplemented from SoRasterImageRW.