Public Member Functions | Public Attributes | List of all members
SamplePicker Struct Reference

Interprets data values for Sampler. More...

#include <Sampler.h>

Inheritance diagram for SamplePicker:
Inheritance graph
[legend]
Collaboration diagram for SamplePicker:
Collaboration graph
[legend]

Public Member Functions

 SamplePicker (ReferenceMap2<> &variableMap)
 
void setSize (int w, int h)
 
virtual void setPosition (int i, int j) const
 Sets current position in image coordinates. To be redefined to compute also geographical projections, for example.
 

Public Attributes

int current_i = 0
 Optional utility. Called prior to writing the actual data to output stream. More...
 
int current_j = 0
 Vertical coordinate.
 
int current_j2 = 0
 Vertical inversed coordinate.
 
int width = 0
 
int height = 0
 
FlexVariableMap infoMap
 Information to be should in output file header.
 
ReferenceMap2variableMap
 

Detailed Description

Interprets data values for Sampler.

A Sampler instance moves a SamplePicker instance by calling its setLocation(). Then, calls its getValue(). SamplePicker picks and scales invidual values, checks their validity and so on.

Constructor & Destructor Documentation

◆ SamplePicker()

SamplePicker ( ReferenceMap2<> &  variableMap)
inline
Parameters
ref- flexible container in which the values in each location will be written.

Member Data Documentation

◆ current_i

int current_i = 0
mutable

Optional utility. Called prior to writing the actual data to output stream.

Horizontal coordinate.

◆ variableMap

ReferenceMap2& variableMap

Container for image data, including data derived thereof. Updated in every image position (i,j). Formatted and displayed in each row or the output file.


The documentation for this struct was generated from the following file: