#include <G4PlotManager.hh>
Definition at line 45 of file G4PlotManager.hh.
◆ G4PlotManager() [1/2]
Definition at line 156 of file G4PlotManager.cc.
161 #if defined(TOOLS_USE_FREETYPE) 167 G4cout <<
"... using high resolution with Freetype fonts" <<
G4endl;
173 static tools::sg::text_freetype ttf;
179 fViewer->plots().view_border =
false;
180 load_embeded_styles(
fViewer->styles());
181 fViewer->styles().add_colormap(
"default",tools::sg::style_default_colormap());
182 fViewer->styles().add_colormap(
"ROOT",tools::sg::style_ROOT_colormap());
187 G4cout <<
"... using low resolution with Hershey fonts" <<
G4endl;
194 fViewer->plots().view_border =
false;
static G4PlotParameters fgPlotParameters
std::unique_ptr< tools::viewplot > fViewer
G4GLOB_DLL std::ostream G4cout
const G4AnalysisVerbose * GetVerboseL1() const
const G4AnalysisManagerState & fState
◆ ~G4PlotManager()
G4PlotManager::~G4PlotManager |
( |
| ) |
|
◆ G4PlotManager() [2/2]
◆ CloseFile()
G4bool G4PlotManager::CloseFile |
( |
| ) |
|
Definition at line 271 of file G4PlotManager.cc.
281 description <<
" " <<
"Cannot close the plot file.";
std::ostringstream G4ExceptionDescription
std::unique_ptr< tools::viewplot > fViewer
const G4AnalysisVerbose * GetVerboseL1() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4AnalysisManagerState & fState
const G4AnalysisVerbose * GetVerboseL4() const
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
◆ GetNofPlotsPerPage()
G4int G4PlotManager::GetNofPlotsPerPage |
( |
| ) |
const |
|
inlineprivate |
◆ OpenFile()
Definition at line 244 of file G4PlotManager.cc.
257 description <<
" " <<
"Cannot open plot file " << fileName;
std::ostringstream G4ExceptionDescription
std::unique_ptr< tools::viewplot > fViewer
const G4AnalysisVerbose * GetVerboseL1() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4AnalysisManagerState & fState
const G4AnalysisVerbose * GetVerboseL4() const
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
◆ operator=()
◆ PlotAndWrite()
template<typename T >
G4bool G4PlotManager::PlotAndWrite |
( |
const std::vector< T *> & |
htVector, |
|
|
const std::vector< G4HnInformation *> & |
hnVector |
|
) |
| |
|
inline |
Definition at line 86 of file G4PlotManager.hh.
89 if ( ! htVector.size() )
return true;
94 fViewer->plots().set_current_plotter(0);
97 G4bool isWriteNeeded =
false;
99 for (
G4int i=0; i<
G4int(htVector.size()); ++i ) {
106 if ( ( ! plotting ) ||
116 tools::sg::plotter& plotter =
fViewer->plots().current_plotter();
120 isWriteNeeded =
true;
130 finalResult = result && finalResult;
131 isWriteNeeded =
false;
139 if ( isWriteNeeded ) {
141 finalResult = result && finalResult;
static G4PlotParameters fgPlotParameters
G4String GetStyle() const
std::unique_ptr< tools::viewplot > fViewer
G4bool GetIsActivation() const
const G4AnalysisManagerState & fState
const G4AnalysisVerbose * GetVerboseL3() const
G4int GetNofPlotsPerPage() const
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
◆ WritePage()
G4bool G4PlotManager::WritePage |
( |
| ) |
|
|
private |
Definition at line 207 of file G4PlotManager.cc.
214 #if defined(TOOLS_USE_FREETYPE) 222 description <<
" " <<
"Cannot write a page in the plot file " <<
fFileName;
std::ostringstream G4ExceptionDescription
static G4PlotParameters fgPlotParameters
std::unique_ptr< tools::viewplot > fViewer
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4AnalysisManagerState & fState
const G4AnalysisVerbose * GetVerboseL3() const
const G4AnalysisVerbose * GetVerboseL4() const
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
◆ fFileName
◆ fgPlotParameters
◆ fState
◆ fViewer
std::unique_ptr<tools::viewplot> G4PlotManager::fViewer |
|
private |
The documentation for this class was generated from the following files: