56 return m_samplesContainer.
GetSizes();
64 return m_samplesContainer.
GetAt(index);
72 m_samplesContainer.
SetAt(index, value);
Implementation of the resampled 2D-function.
virtual istd::CRange GetLogicalRange(int dimensionIndex) const override
Get logical range for the specified dimension.
virtual ResultType GetValueAt(const ArgumentType &argument) const override
virtual int GetGridSize(int dimensionIndex) const override
Get number of samples for specified dimension.
virtual istd::CRange GetResultValueRange(int dimensionIndex, int resultDimension=-1) const override
Get the range (boundary) of possible result values for the given axis.
istd::CIndex2d GetGridSize2d() const
bool CreateGrid2d(const istd::CIndex2d &size, double defaultValue=0)
virtual double GetSampleAt(const SampleIndex &index) const override
Get sample value at the given index.
CSampledFunction2d(const imath::ISampledFunction2d &function2d)
virtual std::vector< double > GetSamples() const override
Get all samples as a vector.
virtual bool CreateFunction(double *dataPtr, const ArgumentType &sizes) override
Create function from input data.
CSampledFunction2d(const CSampledFunction2d &function2d)
CSampledFunction2d(const istd::CIndex2d &size, double defaultValue=0)
void SetSampleValue(const istd::CIndex2d &index, double value)
virtual int GetTotalSamplesCount() const override
Get number of samples stored in this container.
double GetSampleValue(const istd::CIndex2d &index) const
virtual bool GetValueAt(const ArgumentType &argument, ResultType &result) const override
Interface for a resampled function with a regular grid design.
BaseClass::ResultType ResultType
BaseClass::ArgumentType ArgumentType
Index implementation for addressing elements in 2D-space.
Multidimensional array with fixed number of dimensions.
const Element & GetAt(const IndexType &index) const
Get element stored at specified index.
void SetAt(const IndexType &index, const Element &value)
Set element at specified index.
const SizesType & GetSizes() const
Get list of all sizes.
Multidimensional index used to addressing fixed-size array.
bool IsInside(const TIndex &boundaries) const
Check if index is inside boundaries.
Package with mathematical functions and algebraical primitives.