Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoImage.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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : R. ALBOU (Feb 1998)
22**=======================================================================*/
23
24 /* include files */
25#ifndef _SO_IMAGE_
26#define _SO_IMAGE_
27
28#include <Inventor/SbPImpl.h>
29#include <Inventor/nodes/SoShape.h>
30
31#include <Inventor/fields/SoSFFilePathString.h>
32#include <Inventor/fields/SoSFImage.h>
33#include <Inventor/fields/SoSFEnum.h>
34#include <Inventor/fields/SoSFInt32.h>
35#include <Inventor/nodes/SoNode.h>
36#include <Inventor/nodes/SoTexture.h>
37#include <Inventor/image/SbRasterImage.h>
38
39#include <Inventor/sys/SoGLType.h>
40
41/*----------------------------------------------------------------------------*/
44
45SO_PIMPL_PUBLIC_DECLARATION(SoImage)
46
47
122class SoImage : public SoShape {
123
124 SO_PIMPL_PUBLIC_HEADER(SoImage)
125 SO_NODE_HEADER(SoImage);
126
127 public:
128
142 RIGHT
143 };
144
160
210
211
212 // Fields
225
248
257
266
271
272 /*----------------------------------------------------------------------------*/
273
274 private:
275 virtual void GLRender(SoGLRenderAction *action);
276 virtual void rayPick(SoRayPickAction *action);
277 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action);
278
279 virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f &center);
280
281 private:
282 static void initClass();
283 static void exitClass();
284
286 virtual void notify( SoNotList *list );
287
288 private:
289 virtual void generatePrimitives(SoAction *action);
290
291 // Reads stuff into instance. Returns FALSE on error.
292 virtual SbBool readInstance(SoInput *in, unsigned short flags);
293
294 // Destructor
295 virtual ~SoImage();
296
297 private:
298 void commonConstructor();
299};
300/*----------------------------------------------------------------------------*/
301
302#endif /* _SO_IMAGE_ */
303
3D box class.
Definition SbBox.h:649
3D vector class.
Definition SbVec.h:932
Abstract base class for all actions.
Definition SoAction.h:132
Renders a scene graph using Open Inventor's Render Engine.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Counts number of...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Displays an imag...
Definition SoImage.h:122
SoSFImage image
Contains an in-memory representation of the image.
Definition SoImage.h:232
VertAlignment
Vertical alignment.
Definition SoImage.h:146
@ HALF
The image is middle justified.
Definition SoImage.h:154
@ BOTTOM
The image is bottom justified.
Definition SoImage.h:150
FileType
File type.
Definition SoImage.h:162
SoSFInt32 height
Height of image in pixels (optional).
Definition SoImage.h:265
SoSFEnum horAlignment
Horizontal alignment.
Definition SoImage.h:240
HorAlignment
Horizontal alignment.
Definition SoImage.h:130
@ LEFT
The image is left justified.
Definition SoImage.h:134
@ CENTER
The image is center justified.
Definition SoImage.h:138
SoImage()
Constructor.
SoSFInt32 width
Width of image in pixels (optional).
Definition SoImage.h:256
SoSFFilePathString filename
Names file from which to read image.
Definition SoImage.h:224
SoSFEnum vertAlignment
Vertical alignment.
Definition SoImage.h:247
Used to read Open Inventor data files.
Definition SoInput.h:363
Intersects objects with a ray cast into scene.
Field containing an enumerated value.
Definition SoSFEnum.h:89
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Field containing...
Field containing a 2D image.
Definition SoSFImage.h:126
Field containing a int32_t integer.
Definition SoSFInt32.h:80
Abstract base class for all shape nodes.
Definition SoShape.h:116
@ BMP
BMP.
Definition SoTexture.h:657
@ TIFF
TIFF.
Definition SoTexture.h:651
@ JPEG2000
JPEG2000.
Definition SoTexture.h:661
@ GIF
GIF.
Definition SoTexture.h:653
@ UNKNOWN
Unknown file.
Definition SoTexture.h:645
@ SGI
SGI.
Definition SoTexture.h:649
@ JPEG
JPEG.
Definition SoTexture.h:655
@ HDRI
HDRI.
Definition SoTexture.h:665
@ RGB
RGB.
Definition SoTexture.h:647
@ DDS
DDS.
Definition SoTexture.h:663
@ PNG
PNG.
Definition SoTexture.h:659
int SbBool
Boolean type.
Definition SbBase.h:87