client::client(int ind,string i,int p,string n,bool r,bool m,bool s)
{
    //arange them gridwise
    index = ind;
    ip = i;
    port = p;
    name = n;
    isRigid = r;
    isMarker = m;
    isSkeleton = s;
    int width = 30;
    int x = 340 * (index%2);
    int row = (index / 2);
    area = ofRectangle(x,row * (width * 2) + (row * 10), 330, width * 2);
    rigButton = ofRectangle(0, width, width, width);
    markButton = ofRectangle(100, width, width, width);
    skelButton = ofRectangle(200, width, width, width);
    delButton = ofRectangle(area.width - (width / 2), 0, width / 2, width / 2);
    
    ofTrueTypeFont::setGlobalDpi(72);
    
    verdana14.loadFont("verdana.ttf", 14, true, true);
    verdana14.setLineHeight(18.0f);
    verdana14.setLetterSpacing(1.037);
    setupSender();
}
Example #2
0
ofxTSPSOscSender::ofxTSPSOscSender(string _ip, int _port){
	setupSender(_ip, _port);
};
void ofxControlOscManager::eventToggleSending(ofxControlButtonEventArgs &evt)
{
    if (sending) {
        setupSender(hostOut, portOut);
    }
}