Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoImageBackground.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-2018 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _SO_IMAGE_BACKGROUND_H_
25#define _SO_IMAGE_BACKGROUND_H_
26
27#include <Inventor/fields/SoSFFilePathString.h>
28#include <Inventor/fields/SoSFEnum.h>
29#include <Inventor/fields/SoSFImage.h>
30#include <Inventor/SbString.h>
31
32#include <Inventor/nodes/SoBackground.h>
33
34class SoFieldSensor;
35class SbRasterImage;
36
37#ifdef _MSC_VER
38#pragma warning( push )
39#pragma warning(disable:4251)
40#endif
41
42SO_PIMPL_PUBLIC_DECLARATION(SoImageBackground)
43
44
95
96 SO_PIMPL_PUBLIC_HEADER(SoImageBackground)
97 SO_NODE_HEADER(SoImageBackground);
98
99public:
100
155
156 // Fields:
157 //
170
178
184
189
190private:
191 // Initializes this class for use in scene graphs. This
192 // should be called after database initialization and before
193 // any instance of this node is constructed.
194 static void initClass();
195 static void exitClass();
196
198 virtual void notify( SoNotList *list );
199
200private:
201 // Implement render action
202 // We will inherit all other action methods from SoNode.
203 // We don't need a doAction because this node has no effect
204 // on traversal state (or at least it shouldn't :-).
205 virtual void GLRender(SoGLRenderAction *action);
206
207private:
208 // Destructor. Protected to keep people from trying to delete
209 // nodes, rather than using the reference count mechanism.
210 virtual ~SoImageBackground();
211
212 // Reads stuff into instance. Returns FALSE on error.
213 virtual SbBool readInstance(SoInput *in, unsigned short flags);
214
215private:
216 void commonConstructor();
217};
218
219#ifdef _MSC_VER
220#pragma warning( pop )
221#endif
222
223#endif //SoImageBackground
224
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class encapsulat...
Abstract base class for background nodes.
Sensor class that can be attached to Open Inventor fields.
Renders a scene graph using Open Inventor's Render Engine.
Image background node.
Style
Image background style.
@ CENTER
Image is rendered actual size, centered in the window (image aspect ratio is preserved but image ma...
@ TILE
Image is tiled to fill window starting from lower left corner (image aspect ratio is preserved).
@ STRETCH
Image is stretched to exactly fill the viewport in both directions (image aspect ratio is not pres...
@ UPPER_RIGHT
Image is rendered actual size in upper right corner (image aspect ratio is preserved but image may ...
@ LOWER_RIGHT
Image is rendered actual size in lower right corner (image aspect ratio is preserved but image may ...
@ LOWER_LEFT
Image is rendered actual size in lower left corner (image aspect ratio is preserved but image may b...
@ UPPER_LEFT
Image is rendered actual size in upper left corner (image aspect ratio is preserved but image may b...
@ NONE
No image is rendered.
@ CROP
Image is centered and stretched to exactly fill the longer dimension of the viewport (width or height...
SoSFFilePathString filename
Names file from which to read texture image.
SoImageBackground()
Creates a background image node with default settings.
SoSFEnum style
Specifies how the image will be mapped onto the window.
SoSFImage image
Contains an in-memory representation of the texture map.
Used to read Open Inventor data files.
Definition SoInput.h:363
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
int SbBool
Boolean type.
Definition SbBase.h:87