void ViewerQuery::DeleteOriginatingWindow() { StopObservingPlot(); originatingWindow = 0; originatingPlot = 0; }
ViewerQuery::~ViewerQuery() { StopObservingPlot(); if (lineAtts) delete lineAtts; if (planeAtts) delete planeAtts; }
void LineoutListItem::DeleteOriginatingWindow() { StopObservingPlot(); for (int i = 0; i < nQueries; i++) queries[i]->DeleteOriginatingWindow(); origPlot = 0; origWin = 0; }
// **************************************************************************** // Method: ViewerQuery::DeleteOriginatingPlot // // Purpose: // Remove the reference to the originating plot. // // Programmer: Kathleen Bonnell // Creation: June 10, 2002 // // Kathleen Bonnell, Mon Jul 29 09:36:35 PDT 2002 // Replace call to InteractiveOff with the necessary code. // // Kathleen Bonnell, Thu Jan 30 15:54:59 PST 2003 // Added call to DeleteVisualCue. // // **************************************************************************** void ViewerQuery::DeleteOriginatingPlot() { // // If > 1 plot is in the originating window, then the reference lines // will not be cleared, so ensure it happens here. // DeleteVisualCue(); StopObservingPlot(); originatingPlot = 0; originatingWindow = 0; }
void ViewerQuery::ReCreateLineout() { StopObservingPlot(); // // Retrieve the ReflineLabels from Lineout Ops. // int id = resultsPlot->GetNOperators(); Line *temp = (Line *)resultsPlot->GetOperator(id-1)->GetOperatorAtts()-> CreateCompatible("Line"); lineAtts->SetReflineLabels(temp->GetReflineLabels()); delete temp; resultsWindow->GetPlotList()->DeletePlot(resultsPlot, false); CreateLineout(); SendVisualCue(); StartObservingPlot(); }
LineoutListItem::~LineoutListItem() { StopObservingPlot(); // // Delete the list and any queries in the queries list. // if (nQueriesAlloc > 0) { for (int i = 0; i < nQueries; i++) { queries[i]->DeleteVisualCue(); queries[i] = (ViewerQuery *)0; } delete [] queries; } }
LineoutListItem & LineoutListItem::operator=(const LineoutListItem &rhs) { int i; StopObservingPlot(); if (nQueries > 0) delete [] queries; origPlot = rhs.origPlot; origWin = rhs.origWin; resWin = rhs.resWin; if (rhs.origPlotQueryInfo) ObserveOriginatingPlot(); nQueries = rhs.nQueries; nQueriesAlloc = rhs.nQueriesAlloc; queries = new ViewerQuery_p [nQueriesAlloc]; for (i = 0; i < nQueries; ++i) { queries[i] = rhs.queries[i]; queries[i]->SendVisualCue(); } return *this; }