34 #ifndef RACK_RESOURCES_BASE
35 #define RACK_RESOURCES_BASE
39 #include <drain/image/Image.h>
40 #include <drain/image/TreeUtilsSVG.h>
41 #include <drain/imageops/PaletteOp.h>
42 #include <drain/util/Static.h>
44 #include "data/DataSelector.h"
45 #include "data/PolarODIM.h"
91 void unsetCurrentImages(){
109 std::string paletteKey;
112 drain::image::TreeSVG svgTrack;
117 drain::image::Palette & getPalette(){
118 return drain::image::PaletteOp::getPalette(paletteKey);
123 drain::image::Palette & getPalette(
const std::string & key){
125 return drain::image::PaletteOp::getPalette(key);
156 AndreContext() : andreSelect(
"path=dataset1:3,elangle=0:2.0"), defaultQuality(0.9) {
164 std::string andreSelect;
166 float defaultQuality;
182 std::string inputSelect;
207 static const h5_role::ivalue_t CURRENT;
208 static const h5_role::ivalue_t INPUT;
210 static const h5_role::ivalue_t POLAR;
211 static const h5_role::ivalue_t CARTESIAN;
212 static const h5_role::ivalue_t EMPTY;
213 static const h5_role::ivalue_t PRIVATE;
214 static const h5_role::ivalue_t SHARED;
222 Hi5Tree &
getMyHi5(h5_role::ivalue_t filter=(CARTESIAN|POLAR|INPUT|CURRENT));
262 static Hi5Tree empty;
A map of FlexVariable:s.
Definition: VariableMap.h:138
Flags using a global dictionary.
Definition: GlobalFlags.h:81
A map of Variables.
Definition: VariableMap.h:61
Traverses image, returning samples.
Definition: ImageModifierPack.h:401
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Definition: resources-base.h:153
Definition: resources-base.h:173
Hi5Tree polarInputHi5
The last input file read, typically a volume. May be concatenated ie. read in incrementally.
Definition: resources-base.h:187
Hi5Tree * currentPolarHi5
Pointer to the last HDF5 structure in polar coordinates: input volume or polar product.
Definition: resources-base.h:203
void updateHdf5Status(drain::VariableMap &statusMap) const
Derives the most relevant polar input data and returns it.
Definition: resources-base.cpp:236
Hi5Tree cartesianHi5
A single-radar Cartesian product or a multi-radar composite (mosaic).
Definition: resources-base.h:193
Hi5Tree polarProductHi5
The polar product that has been generated from the volume.
Definition: resources-base.h:190
Hi5Tree & getMyHi5(h5_role::ivalue_t filter=(CARTESIAN|POLAR|INPUT|CURRENT))
Pointer to the last HDF5 structure in Cartesian coordinates: input or Cartesian product.
Definition: resources-base.cpp:124
Hi5Tree * currentHi5
Pointer to the last HDF5 structure read or generated.
Definition: resources-base.h:196
Hi5Tree & getHi5Defunct(h5_role::ivalue_t filter)
Derives the most relevant polar data (input or product) and returns it.
Definition: resources-base.cpp:202
Definition: resources-base.h:53
bool imagePhysical
Defines if the next image processing operation uses scaled intentsites instead of raw byte values.
Definition: resources-base.h:63
static void getImageInfo(const drain::image::Image *ptr, drain::Variable &entry)
Protected:
Definition: resources-base.cpp:73
const drain::image::Image * currentGrayImage
Pointer to the last single-channel 2D data (image) processed.
Definition: resources-base.h:103
static std::string outputQuantitySyntax
Definition: resources-base.h:141
ImageContext()
Default constr.
Definition: resources-base.cpp:45
ODIMPathElem::group_t qualityGroups
Defines which quality data, if any, is used as input weight.
Definition: resources-base.h:73
const drain::image::Image * currentImage
Pointer to the last 2D data (image) processed.
Definition: resources-base.h:100
drain::Flagger::ivalue_t group_t
In H5, "groups" correspond to "directories" or "folders" in Unix and Windows.
Definition: ODIMPath.h:91
DRAIN_VARIABLE Variable
Value container supporting dynamic type.
Definition: Variable.h:63
Definition: DataSelector.cpp:44
Definition: TreeUtilsSVG.h:74