| 1 | /* |
| 2 | * Prototypes of graphical routines |
| 3 | * |
| 4 | */ |
| 5 | |
| 6 | |
| 7 | #ifndef __GRAPHIQUE_VTK_H_ |
| 8 | #define __GRAPHIQUE_VTK_H_ |
| 9 | |
| 10 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 11 | |
| 12 | namespace Lorene { |
| 13 | class Scalar ; |
| 14 | class Map ; |
| 15 | |
| 16 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 17 | |
| 18 | /** |
| 19 | * \defgroup grafbasic Low level graphical routines. |
| 20 | * \ingroup (graphics) |
| 21 | * @{ |
| 22 | */ |
| 23 | |
| 24 | /* |
| 25 | * The following are routines used to save Lorene data in the vtk format |
| 26 | * for use with VisIt |
| 27 | * |
| 28 | */ |
| 29 | |
| 30 | /** Saves the data for a \c Scalar in the plane X=constant. |
| 31 | * |
| 32 | * X is the Cartesian coordinate relative to the absolute frame. |
| 33 | * |
| 34 | * @param uu [input] \c Scalar to be drawn |
| 35 | * @param x0 [input] value of the coordinate X which defines the plane |
| 36 | * of the drawing |
| 37 | * @param nzdes [input] number of domains for which the plot is performed: |
| 38 | * the size of the graphic window is determined so that |
| 39 | * the \c nzdes innermost domains fit in it (for |
| 40 | * \c zoom = 1.) |
| 41 | * @param title [input] title of the figure (default value = 0x0, |
| 42 | * corresponds to no title) |
| 43 | * @param zoom [input] Factor by which the size of the graphic window |
| 44 | * (determined from the size of the \c nzdes innermost |
| 45 | * domains) is multiplied (default value = 1.2) |
| 46 | * @param ny [input] number of points in the Y direction (default value = 100) |
| 47 | * @param nz [input] number of points in the Z direction (default value = 100) |
| 48 | */ |
| 49 | void des_coupe_vtk_x(const Scalar& uu, double x0, int nzdes, const char* title = 0x0, |
| 50 | double zoom = 1.2, int ny = 100, int nz = 100) ; |
| 51 | |
| 52 | /** Saves the data for a \c Scalar in the plane X=constant |
| 53 | * within a specified graphic window. |
| 54 | * |
| 55 | * X is the Cartesian coordinate relative to the absolute frame. |
| 56 | * |
| 57 | * @param uu [input] \c Scalar to be drawn |
| 58 | * @param x0 [input] value of the coordinate X which defines the plane |
| 59 | * of the drawing |
| 60 | * @param y_min [input] lowest value of absol. coord. Y |
| 61 | * @param y_max [input] highest value of absol. coord. Y |
| 62 | * @param z_min [input] lowest value of absol. coord. Z |
| 63 | * @param z_max [input] highest value of absol. coord. Z |
| 64 | * @param title [input] title of the figure (default value = 0x0, |
| 65 | * corresponds to no title) |
| 66 | * @param ny [input] number of points in the Y direction (default value = 100) |
| 67 | * @param nz [input] number of points in the Z direction (default value = 100) |
| 68 | */ |
| 69 | void des_coupe_vtk_x(const Scalar& uu, double x0, double y_min, double y_max, |
| 70 | double z_min, double z_max, const char* title = 0x0, |
| 71 | int ny = 100, int nz = 100) ; |
| 72 | |
| 73 | /** Saves the data for a \c Scalar in the plane Y=constant. |
| 74 | * |
| 75 | * Y is the Cartesian coordinate relative to the absolute frame. |
| 76 | * |
| 77 | * @param uu [input] \c Scalar to be drawn |
| 78 | * @param y0 [input] value of the coordinate Y which defines the plane |
| 79 | * of the drawing |
| 80 | * @param nzdes [input] number of domains for which the plot is performed: |
| 81 | * the size of the graphic window is determined so that |
| 82 | * the \c nzdes innermost domains fit in it (for |
| 83 | * \c zoom = 1.) |
| 84 | * @param title [input] title of the figure (default value = 0x0, |
| 85 | * corresponds to no title) |
| 86 | * @param zoom [input] Factor by which the size of the graphic window |
| 87 | * (determined from the size of the \c nzdes innermost |
| 88 | * domains) is multiplied (default value = 1.2) |
| 89 | * @param nx [input] number of points in the X direction (default value = 100) |
| 90 | * @param nz [input] number of points in the Z direction (default value = 100) |
| 91 | */ |
| 92 | void des_coupe_vtk_y(const Scalar& uu, double y0, int nzdes, const char* title = 0x0, |
| 93 | double zoom = 1.2, int nx = 100, int nz = 100) ; |
| 94 | |
| 95 | /** Saves the data for a \c Scalar in the plane Y=constant |
| 96 | * within a specified graphic window. |
| 97 | * |
| 98 | * Y is the Cartesian coordinate relative to the absolute frame. |
| 99 | * |
| 100 | * @param uu [input] \c Scalar to be drawn |
| 101 | * @param y0 [input] value of the coordinate Y which defines the plane |
| 102 | * of the drawing |
| 103 | * @param x_min [input] lowest value of absol. coord. x |
| 104 | * @param x_max [input] highest value of absol. coord. x |
| 105 | * @param z_min [input] lowest value of absol. coord. Z |
| 106 | * @param z_max [input] highest value of absol. coord. Z |
| 107 | * @param title [input] title of the figure (default value = 0x0, |
| 108 | * corresponds to no title) |
| 109 | * @param nx [input] number of points in the X direction (default value = 100) |
| 110 | * @param nz [input] number of points in the Z direction (default value = 100) |
| 111 | */ |
| 112 | void des_coupe_vtk_y(const Scalar& uu, double y0, double x_min, double x_max, |
| 113 | double z_min, double z_max, const char* title = 0x0, |
| 114 | int nx = 100, int nz = 100) ; |
| 115 | |
| 116 | /** Saves the data for a \c Scalar in the plane Z=constant. |
| 117 | * |
| 118 | * Z is the Cartesian coordinate relative to the absolute frame. |
| 119 | * |
| 120 | * @param uu [input] \c Scalar to be drawn |
| 121 | * @param z0 [input] value of the coordinate Z which defines the plane |
| 122 | * of the drawing |
| 123 | * @param nzdes [input] number of domains for which the plot is performed: |
| 124 | * the size of the graphic window is determined so that |
| 125 | * the \c nzdes innermost domains fit in it (for |
| 126 | * \c zoom = 1.) |
| 127 | * @param title [input] title of the figure (default value = 0x0, |
| 128 | * corresponds to no title) |
| 129 | * @param zoom [input] Factor by which the size of the graphic window |
| 130 | * (determined from the size of the \c nzdes innermost |
| 131 | * domains) is multiplied (default value = 1.2) |
| 132 | * @param nx [input] number of points in the X direction (default value = 100) |
| 133 | * @param ny [input] number of points in the Y direction (default value = 100) |
| 134 | */ |
| 135 | void des_coupe_vtk_z(const Scalar& uu, double z0, int nzdes, const char* title = 0x0, |
| 136 | double zoom = 1.2, int nx = 100, int ny = 100) ; |
| 137 | |
| 138 | /** Saves the data for a \c Scalar in the plane Z=constant |
| 139 | * within a specified graphic window. |
| 140 | * |
| 141 | * Z is the Cartesian coordinate relative to the absolute frame. |
| 142 | * |
| 143 | * @param uu [input] \c Scalar to be drawn |
| 144 | * @param z0 [input] value of the coordinate Z which defines the plane |
| 145 | * of the drawing |
| 146 | * @param x_min [input] lowest value of absol. coord. X |
| 147 | * @param x_max [input] highest value of absol. coord. X |
| 148 | * @param y_min [input] lowest value of absol. coord. Y |
| 149 | * @param y_max [input] highest value of absol. coord. Y |
| 150 | * @param title [input] title of the figure (default value = 0x0, |
| 151 | * corresponds to no title) |
| 152 | * @param nx [input] number of points in the X direction (default value = 100) |
| 153 | * @param ny [input] number of points in the Y direction (default value = 100) |
| 154 | */ |
| 155 | void des_coupe_vtk_z(const Scalar& uu, double z0, double x_min, double x_max, |
| 156 | double y_min, double y_max, const char* title = 0x0, |
| 157 | int nx = 100, int ny = 100) ; |
| 158 | |
| 159 | /** Saves a three dimensional \c Scalar. |
| 160 | * |
| 161 | * @param uu [input] \c Scalar to be drawn |
| 162 | * @param nzdes [input] number of domains for which the plot is performed: |
| 163 | * the size of the graphic window is determined so that |
| 164 | * the \c nzdes innermost domains fit in it (for |
| 165 | * \c zoom = 1.) |
| 166 | * @param title [input] title of the figure (default value = 0x0, |
| 167 | * corresponds to no title) |
| 168 | * @param nx [input] number of points in the X direction (default value = 100) |
| 169 | * @param ny [input] number of points in the Y direction (default value = 100) |
| 170 | * @param nz [input] number of points in the Z direction (default value = 100) |
| 171 | */ |
| 172 | void des_vtk_xyz(const Scalar& uu, int nzdes, const char* title = 0x0, |
| 173 | int nx = 100, int ny = 100, int nz = 100) ; |
| 174 | |
| 175 | /** Saves the data for a \c Scalar within a specified graphic window. |
| 176 | * |
| 177 | * @param uu [input] \c Scalar to be drawn |
| 178 | * @param x_min [input] lowest value of absol. coord. X |
| 179 | * @param x_max [input] highest value of absol. coord. X |
| 180 | * @param y_min [input] lowest value of absol. coord. Y |
| 181 | * @param y_max [input] highest value of absol. coord. Y |
| 182 | * @param z_min [input] lowest value of absol. coord. Z |
| 183 | * @param z_max [input] highest value of absol. coord. Z |
| 184 | * @param title [input] title of the figure (default value = 0x0, |
| 185 | * corresponds to no title) |
| 186 | * @param nx [input] number of points in the X direction (default value = 100) |
| 187 | * @param ny [input] number of points in the Y direction (default value = 100) |
| 188 | * @param nz [input] number of points in the Z direction (default value = 100) |
| 189 | */ |
| 190 | void des_vtk_xyz(const Scalar& uu, double x_min, double x_max, |
| 191 | double y_min, double y_max, double z_min, double z_max, |
| 192 | const char* title = 0x0, int nx = 100, int ny = 100, int nz = 100) ; |
| 193 | |
| 194 | /** @} */ |
| 195 | |
| 196 | } |
| 197 | #endif |