1 #ifndef QNANO_NEW_POSTSCRIPT_PRINTER_DEFINED_H 2 #define QNANO_NEW_POSTSCRIPT_PRINTER_DEFINED_H 4 #include "structure/Atom_List.h" 5 #include "structure/Potential.h" 6 #include "tools/Quaternion.h" 13 double boxwidth, boxheight;
14 bool ps_boxwidth_set_explicitly;
15 bool ps_boxheight_set_explicitly;
20 double boxwidthx, boxwidthy, boxwidthz;
24 double default_radius;
25 double atom_border_width;
26 std::vector<std::string> EVfile;
27 std::string potentialfile;
29 std::map<int, Vec3d> element_color;
32 Vec3d (*color_rescale)(
Vec3d color,
double maxval);
35 bool is_in_box(
const Atom &at,
const Vec3d &newcenter)
const;
38 void set_element_colors_from_parameters(
Parameter_Map ¶m_map);
39 void add_default_element_colors(std::map<int,Vec3d> &colors,
const Atom_List &atlist)
const;
41 static Vec3d color_rescale_bw(
Vec3d color,
double maxval);
42 static Vec3d color_rescale_yellowbrown(
Vec3d color,
double maxval);
43 static Vec3d color_rescale_redblue(
Vec3d color,
double maxval);
44 static Vec3d color_rescale_greenredblueyellow(
Vec3d color,
double maxval);
47 void get_color_list_atoms(std::vector<Vec3d> & colorlist,
const Atom_List &atlist)
const;
48 void get_color_list_EV(std::vector<Vec3d> & colorlist,
const Atom_List &atlist)
const;
49 void get_color_list_potential(std::vector<Vec3d> & colorlist,
const Atom_List &atlist)
const;
50 void get_color_list(std::vector<Vec3d> & colorlist,
const Atom_List &atlist)
const;
53 void print_header(std::ostream &ofs)
const;
54 void print_footer(std::ostream &ofs)
const;
55 void print_atoms(std::ostream &ofs,
const Atom_List &atlist)
const;
63 static bool compare_atom_z(
const Atom &a1,
const Atom &a2){
64 return a1.pos[2]<a2.pos[2];
Definition: Quaternion.h:10
Definition: Parameter_Map.h:12
Class to store positions and to handle operations on 3d vectors.
Definition: Vec3d.h:9
Definition: Atom_List.h:9
Definition: Postscript_Printer.h:10