Structural deformable models
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
ParticleParam Class Reference

#include <PartParam.h>

Collaboration diagram for ParticleParam:
Collaboration graph
[legend]

Public Member Functions

 ParticleParam ()
 

Public Attributes

float gravitational
 
float viscousdrag
 
float springconst
 
float damping
 
float mass
 
float imgforce
 
float torque
 

Static Public Attributes

static ParticleParam global = ParticleParam()
 

Friends

std::ostream & operator<< (std::ostream &os, const ParticleParam &p)
 

Detailed Description

Definition at line 25 of file PartParam.h.

Constructor & Destructor Documentation

ParticleParam::ParticleParam ( )
inline

Definition at line 27 of file PartParam.h.

References damping, gravitational, imgforce, mass, PART_DAMPING, PART_GRAV, PART_IMGFORCE, PART_MASS, PART_SPRINGCONST, PART_TORQUE, PART_VISCOUS, springconst, torque, and viscousdrag.

27  {
32  mass = PART_MASS;
35  }
#define PART_TORQUE
Definition: PartParam.h:13
float imgforce
Definition: PartParam.h:67
#define PART_IMGFORCE
Definition: PartParam.h:12
#define PART_GRAV
Definition: PartParam.h:10
float mass
Definition: PartParam.h:66
float damping
Definition: PartParam.h:65
#define PART_MASS
Definition: PartParam.h:9
float viscousdrag
Definition: PartParam.h:63
float torque
Definition: PartParam.h:68
#define PART_SPRINGCONST
Definition: PartParam.h:7
#define PART_DAMPING
Definition: PartParam.h:8
float springconst
Definition: PartParam.h:64
#define PART_VISCOUS
Definition: PartParam.h:11
float gravitational
Definition: PartParam.h:62

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ParticleParam p 
)
friend

Definition at line 37 of file PartParam.h.

37  {
39  os << "#";
40  os << "p springconst " << p.springconst << std::endl;
41  if(p.damping == PART_DAMPING)
42  os << "#";
43  os << "p damping " << p.damping << std::endl;
44  if(p.mass == PART_MASS)
45  os << "#";
46  os << "p mass " << p.mass << std::endl;
47  if(p.gravitational == PART_GRAV)
48  os << "#";
49  os << "p grav " << p.gravitational << std::endl;
50  if(p.viscousdrag == PART_VISCOUS)
51  os << "#";
52  os << "p viscousdrag " << p.viscousdrag << std::endl;
53  if(p.imgforce == PART_IMGFORCE)
54  os << "#";
55  os << "p imageforce " << p.imgforce << std::endl;
56  if(p.torque == PART_TORQUE)
57  os << "#";
58  os << "p torque " << p.torque << std::endl;
59  return os;
60  }
#define PART_TORQUE
Definition: PartParam.h:13
float imgforce
Definition: PartParam.h:67
#define PART_IMGFORCE
Definition: PartParam.h:12
#define PART_GRAV
Definition: PartParam.h:10
float mass
Definition: PartParam.h:66
float damping
Definition: PartParam.h:65
#define PART_MASS
Definition: PartParam.h:9
float viscousdrag
Definition: PartParam.h:63
float torque
Definition: PartParam.h:68
#define PART_SPRINGCONST
Definition: PartParam.h:7
#define PART_DAMPING
Definition: PartParam.h:8
float springconst
Definition: PartParam.h:64
#define PART_VISCOUS
Definition: PartParam.h:11
float gravitational
Definition: PartParam.h:62

Member Data Documentation

float ParticleParam::damping

Definition at line 65 of file PartParam.h.

Referenced by Edge::Edge(), ParticleParam(), and Model::readParameter().

ParticleParam ParticleParam::global = ParticleParam()
static

Definition at line 72 of file PartParam.h.

Referenced by MStructure::buildMasterModel(), Node::Node(), operator<<(), and operator>>().

float ParticleParam::gravitational
float ParticleParam::imgforce
float ParticleParam::mass

Definition at line 66 of file PartParam.h.

Referenced by operator<<(), ParticleParam(), and Model::readParameter().

float ParticleParam::springconst
float ParticleParam::torque

Definition at line 68 of file PartParam.h.

Referenced by Model::addTorque(), ParticleParam(), and Model::readParameter().

float ParticleParam::viscousdrag

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