SpectMorph
Public Member Functions | Protected Attributes | List of all members
SpectMorph::FloatProperty Class Referenceabstract
Inheritance diagram for SpectMorph::FloatProperty:
SpectMorph::Property SpectMorph::SignalReceiver SpectMorph::LinearProperty SpectMorph::LogProperty SpectMorph::XParamProperty

Public Member Functions

 FloatProperty (MorphOperator *op, float *value, const Range &range, Scale scale, const std::string &identifier, const std::string &label, const std::string &format)
 
Type type () override
 
int min () override
 
int max () override
 
int get () override
 
void set (int v) override
 
float get_float () const override
 
void set_float (float f) override
 
std::string get_edit_str () override
 
void set_edit_str (const std::string &s) override
 
Range float_range () override
 
Scale float_scale () override
 
virtual double value2ui (double value)=0
 
virtual double ui2value (double ui)=0
 
std::string label () override
 
std::string value_label () override
 
void set_custom_formatter (const std::function< std::string(float)> &formatter)
 
void save (OutFile &out_file) override
 
bool load (InFile &in_file) override
 
- Public Member Functions inherited from SpectMorph::Property
 Property (MorphOperator *op, const std::string &identifier)
 
MorphOperatorop ()
 
std::string identifier ()
 
bool get_bool ()
 
void set_bool (bool b)
 
virtual const EnumInfoenum_info () const
 
ModulationListmodulation_list ()
 
void set_modulation_data (ModulationData *mod_data)
 
void set_modulation_range_ui (double range_ui)
 
double modulation_range_ui () const
 
- Public Member Functions inherited from SpectMorph::SignalReceiver
template<class... Args, class CbFunction >
uint64 connect (Signal< Args... > &signal, const CbFunction &callback)
 
template<class... Args, class Instance , class Method >
uint64 connect (Signal< Args... > &signal, Instance *instance, const Method &method)
 
void disconnect (uint64 id)
 
void dead_signal (uint64 id)
 

Protected Attributes

float * m_value
 
const Range m_range
 
const Scale m_scale
 
std::string m_label
 
std::string m_format
 
std::function< std::string(float)> m_custom_formatter
 
- Protected Attributes inherited from SpectMorph::Property
std::unique_ptr< ModulationListm_modulation_list
 
MorphOperatorm_op
 
std::string m_identifier
 
double m_modulation_range_ui = 1
 

Additional Inherited Members

- Public Types inherited from SpectMorph::Property
enum class  Type { BOOL , INT , ENUM , FLOAT }
 
enum class  Scale { NONE , LINEAR , LOG }
 
- Public Attributes inherited from SpectMorph::Property
Signal signal_value_changed
 
Signal signal_modulation_changed
 

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