Adding a typedef and removing some whitespace.

This commit is contained in:
Patrick Shriwise 2018-10-09 19:56:32 -05:00
parent 280452345b
commit 66adf06146
3 changed files with 26 additions and 28 deletions

View file

@ -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