PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::Attribute Class Reference

particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet, for future use; [7-0]correspondding to the id of a fluid phase in multiphase fluid or an object in a multibody system More...

#include <Attribute.h>

Public Types

enum  MaterialType {
  MATERIAL_MASK = 0xC0000000 , MATERIAL_FLUID = 0x00000000 , MATERIAL_RIGID = 0x40000000 , MATERIAL_ELASTIC = 0x80000000 ,
  MATERIAL_PLASTIC = 0xC0000000
}
 
enum  KinematicType { KINEMATIC_MASK = 0x30000000 , KINEMATIC_FIXED = 0x00000000 , KINEMATIC_PASSIVE = 0x10000000 , KINEMATIC_POSITIVE = 0x20000000 }
 
enum  ObjectID { OBJECTID_MASK = 0x000000FF , OBJECTID_INVALID = 0x000000FF }
 

Public Member Functions

DYN_FUNC Attribute ()
 
DYN_FUNC ~Attribute ()
 
DYN_FUNC void setMaterialType (MaterialType type)
 
DYN_FUNC void setKinematicType (KinematicType type)
 
DYN_FUNC void setObjectId (unsigned id)
 
DYN_FUNC MaterialType materialType ()
 
DYN_FUNC KinematicType kinematicType ()
 
DYN_FUNC bool isFluid ()
 
DYN_FUNC bool isRigid ()
 
DYN_FUNC bool isElastic ()
 
DYN_FUNC bool isPlastic ()
 
DYN_FUNC void setFluid ()
 
DYN_FUNC void setRigid ()
 
DYN_FUNC void setElastic ()
 
DYN_FUNC void setPlastic ()
 
DYN_FUNC bool isFixed ()
 
DYN_FUNC bool isPassive ()
 
DYN_FUNC bool isDynamic ()
 
DYN_FUNC void setFixed ()
 
DYN_FUNC void setPassive ()
 
DYN_FUNC void setDynamic ()
 
DYN_FUNC unsigned objectId ()
 

Private Attributes

uint m_tag
 

Detailed Description

particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet, for future use; [7-0]correspondding to the id of a fluid phase in multiphase fluid or an object in a multibody system

Definition at line 25 of file Attribute.h.

Member Enumeration Documentation

◆ KinematicType

Enumerator
KINEMATIC_MASK 
KINEMATIC_FIXED 
KINEMATIC_PASSIVE 
KINEMATIC_POSITIVE 

Definition at line 45 of file Attribute.h.

◆ MaterialType

Enumerator
MATERIAL_MASK 
MATERIAL_FLUID 
MATERIAL_RIGID 
MATERIAL_ELASTIC 
MATERIAL_PLASTIC 

Definition at line 36 of file Attribute.h.

◆ ObjectID

Enumerator
OBJECTID_MASK 
OBJECTID_INVALID 

Definition at line 53 of file Attribute.h.

Constructor & Destructor Documentation

◆ Attribute()

DYN_FUNC dyno::Attribute::Attribute ( )
inline

Definition at line 28 of file Attribute.h.

Here is the call graph for this function:

◆ ~Attribute()

DYN_FUNC dyno::Attribute::~Attribute ( )
inline

Definition at line 34 of file Attribute.h.

Member Function Documentation

◆ isDynamic()

DYN_FUNC bool dyno::Attribute::isDynamic ( )
inline

Definition at line 78 of file Attribute.h.

Here is the call graph for this function:

◆ isElastic()

DYN_FUNC bool dyno::Attribute::isElastic ( )
inline

Definition at line 68 of file Attribute.h.

Here is the call graph for this function:

◆ isFixed()

DYN_FUNC bool dyno::Attribute::isFixed ( )
inline

Definition at line 76 of file Attribute.h.

Here is the call graph for this function:

◆ isFluid()

DYN_FUNC bool dyno::Attribute::isFluid ( )
inline

Definition at line 66 of file Attribute.h.

Here is the call graph for this function:

◆ isPassive()

DYN_FUNC bool dyno::Attribute::isPassive ( )
inline

Definition at line 77 of file Attribute.h.

Here is the call graph for this function:

◆ isPlastic()

DYN_FUNC bool dyno::Attribute::isPlastic ( )
inline

Definition at line 69 of file Attribute.h.

Here is the call graph for this function:

◆ isRigid()

DYN_FUNC bool dyno::Attribute::isRigid ( )
inline

Definition at line 67 of file Attribute.h.

Here is the call graph for this function:

◆ kinematicType()

DYN_FUNC KinematicType dyno::Attribute::kinematicType ( )
inline

Definition at line 64 of file Attribute.h.

Here is the caller graph for this function:

◆ materialType()

DYN_FUNC MaterialType dyno::Attribute::materialType ( )
inline

Definition at line 63 of file Attribute.h.

Here is the caller graph for this function:

◆ objectId()

DYN_FUNC unsigned dyno::Attribute::objectId ( )
inline

Definition at line 84 of file Attribute.h.

Here is the caller graph for this function:

◆ setDynamic()

DYN_FUNC void dyno::Attribute::setDynamic ( )
inline

Definition at line 82 of file Attribute.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setElastic()

DYN_FUNC void dyno::Attribute::setElastic ( )
inline

Definition at line 73 of file Attribute.h.

Here is the call graph for this function:

◆ setFixed()

DYN_FUNC void dyno::Attribute::setFixed ( )
inline

Definition at line 80 of file Attribute.h.

Here is the call graph for this function:

◆ setFluid()

DYN_FUNC void dyno::Attribute::setFluid ( )
inline

Definition at line 71 of file Attribute.h.

Here is the call graph for this function:

◆ setKinematicType()

DYN_FUNC void dyno::Attribute::setKinematicType ( KinematicType type)
inline

Definition at line 60 of file Attribute.h.

Here is the caller graph for this function:

◆ setMaterialType()

DYN_FUNC void dyno::Attribute::setMaterialType ( MaterialType type)
inline

Definition at line 59 of file Attribute.h.

Here is the caller graph for this function:

◆ setObjectId()

DYN_FUNC void dyno::Attribute::setObjectId ( unsigned id)
inline

Definition at line 61 of file Attribute.h.

Here is the caller graph for this function:

◆ setPassive()

DYN_FUNC void dyno::Attribute::setPassive ( )
inline

Definition at line 81 of file Attribute.h.

Here is the call graph for this function:

◆ setPlastic()

DYN_FUNC void dyno::Attribute::setPlastic ( )
inline

Definition at line 74 of file Attribute.h.

Here is the call graph for this function:

◆ setRigid()

DYN_FUNC void dyno::Attribute::setRigid ( )
inline

Definition at line 72 of file Attribute.h.

Here is the call graph for this function:

Member Data Documentation

◆ m_tag

uint dyno::Attribute::m_tag
private

Definition at line 87 of file Attribute.h.


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