227 CSpectrum(
int startWavelength,
int endWavelength,
const std::vector<double>& spectrumSamples);
233 CSpectrum(
int startWavelength,
int endWavelength,
int step);
250 virtual bool IsEqual(
const IChangeable&
object)
const override;
Standard spectrum implementation for storing sampled spectral data.
virtual istd::IChangeableUniquePtr CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
imath::CSampledFunction BaseClass
virtual int GetSupportedOperations() const override
Get set of flags for supported operations.
virtual istd::CIntRange GetSpectralRange() const override
Get the spectral range of the measured values given in nm.
virtual const ISpectrumInfo * GetSpectrumInfo() const override
CSpectrum(const CSpectrum &other)
virtual int GetStep() const override
Get distance/step between the samples in the spectrum definition (in nm).
virtual bool IsEqual(const IChangeable &object) const override
CSpectrum(int startWavelength, int endWavelength, const std::vector< double > &spectrumSamples)
Initialize with given samples First sample is at the start of the range, last sample is at the end.
virtual int GetSamplesCount() const override
Return number of samples.
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
CSpectrum(int startWavelength, int endWavelength, int step)
Zero initialize samples to fill range with given step.
virtual bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
CSpectrum(const istd::CIntRange &wavelengthRange, int step)
CSpectrum(const istd::CIntRange &wavelengthRange, const std::vector< double > &spectrumSamples)
Common interface for a measured or sampled spectrum.
Common interface for describing the properties or meta-informations of a measured/sampled spectrum.
Implementation of 1D sampled function with uniform sampling grid.
Represents an input/output persistence archive for object serialization.
Common class for all classes which objects can be archived or restored from archive.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Contains color management classes.