Commit cabf6b91 authored by hrchilds's avatar hrchilds
Browse files

Update from March 23, 2005

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@438 18c085ea-50e0-402c-830e-de6fd14e8384
parent b3efd44f
......@@ -16,7 +16,7 @@
using std::string;
#define MAX_VAL 1000
#define MAX_VAL 100000000
// ****************************************************************************
// Method: QvisIndexSelectWindow::QvisIndexSelectWindow
......
......@@ -4253,3 +4253,30 @@ ViewerQueryManager::SetLineoutsTimeSlider(bool removeTimeSlider)
}
}
// ****************************************************************************
// Method: ViewerQueryManager::ClearRefLines
//
// Purpose:
// Tells the lineout lists to stop observing plots, because the reflines
// have been cleared.
//
// Arguments:
// origWin The window from which reflines have been cleared.
//
// Programmer: Kathleen Bonnell
// Creation: March 23, 2005
//
// ****************************************************************************
void
ViewerQueryManager::ClearRefLines(ViewerWindow *origWin)
{
for (int i = 0; i < nLineouts; i++)
{
if (lineoutList[i]->MatchOriginatingWindow(origWin))
{
lineoutList[i]->StopObservingPlot();
}
}
}
......@@ -162,6 +162,9 @@ typedef struct {
// Added SetLineoutsFollowTime, SetLineoutsTimeSlider. Made
// SetDynamicLinenout private, and GetColor public.
//
// Kathleen Bonnell, Wed Mar 23 15:09:16 PST 2005
// Added ClearRefLines.
//
// ****************************************************************************
class VIEWER_API ViewerQueryManager
......@@ -260,6 +263,8 @@ class VIEWER_API ViewerQueryManager
void FinishLineQuery();
ColorAttribute GetColor();
void ClearRefLines(ViewerWindow *);
protected:
ViewerQueryManager();
......
#include <WindowActions.h>
#include <ViewerPlotList.h>
#include <ViewerQueryManager.h>
#include <ViewerWindow.h>
#include <ViewerWindowManager.h>
#include <PlotPluginManager.h>
......@@ -419,6 +420,8 @@ ClearReferenceLinesAction::ClearReferenceLinesAction(ViewerWindow *win) :
// Creation: Fri Apr 4 15:34:54 PST 2003
//
// Modifications:
// Kathleen Bonnell, Wed Mar 23 15:09:16 PST 2005
// Tell ViewerQueryManager that reflines have been cleared.
//
// ****************************************************************************
......@@ -426,6 +429,7 @@ void
ClearReferenceLinesAction::Execute()
{
window->ClearRefLines();
ViewerQueryManager::Instance()->ClearRefLines(window);
}
// ****************************************************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment