mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Adding a typedef and removing some whitespace.
This commit is contained in:
parent
280452345b
commit
66adf06146
3 changed files with 26 additions and 28 deletions
|
|
@ -11,16 +11,18 @@
|
|||
|
||||
namespace openmc {
|
||||
|
||||
typedef std::vector< std::vector< std::vector<int> > > ImageData;
|
||||
|
||||
class ObjectPlot;
|
||||
|
||||
|
||||
int PLOT_LEVEL_LOWEST = -1;
|
||||
|
||||
std::map<int, int> plot_dict;
|
||||
|
||||
|
||||
std::vector<int32_t> n_plots;
|
||||
|
||||
std::vector<ObjectPlot*> plots;
|
||||
|
||||
|
||||
enum PLOT_TYPE {
|
||||
SLICE = 1,
|
||||
VOXEL = 2
|
||||
|
|
@ -48,7 +50,7 @@ namespace openmc {
|
|||
//===============================================================================
|
||||
// ObjectPlot holds plot information
|
||||
//===============================================================================
|
||||
|
||||
|
||||
struct ObjectPlot {
|
||||
int id;
|
||||
int type;
|
||||
|
|
@ -64,25 +66,25 @@ namespace openmc {
|
|||
ObjectColor not_found;
|
||||
ObjectColor colors[MAX_COORD];
|
||||
char path_plot[MAX_WORD_LEN];
|
||||
|
||||
|
||||
};
|
||||
|
||||
void draw_mesh_lines(ObjectPlot* pl,
|
||||
std::vector< std::vector< std::vector<int> > > &data);
|
||||
|
||||
|
||||
|
||||
void output_ppm(ObjectPlot* pl,
|
||||
const std::vector< std::vector< std::vector<int> > > &data);
|
||||
|
||||
|
||||
extern "C" void create_ppm(ObjectPlot* pl);
|
||||
|
||||
|
||||
extern "C" void position_rgb(Particle* p, ObjectPlot* pl, int rgb[3], int &id);
|
||||
|
||||
|
||||
extern "C" void voxel_init(hid_t file_id, const hsize_t* dims, hid_t* dspace,
|
||||
hid_t* dset, hid_t* memspace);
|
||||
extern "C" void voxel_write_slice(int x, hid_t dspace, hid_t dset,
|
||||
hid_t memspace, void* buf);
|
||||
extern "C" void voxel_finalize(hid_t dspace, hid_t dset, hid_t memspace);
|
||||
|
||||
|
||||
} // namespace openmc
|
||||
#endif // OPENMC_PLOT_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue