SpectMorph
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SpectMorph::MorphPlan Class Reference
Inheritance diagram for SpectMorph::MorphPlan:
SpectMorph::SignalReceiver

Classes

class  ExtraParameters
 

Public Types

enum  AddPos { ADD_POS_AUTO , ADD_POS_END }
 

Public Member Functions

 MorphPlan (Project &project)
 
const Indexindex ()
 
Projectproject ()
 
std::string id () const
 
void add_operator (MorphOperator *op, AddPos=ADD_POS_END, const std::string &name="", const std::string &id="", bool load_folded=false)
 
const std::vector< MorphOperator * > & operators () const
 
void remove (MorphOperator *op)
 
void move (MorphOperator *op, MorphOperator *op_next)
 
void set_plan_str (const std::string &plan_str)
 
void emit_plan_changed ()
 
void emit_index_changed ()
 
Error save (GenericOut *file, ExtraParameters *params=nullptr) const
 
Error load (GenericIn *in, ExtraParameters *params=nullptr)
 
void load_default ()
 
MorphPlanclone () 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)
 

Static Public Member Functions

static std::string id_chars ()
 
static std::string generate_id ()
 

Public Attributes

Signal signal_plan_changed
 
Signal signal_index_changed
 
Signal signal_need_view_rebuild
 
Signal< MorphOperator * > signal_operator_removed
 
Signal< MorphOperator * > signal_operator_added
 

Static Public Attributes

constexpr static int N_CONTROL_INPUTS = 4
 

Protected Member Functions

void clear ()
 
bool load_index ()
 
Error load_internal (GenericIn *in, ExtraParameters *params=nullptr)
 

Protected Attributes

Projectm_project = nullptr
 
Index m_index
 
std::vector< MorphOperator * > m_operators
 
std::string m_id
 
bool in_restore
 

Member Function Documentation

◆ clear()

void MorphPlan::clear ( )
protected

Clears MorphPlan, deletes all operators and resets all variables to return to a state that is completely empty (like after creation).

◆ load()

Error MorphPlan::load ( GenericIn in,
ExtraParameters params = nullptr 
)

Loads MorphPlan from input stream.

Returns
Error::NONE if everything worked, an error otherwise

◆ operators()

const vector< MorphOperator * > & MorphPlan::operators ( ) const

Get MorphPlan operators.

Returns
a read-only reference to the vector containing the operators.

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