1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGPARTICLES_H_
40 #define _OSGPARTICLES_H_
45 #include "OSGParticlesBase.h"
50 struct ParticlesDrawer
;
52 /*! \ingroup GrpDrawablesParticlesObj
53 \ingroup GrpLibOSGDrawables
56 class OSG_DRAWABLE_DLLMAPPING Particles
: public ParticlesBase
60 /*========================== PUBLIC =================================*/
64 typedef ParticlesBase Inherited
;
66 /*---------------------------------------------------------------------*/
92 /*---------------------------------------------------------------------*/
96 virtual void changed(ConstFieldMaskArg whichField
,
101 /*---------------------------------------------------------------------*/
105 virtual void dump( UInt32 uiIndent
= 0,
106 const BitVector bvFlags
= 0) const;
109 /*---------------------------------------------------------------------*/
113 virtual void drawPrimitives(DrawEnv
*pEnv
);
116 /*---------------------------------------------------------------------*/
117 /*! \name Field Set */
120 virtual void fill(DrawableStatsAttachment
*pStat
);
123 /*========================= PROTECTED ===============================*/
127 // Variables should all be in ParticlesBase.
129 /*---------------------------------------------------------------------*/
130 /*! \name Constructors */
134 Particles(const Particles
&source
);
137 /*---------------------------------------------------------------------*/
138 /*! \name Destructors */
141 virtual ~Particles(void);
144 /*---------------------------------------------------------------------*/
148 static void initMethod(InitPhase ePhase
);
151 /*---------------------------------------------------------------------*/
152 /*! \name NodeCore Specific */
155 virtual void adjustVolume(Volume
& volume
);
158 /*---------------------------------------------------------------------*/
159 /*! \name Particles Specific */
162 Int32
*calcIndex(DrawEnv
*pEnv
,
164 Int32
*index
= NULL
);
166 ParticlesDrawer
*findDrawer(void);
169 /*========================== PRIVATE ================================*/
173 friend class FieldContainer
;
174 friend class ParticlesBase
;
176 // prohibit default functions (move to 'public' if you need one)
177 void operator =(const Particles
&source
);
180 typedef Particles
*ParticlesP
;
184 #include "OSGParticlesBase.inl"
185 #include "OSGParticles.inl"
187 #endif /* _OSGPARTICLES_H_ */