29 #ifndef CDPL_VIS_SIZESPECIFICATION_HPP
30 #define CDPL_VIS_SIZESPECIFICATION_HPP
56 SizeSpecification(
double value = 0.0,
bool relative =
false,
bool input_scaling =
false,
bool output_scaling =
false):
57 value(value), relative(relative), inputScaling(input_scaling), outputScaling(output_scaling) {}
Definition of the preprocessor macro CDPL_VIS_API.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Specifies the value and type of a size attribute and defines how the value may change during processi...
Definition: SizeSpecification.hpp:45
void followOutputScaling(bool follow)
Specifies whether the specified size has to follow output scaling operations.
bool operator==(const SizeSpecification &spec) const
Equality comparison operator.
bool isRelative() const
Tells if the size specification is absolute or relative to another size.
void setRelative(bool relative)
Specifies if the size specification is absolute or relative to another size.
double getValue() const
Returns the value of the specified size.
void setValue(double value)
Sets value of the specified size.
bool followsOutputScaling() const
Tells if the specified size follows output scaling operations.
void followInputScaling(bool follow)
Specifies whether the specified size has to follow input scaling operations.
bool operator!=(const SizeSpecification &spec) const
Inequality comparison operator.
SizeSpecification(double value=0.0, bool relative=false, bool input_scaling=false, bool output_scaling=false)
Constructs a SizeSpecification object with the given attributes.
Definition: SizeSpecification.hpp:56
bool followsInputScaling() const
Tells if the specified size follows input scaling operations.
The namespace of the Chemical Data Processing Library.