void VolumeRaysView::onSignal(SetCandidate& signal) { // just show the rays of the most recently selected candidate _visibleCandidates.clear(); _visibleCandidates.insert(signal.getCandidate()); updateRecording(); }
void VolumeRaysView::onSignal(sg_gui::KeyDown& signal) { if (signal.key == sg_gui::keys::V) _visible = !_visible; updateRecording(); }
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); }
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); }
//-------------------------------------------------------------- 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); }