Open Inventor Release 2024.1.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-2017 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
222
223
224 // Fields
237
260
269
278
283
284 /*----------------------------------------------------------------------------*/
285
286 private:
287 virtual void GLRender(SoGLRenderAction *action);
288 virtual void rayPick(SoRayPickAction *action);
289 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action);
290
291 virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f &center);
292
293 private:
294 static void initClass();
295 static void exitClass();
296
298 virtual void notify( SoNotList *list );
299
300 private:
301 virtual void generatePrimitives(SoAction *action);
302
303 // Reads stuff into instance. Returns FALSE on error.
304 virtual SbBool readInstance(SoInput *in, unsigned short flags);
305
306 // Destructor
307 virtual ~SoImage();
308
309 private:
310 void commonConstructor();
311};
312/*----------------------------------------------------------------------------*/
313
314#endif /* _SO_IMAGE_ */
315
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:244
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:277
SoSFEnum horAlignment
Horizontal alignment.
Definition SoImage.h:252
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:268
SoSFFilePathString filename
Names file from which to read image.
Definition SoImage.h:236
SoSFEnum vertAlignment
Vertical alignment.
Definition SoImage.h:259
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:115
@ BMP
BMP.
Definition SoTexture.h:656
@ PNM
PNM.
Definition SoTexture.h:664
@ TIFF
TIFF.
Definition SoTexture.h:650
@ JPEG2000
JPEG2000.
Definition SoTexture.h:660
@ RAS
RAS.
Definition SoTexture.h:666
@ GIF
GIF.
Definition SoTexture.h:652
@ UNKNOWN
Unknown file.
Definition SoTexture.h:644
@ SGI
SGI.
Definition SoTexture.h:648
@ JPEG
JPEG.
Definition SoTexture.h:654
@ HDRI
HDRI.
Definition SoTexture.h:670
@ RGB
RGB.
Definition SoTexture.h:646
@ DDS
DDS.
Definition SoTexture.h:668
@ PNG
PNG.
Definition SoTexture.h:658
@ PGX
PGX.
Definition SoTexture.h:662
int SbBool
Boolean type.
Definition SbBase.h:87