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