00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2018 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : David Beilloin (Aug 2013) 00022 **=======================================================================*/ 00023 00024 00025 #ifndef _SO_MULTIPLE_INSTANCE_ 00026 #define _SO_MULTIPLE_INSTANCE_ 00027 00028 #include <Inventor/nodes/SoMultipleInstanceBase.h> 00029 #include <Inventor/fields/SoSFUInt32.h> 00030 #include <Inventor/fields/SoMFInstanceParameter.h> 00031 #include <Inventor/SbPImpl.h> 00032 00033 class SoShaderProgram; 00034 class SoGLShaderProgramElement; 00035 00036 SO_PIMPL_PUBLIC_DECLARATION(SoMultipleInstance) 00037 00038 00161 class SoMultipleInstance : public SoMultipleInstanceBase 00162 { 00163 SO_NODE_HEADER(SoMultipleInstance); 00164 SO_PIMPL_PUBLIC_HEADER(SoMultipleInstance) 00165 00166 public: 00170 SoSFUInt32 numInstances; 00171 00185 SoSFUInt32 numBatches; 00186 00219 SoMFInstanceParameter parameters; 00220 00224 SoMultipleInstance(); 00225 00226 private: 00228 virtual void GLRender( SoGLRenderAction *action ); 00229 00231 virtual void getBoundingBox( SoGetBoundingBoxAction *action ); 00232 00233 private: 00235 static void initClass(); 00236 00238 static void exitClass(); 00239 00241 virtual void notify(SoNotList* notificationList); 00242 00243 private: 00245 virtual ~SoMultipleInstance(); 00246 00247 // needed to access SoMultipleInstanceImpl from this class 00248 friend class SoInstanceMatrixAccessorAttributes; 00249 00250 }; 00251 00252 #endif /* _SO_MULTIPLE_INSTANCE_ */ 00253 00254