File: PlotImage.h

package info (click to toggle)
ausaxs 1.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 72,592 kB
  • sloc: cpp: 49,853; ansic: 6,901; python: 730; makefile: 18
file content (43 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// SPDX-License-Identifier: LGPL-3.0-or-later
// Author: Kristian Lytje

#pragma once

#include <plots/Plot.h>

namespace ausaxs::em {class Image;}
namespace ausaxs::plots {
    /**
     * @brief Plot a specific \class Image object. 
     */
    class PlotImage : public Plot {
        public:
            /**
             * @brief Constructor.
             * 
             * @param image The image to be plotted. 
             */
            PlotImage(const em::Image& image, const PlotOptions& options);

            /**
             * @brief Destructor. 
             */
            ~PlotImage() override;

            /**
             * @brief Overlay the atomic locations on top of the plot. 
             * 
             * @param cutoff The cutoff value of the electron density. 
             */
            PlotImage& plot_atoms(const em::Image& image, double cutoff);

			/**
			 * @brief Plot and save the input Image at the specified location. 
			 * 	      This is a convenient shortcut for quickly creating a plot of a single Image. 
			 */
            static void quick_plot(const em::Image& image, const PlotOptions& options, const io::File& path);

        private:
            void plot(const em::Image& image, const PlotOptions& options);
    };
}