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