Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoMultipleInstance.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-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : David Beilloin (Aug 2013)
22**=======================================================================*/
23
24
25#ifndef _SO_MULTIPLE_INSTANCE_
26#define _SO_MULTIPLE_INSTANCE_
27
28#include <Inventor/nodes/SoMultipleInstanceBase.h>
29#include <Inventor/fields/SoSFUInt32.h>
30#include <Inventor/fields/SoMFInstanceParameter.h>
31#include <Inventor/SbPImpl.h>
32
33class SoShaderProgram;
34class SoGLShaderProgramElement;
35
36SO_PIMPL_PUBLIC_DECLARATION(SoMultipleInstance)
37
38
162{
163 SO_NODE_HEADER(SoMultipleInstance);
164 SO_PIMPL_PUBLIC_HEADER(SoMultipleInstance)
165
166public:
171
186
220
225
226private:
228 virtual void GLRender( SoGLRenderAction *action );
229
231 virtual void getBoundingBox( SoGetBoundingBoxAction *action );
232
233private:
235 static void initClass();
236
238 static void exitClass();
239
241 virtual void notify(SoNotList* notificationList);
242
243private:
245 virtual ~SoMultipleInstance();
246
247 // needed to access SoMultipleInstanceImpl from this class
248 friend class SoInstanceMatrixAccessorAttributes;
249
250};
251
252#endif /* _SO_MULTIPLE_INSTANCE_ */
253
Renders a scene graph using Open Inventor's Render Engine.
Computes bounding box of a scene.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Multiple-value f...
Abstract group node that traverses its children multiple times.
Group node that renders multiple instances of its children.
SoMFInstanceParameter parameters
List of per-instance attributes of type SoVertexShaderParameters.
SoSFUInt32 numInstances
Number of shape instances to render.
SoMultipleInstance()
Creates a multiple instance node with default settings.
SoSFUInt32 numBatches
When this field is set to 1 (default), all the instances are rendered in one batch.
Field containing an unsigned int32_t integer.
Definition SoSFUInt32.h:80
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Shader program p...