![]() |
|
Resources provided separately for each thread. More...
#include <resources.h>
Public Member Functions | |
RackContext () | |
Initializes data and image pointers to default targets or NULL. | |
RackContext (const RackContext &ctx) | |
Essential in cloning base context for threads (parallel execution of scripts). | |
std::string | getFormattedStatus (const std::string &s) const |
bool | guessDatasetGroup (const Hi5Tree &src, ODIMPathElem &pathElem) const |
bool | guessDatasetGroup (ODIMPathElem &pathElem) |
template<typename T , typename ... TT> | |
Hi5Tree & | getHi5 (const T &filter, const TT &... filters) |
Hi5Tree & | getHi5Full (Hi5RoleFlagger::ivalue_t filter) |
Hi5Tree & | getHi5 () |
Composite & | getComposite (Hi5RoleFlagger::ivalue_t filter) |
ODIMPath | findImage (const DataSelector &imageSelector) |
Uses image selector to find 2D data in the curneent HDF5 structure. | |
ODIMPath | findImage () |
const drain::image::Image & | getCurrentGrayImage () |
Light and lazy. | |
const drain::image::Image & | getCurrentImage () |
Light and lazy. | |
const drain::image::Image & | updateCurrentImage () |
Ensures current image. More... | |
drain::image::Image & | getModifiableImage () |
Return current image, if modifiable. Else, copy (convert). More... | |
void | convertGrayImage (const drain::image::Image &srcImage) |
![]() | |
ProductConf () | |
Default constructor. | |
ProductConf (const ProductConf &conf) | |
Copy constructor. | |
![]() | |
SmartContext (const std::string &basename=__FUNCTION__) | |
SmartContext (const SmartContext &ctx) | |
![]() | |
Context (const std::string &basename=__FUNCTION__) | |
Context (const Context &ctx) | |
long int | getId () const |
const std::string & | getName () const |
virtual const drain::VariableMap & | getStatusMap () const |
A long description of context variables and other resources. More... | |
virtual drain::VariableMap & | getStatusMap () |
virtual drain::VariableMap & | getUpdatedStatusMap () |
const Variable & | getStatus (const std::string &key, bool update) const |
template<class T > | |
void | setStatus (const std::string &key, const T &value) |
virtual void | report (StatusFlags &flags) |
Report status. Typically, report final status of a thread to its base context. More... | |
![]() | |
GraphicsContext () | |
Default constructor. | |
GraphicsContext (const GraphicsContext &ctx) | |
Copy constructor. | |
![]() | |
ImageContext () | |
Default constr. | |
ImageContext (const ImageContext &ctx) | |
Copy constr. | |
void | setCurrentImageColor (const Image &src) |
void | setCurrentImages (const Image &src) |
void | unsetCurrentImages () |
void | getImageStatus (drain::FlexVariableMap &statusMap) const |
Palette & | getPalette () |
Palette & | getPalette (const std::string &key) |
void | updateImageStatus (drain::VariableMap &statusMap) const |
![]() | |
AndreContext (const AndreContext &ctx) | |
![]() | |
Hdf5Context (const Hdf5Context &ctx) | |
Hi5Tree & | getMyHi5 (Hi5RoleFlagger::ivalue_t filter=(CARTESIAN|POLAR|INPUT|CURRENT)) |
Pointer to the last HDF5 structure in Cartesian coordinates: input or Cartesian product. More... | |
Hi5Tree & | getHi5Defunct (Hi5RoleFlagger::ivalue_t filter) |
Derives the most relevant polar data (input or product) and returns it. More... | |
Static Public Member Functions | |
static RackContext & | getSharedContext () |
![]() | |
static void | getImageInfo (const Image *ptr, drain::Variable &entry) |
Protected: More... | |
Public Attributes | |
hi5::Reader::ModeFlagger | inputFilter |
std::string | inputPrefix |
Path prefix for input files. Move to resources? | |
std::string | outputPrefix |
Path prefix for output files. Move to resources? | |
Composite | composite |
TODO: inherit from ProductBase. | |
![]() | |
DataSelector | dataSelector |
std::string | targetEncoding |
How the (main) output is encoded. | |
ODIMPathElem | appendResults |
If set, appends outputs in an hdf5 structure instead of overwriting. More... | |
OutputFlagger | outputDataVerbosity = DEFAULT |
![]() | |
const std::string | basename |
Used by copy const. | |
Log | log |
StatusFlags | statusFlags |
Optional log filename (syntax): when defined, automatically opened by CommandBank::run() More... | |
bool | SCRIPT_DEFINED |
![]() | |
bool | expandVariables |
std::string | formatStr |
![]() | |
TreeSVG | svgTrack |
PanelConfSVG | svgPanelConf |
AlignBase::Axis | mainOrientation = AlignBase::Axis::HORZ |
LayoutSVG::Direction | mainDirection = LayoutSVG::Direction::INCR |
int | svgDebug = 0 |
CompleteAlignment< const AlignBase::Axis, AlignBase::Axis::HORZ > | alignHorz = {AlignSVG::Topol::INSIDE, AlignBase::Pos::UNDEFINED_POS} |
CompleteAlignment< const AlignBase::Axis, AlignBase::Axis::VERT > | alignVert = {AlignSVG::Topol::INSIDE, AlignBase::Pos::UNDEFINED_POS} |
![]() | |
bool | imagePhysical |
Defines if the next image processing operation uses scaled intentsites instead of raw byte values. | |
ODIMPathElem::group_t | qualityGroups |
Defines which quality data, if any, is used as input weight. More... | |
ImageSampler | imageSampler |
const Image * | currentImage |
Pointer to the last 2D data (image) processed. | |
const Image * | currentGrayImage |
Pointer to the last single-channel 2D data (image) processed. | |
Image | grayImage |
Image | colorImage |
std::string | paletteKey |
![]() | |
std::string | andreSelect |
float | defaultQuality |
![]() | |
std::string | select |
std::string | inputSelect |
Hi5Tree | polarInputHi5 |
The last input file read, typically a volume. May be concatenated ie. read in incrementally. | |
Hi5Tree | polarProductHi5 |
The polar product that has been generated from the volume. | |
Hi5Tree | cartesianHi5 |
A single-radar Cartesian product or a multi-radar composite (mosaic). | |
Hi5Tree * | currentHi5 |
Pointer to the last HDF5 structure read or generated. | |
Hi5Tree * | currentPolarHi5 |
Pointer to the last HDF5 structure in polar coordinates: input volume or polar product. More... | |
Static Public Attributes | |
static const drain::StringMapper | variableMapper |
static const VariableFormatterODIM< drain::Variable > | variableFormatter |
static const VariableFormatterODIM< drain::FlexibleVariable > | flexVariableFormatter |
![]() | |
static std::string | outputQuantitySyntax |
Protected Member Functions | |
virtual void | updateStatus () const final |
![]() | |
void | init () |
![]() | |
void | updateHdf5Status (drain::VariableMap &statusMap) const |
Derives the most relevant polar input data and returns it. More... | |
Static Protected Member Functions | |
static RackContext & | baseCtx () |
Additional Inherited Members | |
![]() | |
enum | OutputDataVerbosity { DEFAULT =0 , INTERMEDIATE =1 , DEBUG =2 , QUALITY =4 } |
Determines if also intermediate results (1) are saved. See –store. | |
typedef drain::EnumFlagger< drain::MultiFlagger< OutputDataVerbosity > > | OutputFlagger |
![]() | |
enum | Hi5Role { CURRENT =1 , INPUT =2 , POLAR =4 , CARTESIAN =8 , EMPTY =16 , PRIVATE =32 , SHARED =64 } |
typedef drain::EnumFlagger< drain::MultiFlagger< Hi5Role > > | Hi5RoleFlagger |
![]() | |
const long int | id |
const std::string | name |
drain::VariableMap | statusMap |
![]() | |
static Hi5Tree | empty |
Resources provided separately for each thread.
void convertGrayImage | ( | const drain::image::Image & | srcImage | ) |
TODO: wrap this and –convert to same code
Composite & getComposite | ( | Hi5RoleFlagger::ivalue_t | filter | ) |
Get composite, preferring either shared or private (if defined).
Both ways, a defined composite is preferred.
|
inline |
filter | - flags marking the allowed/desired properties (POLAR, INPUT, ...) |
filter | - flags marking the allowed/desired properties (POLAR, INPUT, ...) in order of preference |
drain::image::Image & getModifiableImage | ( | ) |
Return current image, if modifiable. Else, copy (convert).
Ensure
const drain::image::Image & updateCurrentImage | ( | ) |
|
finalprotectedvirtual |
Miscellaneous
Reimplemented from Context.
|
static |
Special chars accepted: