tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
tilde::CanvasData Class Reference

shared canvas data model - boxes, patchcords More...

#include <CanvasData.h>

Public Member Functions

 CanvasData ()
 
portItemVecinlets ()
 
portItemVecoutlets ()
 
void setInlets (portItemVec *inlets)
 
void setOutlets (portItemVec *outlets)
 
void setFileName (QString fName)
 
QString fileName ()
 
void setFilePath (QString filePath)
 
QString filePath ()
 
void setFirstSave (bool fs)
 
bool firstSave ()
 
PropertyListproperties ()
 
void setProperties (PropertyList *p)
 
void setPosition (QPoint p)
 
void setSize (QSize s)
 
bool hasObjects ()
 
bool hasSelectedObjects ()
 
objectVecboxes ()
 
patchcordVecpatchcords ()
 
objectVecselectedBoxes ()
 
patchcordVecselectedPatchcords ()
 
void addUniqueBox (objectVec *boxes, UIObject *box)
 
void addUniquePatchcord (patchcordVec *patchcords, UIPatchcord *pcord)
 
int findBox (objectVec *boxes, UIObject *box)
 
int findPatchcord (patchcordVec *patchcords, UIPatchcord *pcord)
 
void selectBoxesInFrame (QPoint start, QPoint end)
 
void moveSelectedBoxes (QPoint pos, bool gridSnap)
 
void addBox (UIObject *box)
 
void addPatchcord (UIPatchcord *pc)
 
void selectBox (UIObject *box)
 
void selectPatchcord (UIPatchcord *pc)
 
void deselectBoxes ()
 
void deselectPatchcords ()
 
void deletePatchcord (UIPatchcord *pc)
 
void cut ()
 
void copy ()
 
void paste ()
 
int findObjectIndex (UIObject *obj)
 
UIObjectgetObjectByIndex (int idx)
 
patchcordVec patchcordsForObject (UIObject *obj)
 
QStringList boxesAsPdFileStrings (objectVec *boxes)
 
std::string patchcordAsPdFileString (UIPatchcord *pcord)
 
QStringList patchcordsAsPdFileStrings (patchcordVec *patchcords)
 
t_patchcordAsNumbers patchcordAsNumbers (UIPatchcord *pcord)
 
QStringList objectsAsPdFileStrings ()
 
QString canvasAsPdFileString ()
 
QStringList asPdFileStrings ()
 

Detailed Description

shared canvas data model - boxes, patchcords

Constructor & Destructor Documentation

tilde::CanvasData::CanvasData ( )

Member Function Documentation

void tilde::CanvasData::addBox ( UIObject box)
inline
void tilde::CanvasData::addPatchcord ( UIPatchcord pc)
inline
void tilde::CanvasData::addUniqueBox ( objectVec boxes,
UIObject box 
)
void tilde::CanvasData::addUniquePatchcord ( patchcordVec patchcords,
UIPatchcord pcord 
)
QStringList tilde::CanvasData::asPdFileStrings ( )
objectVec* tilde::CanvasData::boxes ( )
inline
QStringList tilde::CanvasData::boxesAsPdFileStrings ( objectVec boxes)
QString tilde::CanvasData::canvasAsPdFileString ( )
void tilde::CanvasData::copy ( )
void tilde::CanvasData::cut ( )
void tilde::CanvasData::deletePatchcord ( UIPatchcord pc)
void tilde::CanvasData::deselectBoxes ( )
void tilde::CanvasData::deselectPatchcords ( )
QString tilde::CanvasData::fileName ( )
inline
QString tilde::CanvasData::filePath ( )
inline
int tilde::CanvasData::findBox ( objectVec boxes,
UIObject box 
)
int tilde::CanvasData::findObjectIndex ( UIObject obj)
int tilde::CanvasData::findPatchcord ( patchcordVec patchcords,
UIPatchcord pcord 
)
bool tilde::CanvasData::firstSave ( )
inline
UIObject * tilde::CanvasData::getObjectByIndex ( int  idx)
bool tilde::CanvasData::hasObjects ( )
inline
bool tilde::CanvasData::hasSelectedObjects ( )
inline
portItemVec* tilde::CanvasData::inlets ( )
inline
void tilde::CanvasData::moveSelectedBoxes ( QPoint  pos,
bool  gridSnap 
)
QStringList tilde::CanvasData::objectsAsPdFileStrings ( )
portItemVec* tilde::CanvasData::outlets ( )
inline
void tilde::CanvasData::paste ( )
t_patchcordAsNumbers tilde::CanvasData::patchcordAsNumbers ( UIPatchcord pcord)
std::string tilde::CanvasData::patchcordAsPdFileString ( UIPatchcord pcord)
patchcordVec* tilde::CanvasData::patchcords ( )
inline
QStringList tilde::CanvasData::patchcordsAsPdFileStrings ( patchcordVec patchcords)
patchcordVec tilde::CanvasData::patchcordsForObject ( UIObject obj)
PropertyList* tilde::CanvasData::properties ( )
inline
void tilde::CanvasData::selectBox ( UIObject box)
void tilde::CanvasData::selectBoxesInFrame ( QPoint  start,
QPoint  end 
)
objectVec* tilde::CanvasData::selectedBoxes ( )
inline
patchcordVec* tilde::CanvasData::selectedPatchcords ( )
inline
void tilde::CanvasData::selectPatchcord ( UIPatchcord pc)
void tilde::CanvasData::setFileName ( QString  fName)
inline
void tilde::CanvasData::setFilePath ( QString  filePath)
inline
void tilde::CanvasData::setFirstSave ( bool  fs)
inline
void tilde::CanvasData::setInlets ( portItemVec inlets)
inline
void tilde::CanvasData::setOutlets ( portItemVec outlets)
inline
void tilde::CanvasData::setPosition ( QPoint  p)
inline
void tilde::CanvasData::setProperties ( PropertyList p)
inline
void tilde::CanvasData::setSize ( QSize  s)
inline

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