phybox.h
1 /********************************************************************************
2  * WorldSim -- library for robot simulations *
3  * Copyright (C) 2008-2011 Gianluca Massera <emmegian@yahoo.it> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the Free Software *
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
18  ********************************************************************************/
19 
20 #ifndef PHYBOX_H
21 #define PHYBOX_H
22 
23 #include "phyobject.h"
24 
25 namespace farsa {
26 
37 class FARSA_WSIM_API PhyBox : public PhyObject {
38  Q_OBJECT
39 public:
47  PhyBox( real side_x, real side_y, real side_z, World* world, QString name="unamed", const wMatrix& tm = wMatrix::identity() );
49  virtual ~PhyBox();
51  real sideX() const {
52  return sidex;
53  };
55  real sideY() const {
56  return sidey;
57  };
59  real sideZ() const {
60  return sidez;
61  };
62 private:
63  real sidex;
64  real sidey;
65  real sidez;
66 protected:
68  void createPrivateObject();
69 };
70 
71 } // end namespace farsa
72 
73 #endif
static wMatrix identity()
create an identity matrix
Definition: wmatrix.h:460
real sideZ() const
return the side Z
Definition: phybox.h:59
World class.
Definition: world.h:223
wMatrix class
Definition: wmatrix.h:48
real sideX() const
return the side X
Definition: phybox.h:51
real sideY() const
return the side Y
Definition: phybox.h:55
float real
PhyBox class.
Definition: phybox.h:37
PhyObject class.
Definition: phyobject.h:46