-# Copyright (C) 2003 CEA/DEN, EDF R&D
-#
+
+# -* Makefile *-
#
+# Author : Patrick GOLDBRONN (CEA)
+# Date : 30/11/2001
+# $Header$
#
-# File : Makefile.in
-# Author : Vasily Rusyaev (Open Cascade NN)
-# Module : doc
-# $Header:
-
+# source path
top_srcdir=@top_srcdir@
top_builddir=../..
srcdir=@srcdir@
VPATH=.:@srcdir@
+SUBDIRS= tui gui
+
@COMMENCE@
docs:
- cp -fr $(srcdir)/GUI ./
- -find $(PWD) -name CVS -exec rm -rf {} \;
+ @@SETX@; for d in $(SUBDIRS); do \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ done; \
+ cp -f $(srcdir)/GUI_index.html GUI_index.html
clean:
- rm -fr `ls | grep -v "Makefile"`
+ @@SETX@; for d in $(SUBDIRS); do \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ done
distclean: clean
- rm -fr GUI
+ @@SETX@; for d in $(SUBDIRS); do \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ done
install:
- mkdir -p $(docdir)
- cp -rf GUI $(docdir)
- -find $(PWD) -name CVS -exec rm -rf {} \;
+ $(MAKE) docs
+ (cd tui && $(MAKE) install);
+ (cd gui && $(MAKE) install);
+ cp -f GUI_index.html $(docdir)
uninstall:
- rm -rf $(docdir)/GUI
+ @@SETX@; for d in $(SUBDIRS); do \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ done; \
+ rm -fr $(docdir)/GUI_index.html
myPlot->replot();
}
-/*!
- "Fit Data" command for TUI interface
-*/
-void Plot2d_ViewFrame::fitData(const int mode,
- const double xMin, const double xMax,
- const double yMin, const double yMax,
- double y2Min, double y2Max)
-{
- if ( mode == 0 || mode == 2 ) {
- myPlot->setAxisScale( QwtPlot::yLeft, yMax, yMin );
- if (mySecondY)
- myPlot->setAxisScale( QwtPlot::yRight, y2Max, y2Min );
- }
- if ( mode == 0 || mode == 1 )
- myPlot->setAxisScale( QwtPlot::xBottom, xMin, xMax );
- myPlot->replot();
-}
-
-/*!
- Gets current fit ranges for view frame
-*/
-void Plot2d_ViewFrame::getFitRanges(double& xMin,double& xMax,
- double& yMin, double& yMax,
- double& y2Min, double& y2Max)
-{
- int ixMin = myPlot->canvasMap( QwtPlot::xBottom ).i1();
- int ixMax = myPlot->canvasMap( QwtPlot::xBottom ).i2();
- int iyMin = myPlot->canvasMap( QwtPlot::yLeft ).i1();
- int iyMax = myPlot->canvasMap( QwtPlot::yLeft ).i2();
- xMin = myPlot->invTransform(QwtPlot::xBottom, ixMin);
- xMax = myPlot->invTransform(QwtPlot::xBottom, ixMax);
- yMin = myPlot->invTransform(QwtPlot::yLeft, iyMin);
- yMax = myPlot->invTransform(QwtPlot::yLeft, iyMax);
- y2Min = 0;
- y2Max = 0;
- if (mySecondY) {
- int iyMin = myPlot->canvasMap( QwtPlot::yRight ).i1();
- int iyMax = myPlot->canvasMap( QwtPlot::yRight ).i2();
- y2Min = myPlot->invTransform(QwtPlot::yRight, iyMin);
- y2Max = myPlot->invTransform(QwtPlot::yRight, iyMax);
- }
-}
-
/*!
Tests if it is necessary to start operation on mouse action
*/
void Plot2d_ViewFrame::onFitData()
{
Plot2d_FitDataDlg* dlg = new Plot2d_FitDataDlg( this, mySecondY );
- double xMin,xMax,yMin,yMax,y2Min,y2Max;
- getFitRanges(xMin,xMax,yMin,yMax,y2Min,y2Max);
+ int ixMin = myPlot->canvasMap( QwtPlot::xBottom ).i1();
+ int ixMax = myPlot->canvasMap( QwtPlot::xBottom ).i2();
+ int iyMin = myPlot->canvasMap( QwtPlot::yLeft ).i1();
+ int iyMax = myPlot->canvasMap( QwtPlot::yLeft ).i2();
+ double xMin = myPlot->invTransform(QwtPlot::xBottom, ixMin);
+ double xMax = myPlot->invTransform(QwtPlot::xBottom, ixMax);
+ double yMin = myPlot->invTransform(QwtPlot::yLeft, iyMin);
+ double yMax = myPlot->invTransform(QwtPlot::yLeft, iyMax);
+ double y2Min = 0;
+ double y2Max = 0;
+ if (mySecondY) {
+ int iyMin = myPlot->canvasMap( QwtPlot::yRight ).i1();
+ int iyMax = myPlot->canvasMap( QwtPlot::yRight ).i2();
+ y2Min = myPlot->invTransform(QwtPlot::yRight, iyMin);
+ y2Max = myPlot->invTransform(QwtPlot::yRight, iyMax);
+ }
dlg->setRange( xMin, xMax, yMin, yMax, y2Min, y2Max );
if ( dlg->exec() == QDialog::Accepted ) {
int mode = dlg->getRange( xMin, xMax, yMin, yMax, y2Min, y2Max );
- fitData(mode,xMin,xMax,yMin,yMax,y2Min,y2Max);
+ if ( mode == 0 || mode == 2 ) {
+ myPlot->setAxisScale( QwtPlot::yLeft, yMax, yMin );
+ if (mySecondY)
+ myPlot->setAxisScale( QwtPlot::yRight, y2Max, y2Min );
+ }
+ if ( mode == 0 || mode == 1 )
+ myPlot->setAxisScale( QwtPlot::xBottom, xMin, xMax );
+ myPlot->replot();
}
delete dlg;
}