3es  0.7
3esbox.h
1 //
2 // author: Kazys Stepanas
3 //
4 #ifndef _3ESBOX_H_
5 #define _3ESBOX_H_
6 
7 #include "3es-core.h"
8 #include "3esshape.h"
9 
10 namespace tes
11 {
22  class _3es_coreAPI Box : public Shape
23  {
24  public:
26  Box(uint32_t id = 0u, const V3Arg &pos = V3Arg(0, 0, 0), const V3Arg &scale = V3Arg(1.0f, 1.0f, 1.0f), const QuaternionArg &rot = QuaternionArg(0, 0, 0, 1));
33  Box(uint32_t id, uint16_t category, const V3Arg &pos = V3Arg(0, 0, 0), const V3Arg &scale = V3Arg(1, 1, 1), const QuaternionArg &rot = QuaternionArg(0, 0, 0, 1));
34  };
35 
36 
37  inline Box::Box(uint32_t id, const V3Arg &pos, const V3Arg &scale, const QuaternionArg &rot)
38  : Shape(SIdBox, id)
39  {
40  setPosition(pos);
41  setRotation(rot);
42  setScale(scale);
43  }
44 
45 
46  inline Box::Box(uint32_t id, uint16_t category, const V3Arg &pos, const V3Arg &scale, const QuaternionArg &rot)
47  : Shape(SIdBox, id, category)
48  {
49  setPosition(pos);
50  setRotation(rot);
51  setScale(scale);
52  }
53 }
54 
55 #endif // _3ESBOX_H_
A base class for encapsulating a shape which is to be represented remotely.
Definition: 3esshape.h:39
Definition: 3esbounds.h:13
A helper structure used to convert from float or double pointers to Vector3f arguments.
Definition: 3esv3arg.h:14
Box(uint32_t id=0u, const V3Arg &pos=V3Arg(0, 0, 0), const V3Arg &scale=V3Arg(1.0f, 1.0f, 1.0f), const QuaternionArg &rot=QuaternionArg(0, 0, 0, 1))
Definition: 3esbox.h:37
A helper structure used to convert from float or double pointers to Quaternionf arguments.
Definition: 3esquaternionarg.h:14
Defines a rectangular prism shape.
Definition: 3esbox.h:22