Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95095488
matpoint.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 12, 19:57
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Dec 14, 19:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22931836
Attached To
rSYMKIT symkit
matpoint.h
View Options
#ifndef __MATPOINT_H__
#define __MATPOINT_H__
#include "shape.h"
#include "particle.h"
class
MaterialPoint
:
public
Shape
{
public:
MaterialPoint
(
double
mass
,
const
SVector
<
3
>&
loc
=
SVector
<
3
>
(
true
),
const
QString
&
label
=
""
,
flags_t
flags
=
S_UPDATE
|
S_RENDER
|
S_FILL_MODE
|
S_TRANSLATE
|
S_SCALE
);
MaterialPoint
(
const
Particle
&
particle
,
const
QString
&
label
=
""
,
flags_t
flags
=
S_UPDATE
|
S_RENDER
|
S_FILL_MODE
|
S_TRANSLATE
|
S_SCALE
);
virtual
~
MaterialPoint
();
/* Get fields */
double
mass
()
const
;
const
SVector
<
3
>&
speed
()
const
;
const
Particle
&
getParticle
()
const
;
/* Set fields */
void
setSpeed
(
const
SVector
<
3
>&
speed
);
void
setMass
(
double
mass
);
virtual
SVector
<
3
>
position
()
const
override
;
virtual
SVector
<
3
>
orientation
()
const
override
;
virtual
void
setPosition
(
const
SVector
<
3
>&
centre
)
override
;
virtual
void
setOrientation
(
const
SVector
<
3
>&
angles
)
override
;
virtual
void
move
(
const
SVector
<
3
>&
delta
)
override
;
virtual
void
rotate
(
const
SVector
<
3
>&
delta
)
override
;
virtual
void
post_update
(
const
float
&
dt
)
override
;
protected:
Particle
particle
;
};
#endif
Event Timeline
Log In to Comment