Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Compositor Class Reference
Inheritance diagram for Compositor:
Inheritance graph
[legend]
Collaboration diagram for Compositor:
Collaboration graph
[legend]

Protected Member Functions

 Compositor (const std::string &name, const std::string &description)
 
 Compositor (const Compositor &cmd)
 
double applyTimeDecay (Composite &composite, double w, const ODIM &odim) const
 
void add (Composite &composite, int inputFilter, bool updateSelector=true) const
 
void addPolar (Composite &composite, const Hi5Tree &src) const
 
void addCartesian (Composite &composite, const Hi5Tree &src) const
 
void extract (Composite &composite, const std::string &channels, const std::string &crop="") const
 
- Protected Member Functions inherited from BeanCommand< BeanLike >
virtual drain::ReferenceMapgetParameters () final
 

Static Protected Member Functions

static void prepareBBox (const Composite &composite, const drain::BBox &cropGeo, drain::Rectangle< int > &cropImage)
 

Protected Attributes

double weight
 
- Protected Attributes inherited from Command
std::string lastParameters
 
- Protected Attributes inherited from Contextual
ContextcontextPtr
 

Additional Inherited Members

- Public Types inherited from BeanCommand< BeanLike >
typedef BeanLike bean_t
 
- Public Types inherited from Command
typedef int cmd_section_type
 
- Public Member Functions inherited from BasicCommand
 BasicCommand (const std::string &name, const std::string &description)
 
 BasicCommand (const BasicCommand &cmd)
 
- Public Member Functions inherited from BeanCommand< BeanLike >
 BeanCommand (const std::string &name, const std::string &description)
 
 BeanCommand (const BeanCommand &cmd)
 
 BeanCommand (BeanLike &b)
 
virtual const bean_tgetBean () const
 
virtual bean_tgetBean ()
 
const std::string & getName () const final
 
const std::string & getDescription () const final
 
virtual const drain::ReferenceMapgetParameters () const final
 
- Public Member Functions inherited from Command
 Command (const Command &cmd)
 
virtual void setParameters (const std::string &args) final
 
template<class T >
void setParameters (const T &args)
 
template<class T >
void setParameter (const std::string &key, const T &value)
 Set a value to a single parameter. More...
 
bool hasParameters () const
 
virtual const std::string & getType () const
 Description of result, comparable to a return type of a function. ?
 
virtual void run (const std::string &params="") final
 Convenience. Sets parameters and executes the command. More...
 
virtual void update ()
 Optional method for preparing command to execution. More...
 
virtual void exec () const
 Run the command with current parameter values.
 
CommandaddSection (int i)
 
const std::string & getLastParameters () const
 
- Public Member Functions inherited from Contextual
 Contextual ()
 Sets internal contextPtr to NULL.
 
 Contextual (const Contextual &src)
 Copies base context (even null) of the source. Notice that the actual instance may be of derived class.
 
 Contextual (Context &ctx)
 Copies internal contextPtr.
 
template<class C >
void setContext ()
 Sets internal contextPtr to the static source.
 
void setExternalContext (Context &ctx)
 Sets internal contextPtr to outside target.
 
bool contextIsSet () const
 True, if contextPtr has been set.
 
template<class T = Context>
T & getContext () const
 If context has been set, returns it through a cast to base class Context. More...
 
- Static Public Member Functions inherited from Contextual
template<class T >
static Cloner< Context, T > & getCloner ()
 
- Public Attributes inherited from BeanCommand< BeanLike >
BeanLike bean
 
- Public Attributes inherited from Command
cmd_section_type section = 1
 
- Static Public Attributes inherited from Command
static const SprinterLayout cmdArgLayout = {",", "?", "=", ""}
 

Member Function Documentation

◆ add()

void add ( Composite composite,
int  inputFilter,
bool  updateSelector = true 
) const
protected

Set default method, if unset.

Set dfault encoding for final (extracted) product. Applied by RadarAccumulator.

Main

◆ addCartesian()

void addCartesian ( Composite composite,
const Hi5Tree &  src 
) const
protected

If a multi-radar mainComposite is being computed, a warning/note should be given is some of these properties are being setValues implicitly ie. based on the first input: 1) method => –cMethod 2) scaling (gain and offset) => –target 3) time => –cTime (applied by cTimeDecay)

If compositing scope is undefined, use that of the tile.

◆ addPolar()

void addPolar ( Composite composite,
const Hi5Tree &  src 
) const
protected

GET INPUT DATA

◆ extract()

void extract ( Composite composite,
const std::string &  channels,
const std::string &  crop = "" 
) const
protected

NOTES

Composite metadata

From input:

  • definite: source info
  • conditional (if unset): encoding

composite.odim stores properties of (first) input data

composite.getTargetEncoding() stores desired encoding

mout.special("targetEncoding: ", composite.getTargetEncoding());

Final step: write metadata

For successfull file io:


The documentation for this class was generated from the following files: