Ignore:
Timestamp:
03/14/14 00:45:03 (10 years ago)
Author:
oriona
Message:

Chambers in Foraminifera grow so that the length of the local communication path is minimal

Location:
cpp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp

    • Property svn:ignore set to
      part_shapes
  • cpp/frams/genetics/fF/conv_fF.h

    r140 r174  
    66#define _CONV_FF_H_
    77
     8#define TOO_MUCH 0.75
     9#define TOO_LITTLE 0.10
     10
     11#define HOLE_RADIUS 0.05f
     12#define LONGITUDE_NUM 69
     13
     14#define LATITUDE_NUM ((LONGITUDE_NUM - 1)*2)
     15#define AMOUNT ((LATITUDE_NUM)*(LONGITUDE_NUM))
     16
     17#define THICK_RATIO 0.95
     18
     19#define SIZE LONGITUDE_NUM * LATITUDE_NUM + LATITUDE_NUM
     20
    821#include <frams/util/multimap.h>
    922#include <frams/util/sstring.h>
    1023#include <frams/genetics/genoconv.h>
    11 
    12 
     24#include "fF_chamber3d.h"
    1325
    1426// The f9->f0 converter
    15 class GenoConv_fF0: public GenoConverter
    16 {
     27
     28class GenoConv_fF0 : public GenoConverter {
    1729public:
    18         GenoConv_fF0();
    19 
    20         //implementation of the GenoConverter method
    21         SString convert(SString &in, MultiMap *map);
     30    GenoConv_fF0();
     31    ~GenoConv_fF0();
     32    //implementation of the GenoConverter method
     33    SString convert(SString &in, MultiMap *map);
    2234
    2335protected:
    24         //auxiliary methods
    25         //...
     36    double* cosines;
     37    double* sines;
     38    void createSphere(int ktora, fF_chamber3d **chambers, double radius, double div_radius_length, double div_vector_length,
     39    double alpha, double gamma, double kx, double ky, double kz);
     40    double** generate_points(fF_chamber3d *chamber, int which, double kx, double ky, double kz);
     41    void fill_cos_and_sin();
     42    double dist(double x1, double y1, double z1, double x2, double y2, double z2);
     43    void search_hid(int nr, fF_chamber3d **spheres, double kx_, double ky_, double kz_);
     44    int find_hole(int which, double x, double y, double z, fF_chamber3d **chambers, double kx_, double ky_, double kz_);
    2645};
    2746
    2847#endif
     48
     49
Note: See TracChangeset for help on using the changeset viewer.