PxParticleFluid.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 
14 #ifndef PX_PHYSICS_NX_PARTICLEFLUID
15 #define PX_PHYSICS_NX_PARTICLEFLUID
16 
21 
22 #ifndef PX_DOXYGEN
23 namespace physx
24 {
25 #endif
26 
51 {
52 
53 public:
54 
55 /************************************************************************************************/
56 
60 
67  virtual PxParticleFluidReadData* lockParticleFluidReadData(PxDataAccessFlags flags) = 0;
68 
75  virtual PxParticleFluidReadData* lockParticleFluidReadData() = 0;
76 
78 /************************************************************************************************/
79 
80 
84 
90  virtual PxReal getStiffness() const = 0;
91 
97  virtual void setStiffness(PxReal stiffness) = 0;
98 
104  virtual PxReal getViscosity() const = 0;
105 
111  virtual void setViscosity(PxReal viscosity) = 0;
112 
114 /************************************************************************************************/
115 
119 
125  virtual PxReal getRestParticleDistance() const = 0;
126 
128 /************************************************************************************************/
129 
133 
139  virtual void setRestParticleDistance(PxReal restParticleDistance) = 0;
140 
142 /************************************************************************************************/
143 
144  virtual const char* getConcreteTypeName() const { return "PxParticleFluid"; }
145 
146 protected:
147  PX_INLINE PxParticleFluid(PxType concreteType, PxBaseFlags baseFlags) : PxParticleBase(concreteType, baseFlags) {}
149  virtual ~PxParticleFluid() {}
150  virtual bool isKindOf(const char* name) const { return !strcmp("PxParticleFluid", name) || PxParticleBase::isKindOf(name); }
151 };
152 
154 PX_DEPRECATED PX_INLINE const PxParticleFluid* PxActor::isParticleFluid() const { return is<PxParticleFluid>(); }
155 
156 
157 #ifndef PX_DOXYGEN
158 } // namespace physx
159 #endif
160 
162 #endif


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com