H3D API  2.4.1
X3DParticlePhysicsModelNode.h
Go to the documentation of this file.
1 // Copyright 2004-2019, SenseGraphics AB
3 //
4 // This file is part of H3D API.
5 //
6 // H3D API is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // H3D API is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with H3D API; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // A commercial license is also available. Please contact us at
21 // www.sensegraphics.com for more information.
22 //
23 //
27 //
29 #ifndef __X3DPARTICLEPHYSICSMODELNODE_H__
30 #define __X3DPARTICLEPHYSICSMODELNODE_H__
31 
32 #include <H3D/X3DNode.h>
33 #include <H3D/SFBool.h>
35 
36 namespace H3D {
37 
46  class H3DAPI_API X3DParticlePhysicsModelNode : public X3DNode {
47  public:
48 
50  X3DParticlePhysicsModelNode( Inst< SFNode > _metadata = 0,
51  Inst< SFBool > _enabled = 0 );
52 
53 
54  virtual void updateParticleValues( const X3DParticleEmitterNode::Particle &last_particle,
55  X3DParticleEmitterNode::Particle &particle,
56  H3DTime last_time,
57  H3DTime current_time ) = 0;
58 
62  virtual string defaultXMLContainerField() {
63  return "physics";
64  }
65 
71  H3DUniquePtr< SFBool > enabled;
72 
75  };
76 }
77 
78 #endif
Contains the SFBool field class.
Header file for X3DNode, X3D scene-graph node.
Header file for X3DParticleEmitterNode, X3D scene-graph node.
This abstract node type is the base type for all nodes in the X3D system.
Definition: X3DNode.h:65
The X3DParticlePhysicsModelNode is the abstract representation of any node that will apply a form of ...
Definition: X3DParticlePhysicsModelNode.h:46
H3DUniquePtr< SFBool > enabled
The enabled field specifies whether this physics model is currently being applied to the particles.
Definition: X3DParticlePhysicsModelNode.h:71
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: X3DParticlePhysicsModelNode.h:74
virtual string defaultXMLContainerField()
Returns the default xml containerField attribute value.
Definition: X3DParticlePhysicsModelNode.h:62
double H3DTime
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194