Main Page
Module List
Reference documentation
Namespaces
Classes
Examples
distro
c++_api
inc
opals
ZColorLegend.hpp
1
#ifndef OPALS_ZCOLOR_LEGEND_HPP_INCLUDED
2
#define OPALS_ZCOLOR_LEGEND_HPP_INCLUDED
3
4
#pragma once
5
6
#include "opals/config.hpp"
7
#include "opals/Path.hpp"
8
9
namespace
opals {
10
11
/// Class describing the legend parameter
12
class
OPALS_API
ZColorLegend
13
{
14
public
:
15
ZColorLegend
() { state =
true
; fileName =
""
; };
16
virtual
~
ZColorLegend
() {};
17
18
bool
getState()
const
{
return
state; };
19
void
setState(
const
bool
st ) { state = st; };
20
21
opals::Path
getFileName()
const
{
return
state ? fileName :
""
; };
22
void
setFileName(
const
opals::Path
& file ) { fileName = file; state =
true
; };
23
24
private
:
25
bool
state;
26
opals::Path
fileName;
27
};
28
}
29
30
#endif //OPALS_ZCOLOR_LEGEND_HPP_INCLUDED