Back to index

salome-gui  6.5.0
Functions
SPlot2d_ViewModel.cxx File Reference
#include "SPlot2d_ViewModel.h"
#include "SPlot2d_ViewWindow.h"
#include "SPlot2d_Prs.h"
#include "SPlot2d_Histogram.h"
#include "SUIT_Session.h"
#include "SUIT_Application.h"
#include "SUIT_ViewManager.h"
#include "SALOME_ListIO.hxx"
#include "SALOME_ListIteratorOfListIO.hxx"
#include <QApplication>
#include <QToolBar>
#include <QToolButton>
#include <QCursor>
#include <QColorDialog>
#include <qwt_plot_canvas.h>
#include <qwt_plot_curve.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

 Handle (SALOME_InteractiveObject) SPlot2d_Viewer
 Return interactive obeject if is presented in the viewer.

Function Documentation

Return interactive obeject if is presented in the viewer.

Gets SALOME_InteractiveObject.

Definition at line 329 of file SPlot2d_ViewModel.cxx.

{
  Handle(SALOME_InteractiveObject) anIO;
  Plot2d_ViewFrame* aViewFrame = getActiveViewFrame();
  if(aViewFrame == NULL) return anIO;

  CurveDict aCurves = aViewFrame->getCurves();
  CurveDict::Iterator it = aCurves.begin();
  for( ; it != aCurves.end(); ++it ) {
    SPlot2d_Curve* aCurve = dynamic_cast<SPlot2d_Curve*>(it.value()); 
    if ( aCurve && aCurve->hasIO() && !strcmp( aCurve->getIO()->getEntry(), Entry ) ) {
      anIO = aCurve->getIO();
      break;
    }
  }
  return anIO;
}

Here is the call graph for this function: