void Processor::invalidate(int inv) { PropertyOwner::invalidate(inv); if (inv == Processor::VALID) return; if (!isInitialized()) return; if (!invalidationVisited_) { invalidationVisited_ = true; for (size_t i=0; i<coProcessorOutports_.size(); ++i) coProcessorOutports_[i]->invalidatePort(); invalidationVisited_ = false; tgtAssert(VoreenApplication::app(), "VoreenApplication not instantiated"); VoreenApplication::app()->scheduleNetworkProcessing(); } //check, if is ready (isInitialized) bool ready = isReady(); if(ready && (processorState_ == PROCESSOR_STATE_NOT_READY)){ processorState_ = PROCESSOR_STATE_READY; notifyStateChanged(); } else if(!ready && (processorState_ == PROCESSOR_STATE_READY)) { processorState_ = PROCESSOR_STATE_NOT_READY; notifyStateChanged(); } }
void CanvasRenderer::invalidate(int inv) { // Since VoreenPainter::paint() already calls process() on the // NetworkEvaluator, we bypass Processor::invalidate() // in order to prevent a needless double processing of the network. PropertyOwner::invalidate(inv); //check, if is ready (isInitialized) bool ready = isReady(); if(ready && (processorState_ == PROCESSOR_STATE_NOT_READY)){ processorState_ = PROCESSOR_STATE_READY; notifyStateChanged(); } else if(!ready && (processorState_ == PROCESSOR_STATE_READY)) { processorState_ = PROCESSOR_STATE_NOT_READY; notifyStateChanged(); } //update if (canvas_) { canvas_->update(); canvas_->repaint(); } //take screenshot, if path has been changed if(inv == Processor::INVALID_PATH && isInitialized()) saveScreenshotClicked(); }
void JTextField::contentsModified() { cont_changed = true; notifyStateChanged(); checkSize(); }
/** Constructor */ TextFieldBody::TextFieldBody(QWidget *parent) : QMultiLineEdit(parent) { connect(this, SIGNAL(textChanged()), SLOT(notifyStateChanged())); }
void OktetaDocument::onByteArrayDocumentChanged() { notifyStateChanged(); }