CellModules
VolCell Class Reference
Inheritance diagram for VolCell:
MecaCell::ConnectableCell< VolCell, ContactSurfaceBody >

Public Types

using Base = MecaCell::ConnectableCell< VolCell, ContactSurfaceBody >
 
using body_t = ContactSurfaceBody< VolCell >
 
using embedded_plugin_t = typename body_t::embedded_plugin_t
 

Public Member Functions

double getAdhesionWith (const VolCell *, const MecaCell::Vec &) const
 
template<typename W >
void updateBehavior (W &)
 
void eraseConnectedCell (VolCell *cell)
 disconnect a neighboring cell More...
 
void addConnectedCell (VolCell *c)
 
void clearConnectedCells ()
 
bool isConnectedTo (VolCell *c)
 
size_t getId () const
 
void die ()
 flags the cell as dead so it can be cleanly removed from the world More...
 
bool isDead ()
 
Vector3D getPosition () const
 
void setColorRGB (size_t r, size_t g, size_t b)
 
void setColorRGB (std::array< int, 3 > rgb)
 
void setColorRGB (std::array< double, 3 > rgb)
 
void setColorHSV (double H, double S, double V)
 
void setColorHSV (std::array< double, 3 > hsv)
 
void setVisible (bool v)
 should a viewer displpay this cell ? More...
 
string toString ()
 dumps internal infos More...
 
body_tgetBody ()
 
const body_tgetConstBody () const
 
double getBoundingBoxRadius () const
 
double getColor (unsigned int i) const
 
const std::vector< VolCell * > & getConnectedCells () const
 
bool getVisible ()
 
int getNbConnections () const
 
 EXPORTABLE (ConnectableCell, KV(body), KV(id))
 

Public Attributes

friend body_t
 
friend embedded_plugin_t
 
size_t id
 

Protected Member Functions

VolCellselfptr ()
 
VolCellself ()
 
const VolCellselfconst () const
 

Protected Attributes

body_t body
 
bool dead
 
bool isVisible
 
array< double, 3 > color
 
unique_vector< VolCell * > connectedCells
 

Detailed Description

Definition at line 13 of file test.cpp.

Member Typedef Documentation

◆ Base

◆ body_t

using MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::body_t = ContactSurfaceBody <VolCell >
inherited

Definition at line 36 of file connectablecell.hpp.

◆ embedded_plugin_t

using MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::embedded_plugin_t = typename body_t::embedded_plugin_t
inherited

Definition at line 37 of file connectablecell.hpp.

Member Function Documentation

◆ addConnectedCell()

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::addConnectedCell ( VolCell c)
inlineinherited

Definition at line 70 of file connectablecell.hpp.

◆ clearConnectedCells()

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::clearConnectedCells ( )
inlineinherited

Definition at line 71 of file connectablecell.hpp.

◆ die()

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::die ( )
inlineinherited

flags the cell as dead so it can be cleanly removed from the world

Definition at line 118 of file connectablecell.hpp.

◆ eraseConnectedCell()

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::eraseConnectedCell ( VolCell cell)
inlineinherited

disconnect a neighboring cell

removes it from the connectedCells contianer

Parameters
cellpointer to the cell to be disconnected

Definition at line 69 of file connectablecell.hpp.

◆ EXPORTABLE()

MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::EXPORTABLE ( ConnectableCell< VolCell, ContactSurfaceBody ,
KV(body ,
KV(id  
)
inherited

◆ getAdhesionWith()

double VolCell::getAdhesionWith ( const VolCell ,
const MecaCell::Vec  
) const
inline

Definition at line 17 of file test.cpp.

◆ getBody()

body_t & MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getBody ( )
inlineinherited

Definition at line 152 of file connectablecell.hpp.

◆ getBoundingBoxRadius()

double MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getBoundingBoxRadius ( ) const
inlineinherited

Definition at line 154 of file connectablecell.hpp.

◆ getColor()

double MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getColor ( unsigned int  i) const
inlineinherited

Definition at line 155 of file connectablecell.hpp.

◆ getConnectedCells()

const std::vector< VolCell * > & MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getConnectedCells ( ) const
inlineinherited

Definition at line 159 of file connectablecell.hpp.

◆ getConstBody()

const body_t & MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getConstBody ( ) const
inlineinherited

Definition at line 153 of file connectablecell.hpp.

◆ getId()

size_t MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getId ( ) const
inlineinherited

Definition at line 75 of file connectablecell.hpp.

◆ getNbConnections()

int MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getNbConnections ( ) const
inlineinherited

Definition at line 163 of file connectablecell.hpp.

◆ getPosition()

Vector3D MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getPosition ( ) const
inlineinherited

Definition at line 120 of file connectablecell.hpp.

◆ getVisible()

bool MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::getVisible ( )
inlineinherited

Definition at line 162 of file connectablecell.hpp.

◆ isConnectedTo()

bool MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::isConnectedTo ( VolCell c)
inlineinherited

Definition at line 72 of file connectablecell.hpp.

◆ isDead()

bool MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::isDead ( )
inlineinherited

Definition at line 119 of file connectablecell.hpp.

◆ self()

VolCell & MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::self ( )
inlineprotectedinherited

Definition at line 58 of file connectablecell.hpp.

◆ selfconst()

const VolCell & MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::selfconst ( ) const
inlineprotectedinherited

Definition at line 59 of file connectablecell.hpp.

◆ selfptr()

VolCell * MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::selfptr ( )
inlineprotectedinherited

Definition at line 57 of file connectablecell.hpp.

◆ setColorHSV() [1/2]

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::setColorHSV ( double  H,
double  S,
double  V 
)
inlineinherited

Definition at line 128 of file connectablecell.hpp.

◆ setColorHSV() [2/2]

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::setColorHSV ( std::array< double, 3 >  hsv)
inlineinherited

Definition at line 129 of file connectablecell.hpp.

◆ setColorRGB() [1/3]

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::setColorRGB ( size_t  r,
size_t  g,
size_t  b 
)
inlineinherited

Definition at line 122 of file connectablecell.hpp.

◆ setColorRGB() [2/3]

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::setColorRGB ( std::array< double, 3 >  rgb)
inlineinherited

Definition at line 127 of file connectablecell.hpp.

◆ setColorRGB() [3/3]

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::setColorRGB ( std::array< int, 3 >  rgb)
inlineinherited

Definition at line 126 of file connectablecell.hpp.

◆ setVisible()

void MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::setVisible ( bool  v)
inlineinherited

should a viewer displpay this cell ?

Parameters
v

Definition at line 136 of file connectablecell.hpp.

◆ toString()

string MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::toString ( )
inlineinherited

dumps internal infos

Returns
a formatted string

Definition at line 143 of file connectablecell.hpp.

◆ updateBehavior()

template<typename W >
void VolCell::updateBehavior ( W &  )
inline

Definition at line 18 of file test.cpp.

Member Data Documentation

◆ body

body_t MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::body
protectedinherited

Definition at line 43 of file connectablecell.hpp.

◆ body_t

friend MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::body_t
inherited

Definition at line 39 of file connectablecell.hpp.

◆ color

array<double, 3> MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::color
protectedinherited

Definition at line 51 of file connectablecell.hpp.

◆ connectedCells

unique_vector<VolCell *> MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::connectedCells
protectedinherited

Definition at line 54 of file connectablecell.hpp.

◆ dead

bool MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::dead
protectedinherited

Definition at line 44 of file connectablecell.hpp.

◆ embedded_plugin_t

friend MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::embedded_plugin_t
inherited

Definition at line 40 of file connectablecell.hpp.

◆ id

size_t MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::id
inherited

Definition at line 74 of file connectablecell.hpp.

◆ isVisible

bool MecaCell::ConnectableCell< VolCell , ContactSurfaceBody >::isVisible
protectedinherited

Definition at line 49 of file connectablecell.hpp.


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