GAS_EnforceBoundary Class Reference

#include <GAS_EnforceBoundary.h>

Inheritance diagram for GAS_EnforceBoundary:

GAS_SubSolver SIM_Solver SIM_OptionsUser SIM_Data

List of all members.

Public Member Functions

 GET_DATA_FUNC_S (GAS_NAME_FIELD, FieldName)
 GET_DATA_FUNC_S (GAS_NAME_COLLISION, CollisionName)
 GET_DATA_FUNC_S (GAS_NAME_COLLISIONVALUE, CollisionValueName)
 GET_DATA_FUNC_B ("velocityenforce", VelocityEnforce)
 GET_DATA_FUNC_I ("veltype", VelocityType)
 GET_DATA_FUNC_B ("usephysparms", UsePhysParms)
 GET_DATA_FUNC_B ("forbidinterference", ForbidInterference)
void calculatePhysParms (const UT_Vector3 &pos, fpreal &bounce, fpreal &friction, fpreal &dynfriction)
 Returns the friction of the system at the given world position.
UT_Vector3 calculateVelocity (const UT_Vector3 &pos)

Protected Member Functions

 GAS_EnforceBoundary (const SIM_DataFactory *factory)
virtual ~GAS_EnforceBoundary ()
virtual bool solveGasSubclass (SIM_Engine &engine, SIM_Object *obj, SIM_Time time, SIM_Time timestep)
void enforceVelBoundary (SIM_Engine &engine, SIM_Object *obj, SIM_VectorField *vectorfield, const SIM_Position *pos, SIM_ScalarField *collision, SIM_IndexField *colindexfield)


Detailed Description

Definition at line 34 of file GAS_EnforceBoundary.h.


Constructor & Destructor Documentation

GAS_EnforceBoundary::GAS_EnforceBoundary ( const SIM_DataFactory factory  )  [explicit, protected]

virtual GAS_EnforceBoundary::~GAS_EnforceBoundary (  )  [protected, virtual]


Member Function Documentation

void GAS_EnforceBoundary::calculatePhysParms ( const UT_Vector3 pos,
fpreal bounce,
fpreal friction,
fpreal dynfriction 
)

Returns the friction of the system at the given world position.

UT_Vector3 GAS_EnforceBoundary::calculateVelocity ( const UT_Vector3 pos  ) 

Returns the velocity of the collision object at the given world pos

void GAS_EnforceBoundary::enforceVelBoundary ( SIM_Engine engine,
SIM_Object obj,
SIM_VectorField vectorfield,
const SIM_Position pos,
SIM_ScalarField collision,
SIM_IndexField colindexfield 
) [protected]

GAS_EnforceBoundary::GET_DATA_FUNC_B ( "forbidinterference"  ,
ForbidInterference   
)

GAS_EnforceBoundary::GET_DATA_FUNC_B ( "usephysparms"  ,
UsePhysParms   
)

GAS_EnforceBoundary::GET_DATA_FUNC_B ( "velocityenforce"  ,
VelocityEnforce   
)

GAS_EnforceBoundary::GET_DATA_FUNC_I ( "veltype"  ,
VelocityType   
)

GAS_EnforceBoundary::GET_DATA_FUNC_S ( GAS_NAME_COLLISIONVALUE  ,
CollisionValueName   
)

GAS_EnforceBoundary::GET_DATA_FUNC_S ( GAS_NAME_COLLISION  ,
CollisionName   
)

GAS_EnforceBoundary::GET_DATA_FUNC_S ( GAS_NAME_FIELD  ,
FieldName   
)

virtual bool GAS_EnforceBoundary::solveGasSubclass ( SIM_Engine engine,
SIM_Object obj,
SIM_Time  time,
SIM_Time  timestep 
) [protected, virtual]

Moves the fields given by FieldName by the given velocity field. Moves the points given by GeometryName likewise.

Implements GAS_SubSolver.


The documentation for this class was generated from the following file:

Generated on Mon Jan 28 00:28:38 2013 for HDK by  doxygen 1.5.9