Panda3D
physxSceneDesc.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file physxSceneDesc.h
10  * @author enn0x
11  * @date 2009-09-05
12  */
13 
14 #ifndef PHYSXSCENEDESC_H
15 #define PHYSXSCENEDESC_H
16 
17 #include "pandabase.h"
18 #include "luse.h"
19 
20 #include "physxEnums.h"
21 #include "physx_includes.h"
22 
23 class PhysxBounds3;
24 
25 /**
26  * Descriptor for PhysxScene.
27  */
28 class EXPCL_PANDAPHYSX PhysxSceneDesc : public PhysxEnums {
29 
30 PUBLISHED:
31  INLINE PhysxSceneDesc();
32  INLINE ~PhysxSceneDesc();
33 
34  INLINE void set_to_default();
35  INLINE bool is_valid() const;
36 
37  void set_flag(PhysxSceneFlag flag, bool value);
38  void set_gravity(const LVector3f &gravity);
39  void set_max_bounds(PhysxBounds3 &bounds);
40  void set_static_structure(PhysxPruningStructure value);
41  void set_dynamic_structure(PhysxPruningStructure value);
42  void set_bp_type(PhysxBroadPhaseType value);
43  void set_subdivision_level(unsigned int value);
44  void set_num_grid_cells_x(unsigned int value);
45  void set_num_grid_cells_y(unsigned int value);
46 
47  bool get_flag(PhysxSceneFlag flag) const;
48  LVector3f get_gravity() const;
49  PhysxBounds3 get_max_bounds() const;
50  PhysxPruningStructure get_static_structure() const;
51  PhysxPruningStructure get_dynamic_structure() const;
52  PhysxBroadPhaseType get_bp_type() const;
53  unsigned int get_subdivision_level() const;
54  unsigned int get_num_grid_cells_x() const;
55  unsigned int get_num_grid_cells_y() const;
56 
57 public:
58  NxSceneDesc _desc;
59 };
60 
61 #include "physxSceneDesc.I"
62 
63 #endif // PHYSXSCENEDESC_H
Descriptor for PhysxScene.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Represention of a axis aligned bounding box.
Definition: physxBounds3.h:29
This class exists just to provide scoping for the enums shared by PhysX classes.
Definition: physxEnums.h:355
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.