00001 // Filename: physxBoxForceFieldShapeDesc.I 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 00016 00017 //////////////////////////////////////////////////////////////////// 00018 // Function: PhysxBoxForceFieldShapeDesc::Constructor 00019 // Access: Published 00020 // Description: 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE PhysxBoxForceFieldShapeDesc:: 00023 PhysxBoxForceFieldShapeDesc() : PhysxForceFieldShapeDesc() { 00024 00025 set_to_default(); 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: PhysxBoxForceFieldShapeDesc::Destructor 00030 // Access: Published 00031 // Description: 00032 //////////////////////////////////////////////////////////////////// 00033 INLINE PhysxBoxForceFieldShapeDesc:: 00034 ~PhysxBoxForceFieldShapeDesc() { 00035 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: PhysxBoxForceFieldShapeDesc::set_to_default 00040 // Access: Published 00041 // Description: (re)sets the structure to the default. 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE void PhysxBoxForceFieldShapeDesc:: 00044 set_to_default() { 00045 00046 _desc.setToDefault(); 00047 set_name(""); 00048 } 00049 00050 //////////////////////////////////////////////////////////////////// 00051 // Function: PhysxBoxForceFieldShapeDesc::is_valid 00052 // Access: Published 00053 // Description: Returns true if the descriptor is valid. 00054 //////////////////////////////////////////////////////////////////// 00055 INLINE bool PhysxBoxForceFieldShapeDesc:: 00056 is_valid() const { 00057 00058 return _desc.isValid(); 00059 } 00060