Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoIndexedTexture2.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-2021 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : R. ALBOU (Jan 2005)
22**=======================================================================*/
23
24#ifndef _SO_INDEXED_TEXTURE2_
25#define _SO_INDEXED_TEXTURE2_
26
27#include <Inventor/fields/SoSFFloat.h>
28#include <Inventor/fields/SoSFEnum.h>
29#include <Inventor/fields/SoSFArray2D.h>
30
31#include <Inventor/nodes/SoNode.h>
32#include <Inventor/nodes/SoTexture2.h>
33#include <Inventor/threads/SbThreadStorage.h>
34#include <Inventor/caches/SoCache.h>
35
36#include <Inventor/sensors/SoFieldSensor.h>
37
38class SoGLRenderAction ;
39class SoCallbackAction ;
40class SoColorMap;
41
42#ifdef _MSC_VER
43#pragma warning( push )
44#pragma warning(disable:4251)
45#endif
46
47SO_PIMPL_PUBLIC_DECLARATION(SoIndexedTexture2);
48
49/*----------------------------------------------------------------------------*/
50
318 SO_NODE_HEADER(SoIndexedTexture2) ;
319
320 SO_PIMPL_PUBLIC_HEADER(SoIndexedTexture2);
321
322 public:
339
344
351
440
447
453
458
459 private:
460 virtual void doAction( SoAction* action );
461 virtual void GLRender( SoGLRenderAction* action );
462
467 virtual SoNode* getAlternateRep( SoAction* action );
468
469 /*----------------------------------------------------------------------------*/
470
471 private:
472 static void initClass() ;
473 static void exitClass() ;
474
480 virtual SoNode* createAlternateRep( SoAction *action );
481
482 // Manage field dependencies when one of them change AJO eBug #1972
483 virtual void fieldHasChanged( SoField *field ); // override of SoFieldContainer
484
485 private:
486 // Destructor
487 virtual ~SoIndexedTexture2() ;
488
489} ;
490/*----------------------------------------------------------------------------*/
491
492#ifdef _MSC_VER
493#pragma warning( pop )
494#endif
495
496#endif /* _SO_INDEXED_TEXTURE2_ */
497
498
Abstract base class for all actions.
Definition SoAction.h:132
Performs a generic traversal of a scene graph or path.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for indexe...
Definition SoColorMap.h:138
Base class for all fields.
Definition SoField.h:234
Renders a scene graph using Open Inventor's Render Engine.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for 2D ind...
SoSFBool rescaleTexCoord
This field controls the way an image with non-power-of-two dimension is handled:
SoSFFloat maxValue
See minValue.
SoSFFloat minValue
Specifies the range of values which is mapped onto the color map (see SoColorMap).
void computeDataRange()
Compute the min and max value of the indexed image and put the result in minValue and maxValue.
SoSFEnum wrapT
Indicates what to do when texture coordinates in the T (vertical) direction lie outside the range 0-1...
SoIndexedTexture2()
Constructor.
SoSFArray2D imageIndex
This field contains the in-memory representation of the indexed texture image.
Abstract base class for all database nodes.
Definition SoNode.h:145
Field containing a 2D array value.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing a floating-point value.
Definition SoSFFloat.h:78
Abstract base class for texture mapping nodes.
Definition SoTexture.h:155