Example #1
0
void
VolumeRaysView::onSignal(SetCandidate& signal) {

	// just show the rays of the most recently selected candidate
	_visibleCandidates.clear();
	_visibleCandidates.insert(signal.getCandidate());
	updateRecording();
}
Example #2
0
void
VolumeRaysView::onSignal(sg_gui::KeyDown& signal) {

	if (signal.key == sg_gui::keys::V)
		_visible = !_visible;

	updateRecording();
}
Example #3
0
void
SegmentsPainter::showBranches(bool show) {

	_showBranches = show;

	loadTextures();

	util::rect<double> size(0, 0, 0, 0);

	updateRecording();

	LOG_ALL(segmentspainterlog) << "size is " << _size << std::endl;

	setSize(_size);
}
Example #4
0
void
SegmentsPainter::setSegments(boost::shared_ptr<Segments> segments) {

	_segments = segments;

	loadTextures();

	util::rect<double> size(0, 0, 0, 0);

	updateRecording();

	LOG_ALL(segmentspainterlog) << "size is " << _size << std::endl;

	setSize(_size);
}
Example #5
0
//--------------------------------------------------------------
void ofApp::update(){
    
    
    if(bUseKinect){
        
        //--------- update kinect
        kinect.update();
    
        //--------- process frame for background subtraction and thresholding by depth
        processKinectFrame();
    
        //--------- check if user is present
        checkForUser();
        
        //--------- update recording
        updateRecording();
    
    }
    
    
    
    //--------- update avatar players
    if(totalAvatarsThisUser > 0){
        for( int i = 0; i < totalAvatarsThisUser; i++){
            avatars[i].update();
        }
    }
    
    //-------- send osc mesages
    sendOscData();
    getOscData();
    
    //-------- update vars not directly connected to gui
    updateVarsFromGui();
    
}
void Recording::update( float delta )
{
	updateRecording(delta);
	updatePlayback(delta);
}