Panda3D
|
00001 // Filename: physxForceFieldShapeDesc.h 00002 // Created by: enn0x (06Nov09) 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 PHYSXFORCEFIELDSHAPEDESC_H 00016 #define PHYSXFORCEFIELDSHAPEDESC_H 00017 00018 #include "pandabase.h" 00019 #include "lpoint3.h" 00020 #include "lmatrix.h" 00021 00022 #include "physx_includes.h" 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : PhysxForceFieldShapeDesc 00026 // Description : Abstract base class for descriptors for force 00027 // field shapes descriptors. 00028 //////////////////////////////////////////////////////////////////// 00029 class EXPCL_PANDAPHYSX PhysxForceFieldShapeDesc { 00030 00031 PUBLISHED: 00032 virtual void set_to_default() = 0; 00033 virtual bool is_valid() const = 0; 00034 00035 void set_name(const char *name); 00036 void set_pos(const LPoint3f &pos); 00037 void set_mat(const LMatrix4f &mat); 00038 void set_hpr(float h, float p, float r); 00039 00040 const char *get_name() const; 00041 LPoint3f get_pos() const; 00042 LMatrix4f get_mat() const; 00043 00044 public: 00045 virtual NxForceFieldShapeDesc *ptr() const = 0; 00046 00047 private: 00048 string _name; 00049 00050 protected: 00051 INLINE PhysxForceFieldShapeDesc(); 00052 INLINE ~PhysxForceFieldShapeDesc(); 00053 }; 00054 00055 #include "physxForceFieldShapeDesc.I" 00056 00057 #endif // PHYSXFORCEFIELDSHAPEDESC_H