Fluid box

Name

Fluid box -- 

Synopsis


#include <gfs.h>


#define     GFS_BOX_CLASS                   (klass)
#define     GFS_BOX                         (obj)
#define     GFS_IS_BOX                      (obj)

struct      GfsBoxClass;
struct      GfsBox;

GfsBoxClass* gfs_box_class                  (void);
GfsBox*     gfs_box_new                     (GfsBoxClass *klass);
void        gfs_box_set_pos                 (GfsBox *box,
                                             FttVector *pos);
void        gfs_box_set_relative_pos        (GfsBox *box,
                                             GfsBox *reference,
                                             FttDirection d);
GfsDomain*  gfs_box_domain                  (GfsBox *box);

Description

Details

GFS_BOX_CLASS()

#define     GFS_BOX_CLASS(klass)

klass :


GFS_BOX()

#define     GFS_BOX(obj)

obj :


GFS_IS_BOX()

#define     GFS_IS_BOX(obj)

obj :


struct GfsBoxClass

struct GfsBoxClass {

  GtsGNodeClass parent_class;
};


struct GfsBox

struct GfsBox {

  GtsGNode parent;

  FttCell * root;
  GtsObject * neighbor[FTT_NEIGHBORS];
  guint id;
  int pid;
  gint size;
};


gfs_box_class ()

GfsBoxClass* gfs_box_class                  (void);

Returns :


gfs_box_new ()

GfsBox*     gfs_box_new                     (GfsBoxClass *klass);

klass :

Returns :


gfs_box_set_pos ()

void        gfs_box_set_pos                 (GfsBox *box,
                                             FttVector *pos);

Recursively sets the position of the center of box and of its neighbors.

box :

a GfsBox.

pos :

the new position of the center of the box.


gfs_box_set_relative_pos ()

void        gfs_box_set_relative_pos        (GfsBox *box,
                                             GfsBox *reference,
                                             FttDirection d);

Recursively sets the position of the center of box and of its neighbors relative to the position of reference in direction d.

box :

a GfsBox.

reference :

a reference GfsBox.

d :

the direction in which box is found relative to reference.


gfs_box_domain ()

GfsDomain*  gfs_box_domain                  (GfsBox *box);

box :

a GfsBox.

Returns :

the GfsDomain to which box belongs or NULL if box does not belong to any domain.