|
|
@ -70,7 +70,7 @@ public:
|
|
|
|
virtual void show() = 0;
|
|
|
|
virtual void show() = 0;
|
|
|
|
|
|
|
|
|
|
|
|
/// Serial the force definition. MUST be called by deriver during their serialisation
|
|
|
|
/// Serial the force definition. MUST be called by deriver during their serialisation
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
virtual void serial(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
/// check whether this force is integrable over time. The default is false
|
|
|
|
/// check whether this force is integrable over time. The default is false
|
|
|
|
virtual bool isIntegrable(void) const { return false; }
|
|
|
|
virtual bool isIntegrable(void) const { return false; }
|
|
|
@ -175,7 +175,7 @@ public:
|
|
|
|
/// get the attribute maker for a non constant intensity
|
|
|
|
/// get the attribute maker for a non constant intensity
|
|
|
|
CPSAttribMaker<float> *getIntensityScheme(void) { return _IntensityScheme; }
|
|
|
|
CPSAttribMaker<float> *getIntensityScheme(void) { return _IntensityScheme; }
|
|
|
|
const CPSAttribMaker<float> *getIntensityScheme(void) const { return _IntensityScheme; }
|
|
|
|
const CPSAttribMaker<float> *getIntensityScheme(void) const { return _IntensityScheme; }
|
|
|
|
void serialForceIntensity(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
void serialForceIntensity(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
@ -209,7 +209,7 @@ protected:
|
|
|
|
class CPSForceIntensityHelper : public CPSForce, public CPSForceIntensity
|
|
|
|
class CPSForceIntensityHelper : public CPSForce, public CPSForceIntensity
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
void serial(NLMISC::IStream &f) throw(NLMISC::EStream) ;
|
|
|
|
void serial(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
virtual CPSLocated *getForceIntensityOwner(void) { return _Owner; }
|
|
|
|
virtual CPSLocated *getForceIntensityOwner(void) { return _Owner; }
|
|
|
@ -241,7 +241,7 @@ protected:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* // you can provide a serialization method. Note that that if the functor parameters are set before each use,
|
|
|
|
* // you can provide a serialization method. Note that that if the functor parameters are set before each use,
|
|
|
|
* // it useless to serial something ...
|
|
|
|
* // it useless to serial something ...
|
|
|
|
* void serial(NLMISC::IStream &f) throw(NLMISC::EStream)
|
|
|
|
* void serial(NLMISC::IStream &f)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* protected:
|
|
|
|
* protected:
|
|
|
|
* ...
|
|
|
|
* ...
|
|
|
@ -275,7 +275,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// serialization
|
|
|
|
/// serialization
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream)
|
|
|
|
virtual void serial(NLMISC::IStream &f)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
f.serialVersion(1);
|
|
|
|
f.serialVersion(1);
|
|
|
|
CPSForce::serial(f);
|
|
|
|
CPSForce::serial(f);
|
|
|
@ -354,7 +354,7 @@ class CPSDirectionnalForce : public CPSForceIntensityHelper, public CPSDirection
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// serialization
|
|
|
|
/// serialization
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
virtual void serial(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_DECLARE_CLASS(CPSDirectionnalForce);
|
|
|
|
NLMISC_DECLARE_CLASS(CPSDirectionnalForce);
|
|
|
@ -397,7 +397,7 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// serialization
|
|
|
|
/// serialization
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
virtual void serial(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_DECLARE_CLASS(CPSGravity);
|
|
|
|
NLMISC_DECLARE_CLASS(CPSGravity);
|
|
|
|
|
|
|
|
|
|
|
@ -443,7 +443,7 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// serialization
|
|
|
|
/// serialization
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
virtual void serial(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_DECLARE_CLASS(CPSCentralGravity);
|
|
|
|
NLMISC_DECLARE_CLASS(CPSCentralGravity);
|
|
|
@ -464,7 +464,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// serialization
|
|
|
|
/// serialization
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
virtual void serial(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Compute the force on the targets
|
|
|
|
/// Compute the force on the targets
|
|
|
@ -498,7 +498,7 @@ public:
|
|
|
|
speed -= (CParticleSystem::EllapsedTime * _K * invMass * speed);
|
|
|
|
speed -= (CParticleSystem::EllapsedTime * _K * invMass * speed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream)
|
|
|
|
virtual void serial(NLMISC::IStream &f)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
f.serialVersion(1);
|
|
|
|
f.serialVersion(1);
|
|
|
|
// we don't save intensity info : it is saved by the owning object (and set before each use of this functor)
|
|
|
|
// we don't save intensity info : it is saved by the owning object (and set before each use of this functor)
|
|
|
@ -539,7 +539,7 @@ public:
|
|
|
|
NLMISC_DECLARE_CLASS(CPSFluidFriction)
|
|
|
|
NLMISC_DECLARE_CLASS(CPSFluidFriction)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream)
|
|
|
|
virtual void serial(NLMISC::IStream &f)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
f.serialVersion(1);
|
|
|
|
f.serialVersion(1);
|
|
|
|
CIsotropicForceT<CPSFluidFrictionFunctor>::serial(f);
|
|
|
|
CIsotropicForceT<CPSFluidFrictionFunctor>::serial(f);
|
|
|
@ -571,7 +571,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_DECLARE_CLASS(CPSBrownianForce)
|
|
|
|
NLMISC_DECLARE_CLASS(CPSBrownianForce)
|
|
|
|
|
|
|
|
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
virtual void serial(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
/// We provide a kind of integration on a predefined sequence
|
|
|
|
/// We provide a kind of integration on a predefined sequence
|
|
|
|
virtual bool isIntegrable(void) const;
|
|
|
|
virtual bool isIntegrable(void) const;
|
|
|
@ -648,7 +648,7 @@ struct CPSTurbulForceFunc
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream)
|
|
|
|
virtual void serial(NLMISC::IStream &f)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
f.serialVersion(1);
|
|
|
|
f.serialVersion(1);
|
|
|
|
f.serial(_Scale, _NumOctaves);
|
|
|
|
f.serial(_Scale, _NumOctaves);
|
|
|
@ -686,7 +686,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC_DECLARE_CLASS(CPSTurbul)
|
|
|
|
NLMISC_DECLARE_CLASS(CPSTurbul)
|
|
|
|
|
|
|
|
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream)
|
|
|
|
virtual void serial(NLMISC::IStream &f)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
f.serialVersion(1);
|
|
|
|
f.serialVersion(1);
|
|
|
|
CIsotropicForceT<CPSTurbulForceFunc>::serial(f);
|
|
|
|
CIsotropicForceT<CPSTurbulForceFunc>::serial(f);
|
|
|
@ -758,7 +758,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// serialization
|
|
|
|
// serialization
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
virtual void serial(NLMISC::IStream &f);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -801,7 +801,7 @@ class CPSMagneticForce : public CPSDirectionnalForce
|
|
|
|
}
|
|
|
|
}
|
|
|
|
virtual void computeForces(CPSLocated &target);
|
|
|
|
virtual void computeForces(CPSLocated &target);
|
|
|
|
/// serialization
|
|
|
|
/// serialization
|
|
|
|
virtual void serial(NLMISC::IStream &f) throw(NLMISC::EStream);
|
|
|
|
virtual void serial(NLMISC::IStream &f);
|
|
|
|
NLMISC_DECLARE_CLASS(CPSMagneticForce);
|
|
|
|
NLMISC_DECLARE_CLASS(CPSMagneticForce);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|