Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoPSImageRW.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2022 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : C. OGNIER (Jun 2003)
22**=======================================================================*/
23
24
25
26
27#ifndef _SOPSIMAGERW_
28#define _SOPSIMAGERW_
29
30
31#include <Inventor/image/SoRasterImageRW.h>
32
53
54 SO_IMAGE_RASTER_RW_HEADER()
55
56public:
57
58
63
64
68 virtual ~SoPSImageRW();
69
75 virtual SbBool write(SbRasterImage* rasterImage, unsigned int xPos = 0, unsigned int yPos = 0);
76
87 virtual SbBool read(SbRasterImage* rasterImage, SbBool infoOnly = FALSE);
88
100
105
109 void setPrintSize(const SbVec2f& printSize);
110
115
116private:
117 virtual bool supportsAlpha() const;
118
119private:
120 virtual void createSuffixList();
121
122private:
123 void putHex(FILE *fp, unsigned char val, int &hexPos);
124 SbBool m_printSizeFlag;
125 SbVec2f m_printSize;
126 FILE* m_fpW;
127};
128
129#endif
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class encapsulat...
2D vector class.
Definition SbVec.h:76
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for encodi...
Definition SoPSImageRW.h:52
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 SbBool writeFooter()
Writes and encodes the header of this specific format.
SbVec2f getPrintSize() const
Returns the print size given, specified in inches.
virtual SoRasterImageRW::WriteCapability getWriteCapability() const
Returns if the class can write in the specific raster format.
void setPrintSize(const SbVec2f &printSize)
Sets the print size for output.
virtual SoRasterImageRW::ReadCapability getReadCapability() const
Returns if the class can read the specific raster format.
virtual SbBool write(SbRasterImage *rasterImage, unsigned int xPos=0, unsigned int yPos=0)
Writes and encodes the given data in the specific format.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
ReadCapability
Read Capability enumeration values.
WriteCapability
Write Capability enumeration values.
int SbBool
Boolean type.
Definition SbBase.h:87