#include <ImageToScore.hpp>
Public Member Functions | |
ImageToScore (void) | |
virtual | ~ImageToScore (void) |
virtual void | setImageFilename (std::string imageFilename) |
virtual std::string | getImageFilename () const |
virtual void | setMaximumVoiceCount (size_t maximumVoiceCount) |
virtual size_t | getMaximumVoiceCount () const |
virtual void | setMinimumValue (double minimumValue) |
virtual double | getMinimumValue () const |
virtual void | generate () |
virtual void | produceOrTransform (Score &score, size_t beginAt, size_t endAt, const ublas::matrix< double > &coordinates) |
virtual Score & | getScore () |
virtual ublas::matrix< double > | getLocalCoordinates () const |
virtual ublas::matrix< double > | traverse (const ublas::matrix< double > &globalCoordinates, Score &score) |
virtual ublas::matrix< double > | createTransform () |
virtual void | clear () |
virtual double & | element (size_t row, size_t column) |
virtual void | setElement (size_t row, size_t column, double value) |
virtual void | addChild (Node *node) |
Data Fields | |
std::string | importFilename |
std::vector< Node * > | children |
Protected Member Functions | |
virtual void | getPixel (size_t x, size_t y, double &hue, double &saturation, double &value) const |
virtual void | translate (double x, double y, double hue, double value, Event &event) const |
Static Protected Member Functions | |
static void | rgbToHsv (double r, double g, double b, double &h, double &s, double &v) |
Protected Attributes | |
std::string | imageFilename |
Fl_Image * | image |
size_t | maximumVoiceCount |
double | minimumValue |
Score | score |
ublas::matrix< double > | localCoordinates |
csound::ImageToScore::ImageToScore | ( | void | ) |
virtual csound::ImageToScore::~ImageToScore | ( | void | ) | [virtual] |
static void csound::ImageToScore::rgbToHsv | ( | double | r, | |
double | g, | |||
double | b, | |||
double & | h, | |||
double & | s, | |||
double & | v | |||
) | [static, protected] |
virtual void csound::ImageToScore::getPixel | ( | size_t | x, | |
size_t | y, | |||
double & | hue, | |||
double & | saturation, | |||
double & | value | |||
) | const [protected, virtual] |
virtual void csound::ImageToScore::translate | ( | double | x, | |
double | y, | |||
double | hue, | |||
double | value, | |||
Event & | event | |||
) | const [protected, virtual] |
virtual void csound::ImageToScore::setImageFilename | ( | std::string | imageFilename | ) | [virtual] |
virtual std::string csound::ImageToScore::getImageFilename | ( | ) | const [virtual] |
virtual void csound::ImageToScore::setMaximumVoiceCount | ( | size_t | maximumVoiceCount | ) | [virtual] |
virtual size_t csound::ImageToScore::getMaximumVoiceCount | ( | ) | const [virtual] |
virtual void csound::ImageToScore::setMinimumValue | ( | double | minimumValue | ) | [virtual] |
virtual double csound::ImageToScore::getMinimumValue | ( | ) | const [virtual] |
virtual void csound::ImageToScore::generate | ( | ) | [virtual] |
virtual void csound::ScoreNode::produceOrTransform | ( | Score & | score, | |
size_t | beginAt, | |||
size_t | endAt, | |||
const ublas::matrix< double > & | coordinates | |||
) | [virtual, inherited] |
The default implementation does nothing.
Reimplemented from csound::Node.
Reimplemented in csound::Cell, csound::Hocket, csound::MCRM, and csound::Rescale.
virtual Score& csound::ScoreNode::getScore | ( | ) | [virtual, inherited] |
virtual ublas::matrix<double> csound::Node::getLocalCoordinates | ( | ) | const [virtual, inherited] |
Returns the local transformation of coordinate system.
Reimplemented in csound::Random.
virtual ublas::matrix<double> csound::Node::traverse | ( | const ublas::matrix< double > & | globalCoordinates, | |
Score & | score | |||
) | [virtual, inherited] |
The default implementation postconcatenates its own local coordinate system with the global coordinates, then passes the score and the product of coordinate systems to each child, thus performing a depth-first traversal of the music graph.
Reimplemented in csound::Hocket, and csound::Sequence.
virtual ublas::matrix<double> csound::Node::createTransform | ( | ) | [virtual, inherited] |
virtual void csound::Node::clear | ( | ) | [virtual, inherited] |
Reimplemented in csound::Lindenmayer, and csound::MusicModel.
virtual double& csound::Node::element | ( | size_t | row, | |
size_t | column | |||
) | [virtual, inherited] |
virtual void csound::Node::setElement | ( | size_t | row, | |
size_t | column, | |||
double | value | |||
) | [virtual, inherited] |
virtual void csound::Node::addChild | ( | Node * | node | ) | [virtual, inherited] |
std::string csound::ImageToScore::imageFilename [protected] |
Fl_Image* csound::ImageToScore::image [protected] |
size_t csound::ImageToScore::maximumVoiceCount [protected] |
double csound::ImageToScore::minimumValue [protected] |
Score csound::ScoreNode::score [protected, inherited] |
std::string csound::ScoreNode::importFilename [inherited] |
ublas::matrix<double> csound::Node::localCoordinates [protected, inherited] |
std::vector<Node *> csound::Node::children [inherited] |
Child Nodes, if any.