MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Attributes | List of all members
Ms::Pattern Class Reference

#include <pattern.h>

Collaboration diagram for Ms::Pattern:
Collaboration graph
[legend]

Public Member Functions

 Pattern ()
 
 ~Pattern ()
 
 Pattern (Score *s, SymId id, double spatium)
 
 Pattern (Score *s, QString name)
 
 Pattern (QImage *, int, int, int, int)
 
double match (const Pattern *) const
 
double match (const QImage *, int, int) const
 
double match (const QImage *img, int col, int row, double bg_parm) const
 
void dump () const
 
const QImage * image () const
 
int w () const
 
int h () const
 
bool dot (int x, int y) const
 
SymId id () const
 
void setId (SymId val)
 
const QPoint & base () const
 
void setBase (const QPoint &v)
 

Protected Attributes

QImage _image
 
SymId _id
 
QPoint _base
 
Score_score
 
float ** model
 
int rows
 
int cols
 

Constructor & Destructor Documentation

◆ Pattern() [1/4]

Ms::Pattern::Pattern ( )

◆ ~Pattern()

Ms::Pattern::~Pattern ( )

◆ Pattern() [2/4]

Ms::Pattern::Pattern ( Score s,
SymId  id,
double  spatium 
)

◆ Pattern() [3/4]

Ms::Pattern::Pattern ( Score s,
QString  name 
)

◆ Pattern() [4/4]

Ms::Pattern::Pattern ( QImage *  img,
int  x,
int  y,
int  w,
int  h 
)

Member Function Documentation

◆ base()

const QPoint& Ms::Pattern::base ( ) const
inline

◆ dot()

bool Ms::Pattern::dot ( int  x,
int  y 
) const

◆ dump()

void Ms::Pattern::dump ( ) const

◆ h()

int Ms::Pattern::h ( ) const
inline

◆ id()

SymId Ms::Pattern::id ( ) const
inline

◆ image()

const QImage* Ms::Pattern::image ( ) const
inline

◆ match() [1/3]

double Ms::Pattern::match ( const Pattern a) const

◆ match() [2/3]

double Ms::Pattern::match ( const QImage *  ,
int  ,
int   
) const

◆ match() [3/3]

double Ms::Pattern::match ( const QImage *  img,
int  col,
int  row,
double  bg_parm 
) const

◆ setBase()

void Ms::Pattern::setBase ( const QPoint &  v)
inline

◆ setId()

void Ms::Pattern::setId ( SymId  val)
inline

◆ w()

int Ms::Pattern::w ( ) const
inline

Member Data Documentation

◆ _base

QPoint Ms::Pattern::_base
protected

◆ _id

SymId Ms::Pattern::_id
protected

◆ _image

QImage Ms::Pattern::_image
protected

◆ _score

Score* Ms::Pattern::_score
protected

◆ cols

int Ms::Pattern::cols
protected

◆ model

float** Ms::Pattern::model
protected

◆ rows

int Ms::Pattern::rows
protected

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