Some adjustments to the CPlot class. Moving attributes it doesn't need back to the main Plot class.

This commit is contained in:
Patrick Shriwise 2019-02-26 15:46:24 -06:00
parent a0931879a6
commit b8fec08eeb
2 changed files with 9 additions and 16 deletions

View file

@ -80,18 +80,11 @@ enum class PlotColorBy {
class CPlot {
public:
int id_; //!< Plot ID
PlotType type_; //!< Plot type (Slice/Voxel)
PlotColorBy color_by_; //!< Plot coloring (cell/material)
Position origin_; //!< Plot origin in geometry
Position width_; //!< Plot width in geometry
PlotBasis basis_; //!< Plot basis (XY/XZ/YZ)
std::array<int, 3> pixels_; //!< Plot size in pixels
int meshlines_width_; //!< Width of lines added to the plot
int level_; //!< Plot universe level
int index_meshlines_mesh_; //!< Index of the mesh to draw on the plot
RGBColor meshlines_color_; //!< Color of meshlines on the plot
RGBColor not_found_; //!< Plot background color
};
@ -119,6 +112,13 @@ private:
// Members
public:
int id_; //!< Plot ID
PlotType type_; //!< Plot type (Slice/Voxel)
PlotColorBy color_by_; //!< Plot coloring (cell/material)
int meshlines_width_; //!< Width of lines added to the plot
int index_meshlines_mesh_; //!< Index of the mesh to draw on the plot
RGBColor meshlines_color_; //!< Color of meshlines on the plot
RGBColor not_found_; //!< Plot background color
std::vector<RGBColor> colors_; //!< Plot colors
std::string path_plot_; //!< Plot output filename
};

View file

@ -22,18 +22,11 @@ _RGBColor._fields_ = [('red', c_ushort),
class _Plot(Structure):
pass
_Plot._fields_ = [('id_', c_int),
('type_', c_int),
('color_by_', c_int),
('origin_', _Position),
_Plot._fields_ = [('origin_', _Position),
('width_', _Position),
('basis_', c_int),
('pixels_', c_int*3),
('meshlines_width_', c_int),
('level_', c_int),
('index_meshlines_mesh_', c_int),
('meshlines_color_', _RGBColor),
('not_found_', _RGBColor)]
('level_', c_int)]
_dll.openmc_id_map.argtypes= [POINTER(_Plot),]