00001 #ifndef _WINC_XSECTION
00002 #define _WINC_XSECTION
00003
00004 #include <WXP/Plot.h>
00005 #include <WXP/Rect.h>
00006 #include <WXP/Strings.h>
00007
00008 namespace WXP {
00009 class XSection {
00010 Rect view;
00011 float xmin, xmax, xinc;
00012 float pmin, pmax, pinc;
00013 Strings labels;
00014 float dist[50];
00015
00016 public:
00017 XSection();
00018 int setView( Rect view );
00019 int setVertAxis( float rmin, float rmax, float rinc );
00020 int setHorAxis( float rmin, float rmax );
00021 int setLabels( Strings &labs );
00022 int setHorDist( int i, float val );
00023 float pcoord( float p );
00024 float getX( float x );
00025 float getX( int ind );
00026 float getY( float y );
00027
00028 int plotGrid( Plot &plot );
00029 };
00030 }
00031 #endif