gft_adjrel3.h
Go to the documentation of this file.
1 
2 #ifndef _GFT_ADJREL3_H_
3 #define _GFT_ADJREL3_H_
4 
5 #include "gft_common.h"
6 
7 namespace gft{
8  namespace AdjRel3{
9 
10  typedef union _displacement3 {
12  int data[4];
13  struct{ int x,y,z; } axis;
14  } Displacement3;
15 
16  typedef struct _adjrel3 {
18  int n;
19  } AdjRel3;
20 
21  typedef struct _adjvxl {
22  int *dp;
23  int n;
24  } AdjVxl;
25 
26 
27  AdjRel3 *Create(int n);
28  void Destroy(AdjRel3 **A);
29  AdjRel3 *Clone(AdjRel3 *A);
30 
31  AdjRel3 *Spheric(float r);
32  AdjRel3 *Ellipsoid(float rx, float ry, float rz);
33  AdjRel3 *SphericalShell(float inner_radius,
34  float outer_radius);
35  AdjRel3 *Box(int xsize, int ysize, int zsize);
36 
37 
38  void Scale(AdjRel3 *A,
39  float Sx, float Sy, float Sz);
40  void ClipX(AdjRel3 *A, int lower, int higher);
41  void ClipY(AdjRel3 *A, int lower, int higher);
42  void ClipZ(AdjRel3 *A, int lower, int higher);
43 
44  int GetFrameSize(AdjRel3 *A);
45  void GetFrameSize(AdjRel3 *A,
46  int *sz_x,
47  int *sz_y,
48  int *sz_z);
49  float *GetDistanceArray(AdjRel3 *A);
50 
51  void DestroyAdjVxl(AdjVxl **N);
52 
53  } //end AdjRel3 namespace
54 } //end gft namespace
55 
56 
57 #include "gft_scene.h"
58 
59 namespace gft{
60  namespace AdjRel3{
61 
62  AdjVxl *AdjVoxels(AdjRel3 *A, int xsize, int ysize);
67 
68  AdjRel3 *Spherical_mm(Scene32::Scene32 *scn, float r_mm);
69  AdjRel3 *SphericalGrid_mm(float dx, float dy, float dz,
70  float r_mm, float spacement_mm);
72  float r_mm, float spacement_mm);
73 
75 
76  } //end AdjRel3 namespace
77 } //end gft namespace
78 
79 #endif
80 
int y
Definition: gft_adjrel3.h:13
void Scale(AdjRel3 *A, float Sx, float Sy, float Sz)
Definition: gft_adjrel3.cpp:203
AdjRel3 * SphericalGrid_mm(float dx, float dy, float dz, float r_mm, float spacement_mm)
Definition: gft_adjrel3.cpp:422
int data[4]
Definition: gft_adjrel3.h:12
AdjVxl * AdjVoxels(AdjRel3 *A, int xsize, int ysize)
Definition: gft_adjrel3.cpp:351
Definition: gft_adjrel3.h:21
v4si v
Definition: gft_adjrel3.h:11
int n
Definition: gft_adjrel3.h:23
Definition: gft_adjrel3.h:16
int n
Definition: gft_adjrel3.h:18
AdjRel3 * Box(int xsize, int ysize, int zsize)
Definition: gft_adjrel3.cpp:176
struct gft::Scene8::_scene8 Scene8
struct gft::AdjRel3::_displacement3::@1 axis
void ClipY(AdjRel3 *A, int lower, int higher)
Definition: gft_adjrel3.cpp:241
struct gft::Scene32::_scene32 Scene32
Definition: gft_adjrel3.h:10
Displacement3 * d
Definition: gft_adjrel3.h:17
void ClipZ(AdjRel3 *A, int lower, int higher)
Definition: gft_adjrel3.cpp:268
int x
Definition: gft_adjrel3.h:13
AdjRel3 * Clone(AdjRel3 *A)
Definition: gft_adjrel3.cpp:35
int GetFrameSize(AdjRel3 *A)
Definition: gft_adjrel3.cpp:295
Header file for common definitions and function prototypes.
float * GetDistanceArray(AdjRel3 *A)
Definition: gft_adjrel3.cpp:323
int * dp
Definition: gft_adjrel3.h:22
AdjRel3 * Spheric(float r)
Definition: gft_adjrel3.cpp:47
int v4si
Vector of four single integers.
Definition: gft_common.h:88
float * GetDistanceArray_mm(AdjRel3 *A, Scene32::Scene32 *scn)
Definition: gft_adjrel3.cpp:336
AdjRel3 * Create(int n)
Definition: gft_adjrel3.cpp:7
void ClipX(AdjRel3 *A, int lower, int higher)
Definition: gft_adjrel3.cpp:214
AdjRel3 * Spherical_mm(Scene32::Scene32 *scn, float r_mm)
Definition: gft_adjrel3.cpp:408
void Destroy(AdjRel3 **A)
Definition: gft_adjrel3.cpp:24
AdjRel3 * SphericalShell(float inner_radius, float outer_radius)
Definition: gft_adjrel3.cpp:132
struct gft::Scene::_scene Scene
int z
Definition: gft_adjrel3.h:13
struct gft::AdjRel3::_adjrel3 AdjRel3
struct gft::Scene16::_scene16 Scene16
void DestroyAdjVxl(AdjVxl **N)
Definition: gft_adjrel3.cpp:397
union gft::AdjRel3::_displacement3 Displacement3
AdjRel3 * Ellipsoid(float rx, float ry, float rz)
Definition: gft_adjrel3.cpp:88
struct gft::AdjRel3::_adjvxl AdjVxl