SpectMorph
Classes | Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
SpectMorph::Property Class Referenceabstract
Inheritance diagram for SpectMorph::Property:
SpectMorph::SignalReceiver SpectMorph::BoolProperty SpectMorph::EnumProperty SpectMorph::FloatProperty SpectMorph::IntProperty SpectMorph::IntVecProperty SpectMorph::LinearProperty SpectMorph::LogProperty SpectMorph::XParamProperty

Classes

struct  Range
 

Public Types

enum class  Type { BOOL , INT , ENUM , FLOAT }
 
enum class  Scale { NONE , LINEAR , LOG }
 

Public Member Functions

 Property (MorphOperator *op, const std::string &identifier)
 
MorphOperatorop ()
 
std::string identifier ()
 
virtual Type type ()=0
 
virtual int min ()=0
 
virtual int max ()=0
 
virtual int get ()=0
 
virtual void set (int v)=0
 
virtual std::string label ()=0
 
virtual std::string value_label ()=0
 
virtual std::string get_edit_str ()
 
virtual void set_edit_str (const std::string &s)
 
virtual void save (OutFile &out_file)=0
 
virtual bool load (InFile &in_file)=0
 
bool get_bool ()
 
void set_bool (bool b)
 
virtual float get_float () const
 
virtual void set_float (float f)
 
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
 
virtual Range float_range ()
 
virtual Scale float_scale ()
 
- 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)
 

Public Attributes

Signal signal_value_changed
 
Signal signal_modulation_changed
 

Protected Attributes

std::unique_ptr< ModulationListm_modulation_list
 
MorphOperatorm_op
 
std::string m_identifier
 
double m_modulation_range_ui = 1
 

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