H3D API  2.4.1
X3DEnvironmentalSensorNode.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 __X3DENVIRONMENTALSENSORNODE_H__
30 #define __X3DENVIRONMENTALSENSORNODE_H__
31 
32 #include <H3D/X3DSensorNode.h>
33 #include <H3D/SFBool.h>
34 #include <H3D/SFVec3f.h>
35 #include <H3D/SFTime.h>
36 
37 
38 namespace H3D {
39 
43  class H3DAPI_API X3DEnvironmentalSensorNode : public X3DSensorNode {
44  public:
45 
48  Inst< SFNode > _metadata = 0,
49  Inst< SFVec3f > _center = 0,
50  Inst< SFBool > _enabled = 0,
51  Inst< SFVec3f > _size = 0,
52  Inst< SFTime > _enterTime = 0,
53  Inst< SFTime > _exitTime = 0,
54  Inst< SFBool > _isActive = 0 );
55 
56 
57  // Fields
62  H3DUniquePtr< SFVec3f > center;
63 
68  H3DUniquePtr< SFVec3f > size;
69 
74  H3DUniquePtr< SFTime > enterTime;
75 
80  H3DUniquePtr< SFTime > exitTime;
81 
84  };
85 }
86 
87 #endif
Contains the SFBool field class.
Contains the SFTime field class.
Contains the SFVec3f field class.
Header file for X3DSensorNode, X3D scene-graph node.
This abstract node type is the base type for all sensors.
Definition: X3DEnvironmentalSensorNode.h:43
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: X3DEnvironmentalSensorNode.h:83
H3DUniquePtr< SFTime > enterTime
enterTime
Definition: X3DEnvironmentalSensorNode.h:74
H3DUniquePtr< SFTime > exitTime
exitTime
Definition: X3DEnvironmentalSensorNode.h:80
H3DUniquePtr< SFVec3f > size
Size gives the size of the box (width=x, height=y, depth=z)
Definition: X3DEnvironmentalSensorNode.h:68
H3DUniquePtr< SFVec3f > center
Center gives the space location of the box.
Definition: X3DEnvironmentalSensorNode.h:62
This abstract node type is the base type for all sensors.
Definition: X3DSensorNode.h:40
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