22 #include <tjutils/tjutils.h>
23 #include <tjutils/tjlabel.h>
24 #include <tjutils/tjlist.h>
25 #include <tjutils/tjarray.h>
27 #include <odinpara/ldrser.h>
79 static const char* get_compName();
91 enum scaleType {displayScale=0,xPlotScale,yPlotScaleLeft,yPlotScaleRight,n_ScaleTypes};
101 ArrayScale(
const STD_string& scalelabel,
const STD_string& scaleunit,
float scalemin=0.0,
float scalemax=0.0,
bool enablescale=
true);
103 STD_string get_label_with_unit()
const;
136 void get_overlay_range(
float& min,
float& max)
const;
216 enum parxCodeType {parx_def, parx_passval, parx_passval_head, parx_parclass_def, parx_parclass_init, parx_parclass_passval};
230 const STD_string& parx_name=
"",
double parx_assign_factor=1.0,
double parx_assign_offset=0.0)
467 virtual int* cast(
int*) {
return 0;}
468 virtual long* cast(
long*) {
return 0;}
469 virtual float* cast(
float*) {
return 0;}
470 virtual double* cast(
double*) {
return 0;}
471 virtual bool* cast(
bool*) {
return 0;}
472 virtual STD_complex* cast(STD_complex*) {
return 0;}
474 virtual STD_string* cast(STD_string*) {
return 0;}
484 virtual LDRfunction* cast(LDRfunction*) {
return 0;}
488 int set_parameter_id(
int newid) {
id=newid;
return 0;}
489 int get_parameter_id()
const {
return id;}
491 LDRbase& set_cmdline_option(
const STD_string& opt) {cmdline_option=opt;
return *
this;}
492 STD_string get_cmdline_option()
const {
return cmdline_option;}
501 STD_string get_parx_def_string(
const STD_string type,
unsigned int dim)
const;
515 STD_string description;
520 STD_string cmdline_option;
530 class LDReditWidget {
534 virtual void updateWidget() = 0;
536 virtual ~LDReditWidget() {}
541 class LDReditCaller {
545 virtual void parameter_relations(LDReditWidget* editwidget) = 0;
547 virtual ~LDReditCaller() {}
virtual parameterMode get_parmode() const
virtual double get_minval() const
virtual STD_string get_parx_code(parxCodeType type) const
LDRbase & set_description(const STD_string &descr)
friend STD_ostream & operator<<(STD_ostream &s, const LDRbase &value)
virtual LDRbase & set_filemode(fileMode file_mode)
virtual STD_string print(const LDRserBase &serializer=LDRserJDX()) const
virtual bool parse(STD_string &parstring, const LDRserBase &serializer=LDRserJDX())
JcampDxProps get_jdx_props() const
virtual svector get_alternatives() const
LDRbase & set_jdx_props(const JcampDxProps &jp)
virtual double get_maxval() const
virtual LDRbase & set_gui_props(const GuiProps &)
virtual GuiProps get_gui_props() const
virtual fileMode get_filemode() const
virtual int write(const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) const
virtual STD_string get_typeInfo(bool parx_equivtype=false) const =0
virtual STD_string printvalstring(const LDRserBase *ser=0) const =0
virtual STD_ostream & print2stream(STD_ostream &os, const LDRserBase &serializer) const
virtual int load(const STD_string &filename, const LDRserBase &serializer=LDRserJDX())
LDRbase & set_unit(const STD_string &un)
virtual bool parsevalstring(const STD_string &, const LDRserBase *ser=0)=0
virtual LDRbase * create_copy() const =0
const STD_string & get_description() const
virtual LDRbase & set_parmode(parameterMode parameter_mode)
const STD_string & get_unit() const
ArrayScale scale[n_ScaleTypes]
JcampDxProps(bool user_defined_parameter=true, const STD_string &parx_name="", double parx_assign_factor=1.0, double parx_assign_offset=0.0)
STD_string parx_equiv_name