Panda3D
 All Classes Functions Variables Enumerations
physxSceneDesc.h
00001 // Filename: physxSceneDesc.h
00002 // Created by:  enn0x (05Sep09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef PHYSXSCENEDESC_H
00016 #define PHYSXSCENEDESC_H
00017 
00018 #include "pandabase.h"
00019 #include "luse.h"
00020 
00021 #include "physxEnums.h"
00022 #include "physx_includes.h"
00023 
00024 class PhysxBounds3;
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : PhysxSceneDesc
00028 // Description : Descriptor for PhysxScene.
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDAPHYSX PhysxSceneDesc : public PhysxEnums {
00031 
00032 PUBLISHED:
00033   INLINE PhysxSceneDesc();
00034   INLINE ~PhysxSceneDesc();
00035 
00036   INLINE void set_to_default();
00037   INLINE bool is_valid() const;
00038 
00039   void set_flag(PhysxSceneFlag flag, bool value);
00040   void set_gravity(const LVector3f &gravity);
00041   void set_max_bounds(PhysxBounds3 &bounds);
00042   void set_static_structure(PhysxPruningStructure value);
00043   void set_dynamic_structure(PhysxPruningStructure value);
00044   void set_bp_type(PhysxBroadPhaseType value);
00045   void set_subdivision_level(unsigned int value);
00046   void set_num_grid_cells_x(unsigned int value);
00047   void set_num_grid_cells_y(unsigned int value);
00048 
00049   bool get_flag(PhysxSceneFlag flag) const;
00050   LVector3f get_gravity() const;
00051   PhysxBounds3 get_max_bounds() const;
00052   PhysxPruningStructure get_static_structure() const;
00053   PhysxPruningStructure get_dynamic_structure() const;
00054   PhysxBroadPhaseType get_bp_type() const;
00055   unsigned int get_subdivision_level() const;
00056   unsigned int get_num_grid_cells_x() const;
00057   unsigned int get_num_grid_cells_y() const;
00058 
00059 public:
00060   NxSceneDesc _desc;
00061 };
00062 
00063 #include "physxSceneDesc.I"
00064 
00065 #endif // PHYSXSCENEDESC_H
 All Classes Functions Variables Enumerations