00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __SCI_AXES_H__
00009 #define __SCI_AXES_H__
00010
00011 #include "ObjectStructure.h"
00012
00013
00014
00015
00016 BOOL CheckDisplay( double fact_h, double fact_w, char logflag, char *foo,int *posi,int *fontid,int *old_rect) ;
00017
00018
00019
00020
00021
00022
00023
00024
00025 BOOL IsInsideRectangle(int * rect, int *point) ;
00026
00027
00028
00029 void getTicksLabelBox( double fact_h ,
00030 double fact_w ,
00031 char * label ,
00032 int pos[2] ,
00033 int fontId[2],
00034 char logflag ,
00035 int bbox[4] ,
00036 BOOL changeFont ) ;
00037
00038
00039 BOOL checkXAxes2dTics( sciPointObj * psubwin ,
00040 char side ,
00041 double y ,
00042 char * cFormat ,
00043 int fontId[2],
00044 int smallersize ) ;
00045
00046
00047 BOOL checkYAxes2dTics( sciPointObj * psubwin ,
00048 char side ,
00049 double x ,
00050 char * cFormat ,
00051 int fontId[2],
00052 int smallersize ) ;
00053
00054
00055 void updateXaxesTics( sciPointObj * psubwin ,
00056 char side ,
00057 double y ,
00058 int fontId[2],
00059 int smallersize ) ;
00060
00061 void updateYaxesTics( sciPointObj * psubwin ,
00062 char side ,
00063 double x ,
00064 int fontId[2],
00065 int smallersize ) ;
00066
00067
00068
00069 void removeBadTicks( double * ticks, BOOL * removedTicks, int * nbTicks ) ;
00070
00071
00072
00073 void removeIndex( double * changedArray, int size, int ind ) ;
00074
00075
00076 void findFormat( sciPointObj * pSubWin, char formatX[5], char formatY[5] ) ;
00077
00078
00079
00080
00081
00082
00083 void clearSubWin( sciPointObj * pSubWin ) ;
00084
00085
00086 void reinitSubWin( sciPointObj * pSubWin ) ;
00087
00088
00089 void initSubWinAngles( sciPointObj * pSubWin ) ;
00090
00091
00092 void initSubWinSize( sciPointObj * pSubWin ) ;
00093
00094
00095 void initSubWinBounds( sciPointObj * pSubWin ) ;
00096
00097
00098
00099 BOOL checkRedrawing( void ) ;
00100
00101
00106 void updateSubWinScale( sciPointObj * pSubWin ) ;
00107
00112 void updateScaleIfRequired( sciPointObj * pSubWin ) ;
00113
00117 void drawAxesGrid( sciPointObj * psubwin ) ;
00118
00119 extern void axis_3ddraw(sciPointObj *pobj, double *xbox, double *ybox, double *zbox, integer *InsideU, integer *InsideD);
00120 extern void triedre(sciPointObj *pobj, double *xbox, double *ybox, double *zbox, integer *InsideU, integer *InsideD);
00121 void DrawAxesBackground( void ) ;
00122 int labels2D_draw( sciPointObj * psubwin ) ;
00123 void rebuild_strflag( sciPointObj * psubwin, char * STRFLAG) ;
00124 void axis_draw2(char strflag[]) ;
00125 void Sci_Axis(char pos, char xy_type, double *x, int *nx, double *y, int *ny,
00126 char *str[], int subtics, char *format, int fontsize, int textcolor,
00127 int fontstyle, int ticscolor, char logflag, int seg_flag, int axisbuild_flag) ;
00132 void DrawAxis(double xbox[8], double ybox[8], integer Indices[4], integer style) ;
00133
00137 int Axes3dStrings2( integer * ixbox, integer * iybox, integer * xind ) ;
00138
00139
00140
00141 #endif