00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "ObjectStructure.h"
00022 #include "HandleManagement.h"
00023
00024
00025
00026 #ifndef __SCI_SET_PROPERTY__
00027 #define __SCI_SET_PROPERTY__
00028
00029 extern void Obj_RedrawNewAngle(sciPointObj *psubwin,double theta,double alpha);
00030
00031 extern int sciSetEntityType (sciPointObj * pobj, sciEntityType value);
00032 extern int sciSetColormap (sciPointObj * pobj, double *rgbmat,
00033 integer m, integer n);
00034 extern int sciInitNumColors( sciPointObj * pobj, int numcolors ) ;
00035 extern int sciSetNumColors ( sciPointObj * pobj, int numcolors ) ;
00036
00037 extern int sciSetGoodIndex(sciPointObj * pobj, int colorindex);
00038 extern void sciRecursiveUpdateBaW(sciPointObj *pobj, int old_m, int m);
00039 extern int sciUpdateBaW (sciPointObj * pobj, int flag, int value ) ;
00040
00041 extern int sciInitMdlBackground( sciPointObj * pobj, int colorIndex ) ;
00042 extern int sciInitBackground( sciPointObj * pobj, int colorindex ) ;
00043 extern int sciSetBackground ( sciPointObj * pobj, int colorindex ) ;
00044
00045 extern int sciInitMdlForeground( sciPointObj * pObj, int colorIndex ) ;
00046 extern int sciInitForeground( sciPointObj * pobj, int colorindex ) ;
00047 extern int sciSetForeground ( sciPointObj * pobj, int colorindex ) ;
00048
00049 extern int sciInitLineWidth( sciPointObj * pobj, int linewidth ) ;
00050 extern int sciSetLineWidth ( sciPointObj * pobj, int linewidth ) ;
00051
00052 extern int sciInitIsLine(sciPointObj * pobj, BOOL isline);
00053 extern int sciSetIsLine (sciPointObj * pobj, BOOL isline);
00054
00055 extern int sciInitLineStyle( sciPointObj * pobj, int linestyle ) ;
00056 extern int sciSetLineStyle ( sciPointObj * pobj, int linestyle ) ;
00057
00058 extern int sciInitIsMark(sciPointObj * pobj, BOOL ismark);
00059 extern int sciSetIsMark (sciPointObj * pobj, BOOL ismark);
00060
00061 extern int sciInitIsFilled(sciPointObj * pobj, BOOL isfilled);
00062 extern int sciSetIsFilled (sciPointObj * pobj, BOOL isfilled);
00063
00064 extern int sciInitMarkStyle(sciPointObj * pobj, int markstyle);
00065 extern int sciSetMarkStyle (sciPointObj * pobj, int markstyle);
00066
00067 extern int sciInitMarkSize(sciPointObj * pobj, int marksize);
00068 extern int sciSetMarkSize (sciPointObj * pobj, int marksize);
00069
00070 extern int sciInitMarkSizeUnit(sciPointObj * pobj, int marksizeunit);
00071 extern int sciSetMarkSizeUnit (sciPointObj * pobj, int marksizeunit);
00072
00073 extern int sciInitMarkBackground(sciPointObj * pobj, int colorindex);
00074 extern int sciSetMarkBackground (sciPointObj * pobj, int colorindex);
00075
00076 extern int sciInitMarkForeground(sciPointObj * pobj, int colorindex);
00077 extern int sciSetMarkForeground (sciPointObj * pobj, int colorindex);
00078
00079 extern int sciInitFillStyle(sciPointObj * pobj, int fillstyle);
00080 extern int sciSetFillStyle (sciPointObj * pobj, int fillstyle);
00081
00082 extern int sciInitBoxType( sciPointObj * pobj, EAxesBoxType type ) ;
00083 extern int sciSetBoxType ( sciPointObj * pobj, EAxesBoxType type ) ;
00084
00085 extern int sciInitIsBoxed(sciPointObj * pobj, BOOL isboxed);
00086 extern int sciSetIsBoxed (sciPointObj * pobj, BOOL isboxed);
00087
00088
00089
00090 extern int sciInitFontDeciWidth(sciPointObj * pobj, int fontdeciwidth);
00091 extern int sciSetFontDeciWidth (sciPointObj * pobj, int fontdeciwidth);
00092
00093 extern int sciInitFontOrientation(sciPointObj * pobj, int textorientation);
00094 extern int sciSetFontOrientation (sciPointObj * pobj, int textorientation);
00095
00096 extern int sciSetStrings( sciPointObj * pobj, const StringMatrix * pStrings ) ;
00097 extern int sciSetText ( sciPointObj * pobj, char ** text, int nbRow, int nbCol ) ;
00098
00099 extern int sciInitFontBackground(sciPointObj * pobj, int color);
00100 extern int sciSetFontBackground (sciPointObj * pobj, int color);
00101
00102 extern int sciInitFontForeground(sciPointObj * pobj, int colorindex ) ;
00103 extern int sciSetFontForeground (sciPointObj * pobj, int colorindex ) ;
00104
00105 extern int sciInitFontStyle(sciPointObj * pobj, int iAttributes ) ;
00106 extern int sciSetFontStyle (sciPointObj * pobj, int iAttributes ) ;
00107
00108 extern int sciSetFontName (sciPointObj * pobj, char pfontname[], int n);
00109
00110 extern int sciInitTextPosX(sciPointObj * pobj, double x);
00111 extern int sciSetTextPosX (sciPointObj * pobj, double x);
00112
00113 extern int sciInitTextPosY(sciPointObj * pobj, double y);
00114 extern int sciSetTextPosY (sciPointObj * pobj, double y);
00115
00116
00117 extern int sciSetTitlePos (sciPointObj * pobj, int x, int y);
00118 extern int sciSetTitlePlace (sciPointObj * pobj, sciTitlePlace place);
00119
00120
00121 extern int sciInitLegendPlace(sciPointObj * pobj, sciLegendPlace place);
00122 extern int sciSetLegendPlace (sciPointObj * pobj, sciLegendPlace place);
00123
00124 extern int sciInitLegendPos(sciPointObj * pobj, int x, int y);
00125 extern int sciSetLegendPos (sciPointObj * pobj, int x, int y);
00126
00127
00128 extern int sciInitIsClipping(sciPointObj * pobj, int value) ;
00129 extern int sciSetIsClipping (sciPointObj * pobj, int value);
00130
00131 extern int sciSetClipping (sciPointObj * pobj, double pclip[4] );
00132
00133 extern int sciInitHighLight(sciPointObj * pobj, BOOL value);
00134 extern int sciSetHighLight (sciPointObj * pobj, BOOL value);
00135
00136 extern int sciInitAddPlot (sciPointObj * pobj, BOOL value);
00137 extern int sciSetAddPlot (sciPointObj * pobj, BOOL value);
00138
00139 extern int sciInitAutoScale(sciPointObj * pobj, BOOL value);
00140 extern int sciSetAutoScale (sciPointObj * pobj, BOOL value);
00141
00142 extern int sciInitZooming(sciPointObj * pobj, BOOL value);
00143 extern int sciSetZooming (sciPointObj * pobj, BOOL value);
00144
00145 extern int sciInitXorMode(sciPointObj * pobj, int value);
00146 extern int sciSetXorMode (sciPointObj * pobj, int value);
00147
00148 extern int sciInitVisibility (sciPointObj * pobj, BOOL value);
00149 extern int sciSetVisibility (sciPointObj * pobj, BOOL value);
00150
00151 extern int sciInitResize(sciPointObj * pobj, BOOL value);
00152 extern int sciSetResize (sciPointObj * pobj, BOOL value);
00153
00154 extern int sciSetDefaultValues (void);
00155
00156
00157
00158 extern int sciSetName (sciPointObj * pobj, char *pvalue, int length);
00159 extern int sciInitNum( sciPointObj * pobj, int * value ) ;
00160 extern int sciSetNum ( sciPointObj * pobj, int * value ) ;
00161
00162 extern int sciInitDim(sciPointObj * pobj, int * pwidth, int * pheight) ;
00163 extern int sciSetDim (sciPointObj * pobj, int * pwidth, int * pheight) ;
00164
00165 extern int sciInitScreenPosition(sciPointObj * pobj, int pposx, int pposy);
00166 extern int sciSetScreenPosition(sciPointObj * pobj, int pposx, int pposy);
00167
00168 extern int sciInitFigureIconify(sciPointObj * pobj, BOOL value);
00169 extern int sciSetFigureIconify (sciPointObj * pobj, BOOL value);
00170
00171 extern int sciInitSubWindowPos(sciPointObj * pobj, int *x, int *y);
00172 extern int sciSetSubWindowPos (sciPointObj * pobj, int *x, int *y);
00173
00174 extern void sciSelectFirstSubwin( sciPointObj * parentFigure ) ;
00175
00176 extern int sciInitSelectedSubWin (sciPointObj * psubwinobj);
00177 extern int sciSetSelectedSubWin (sciPointObj * psubwinobj);
00178
00179 extern int sciSetOriginalSubWin (sciPointObj * pfigure, sciPointObj * psubwin);
00180
00181 extern int sciInitCurrentFigure(sciPointObj * mafigure);
00182 extern int sciSetCurrentFigure (sciPointObj * mafigure);
00183
00184 extern int sciSetReplay (BOOL value);
00185
00186 extern int sciSetPoint(sciPointObj * pthis, double *tab, int *numrow, int *numcol);
00187
00188 extern int sciSetdrawmode(BOOL mode);
00189 extern int sciSwitchWindow(int *winnum);
00190
00191 extern int sciInitUsedWindow( int winNum ) ;
00192 extern int sciSetUsedWindow( int winNum ) ;
00193
00194 extern int sciSetInterpVector(sciPointObj * pobj, int size, int * value);
00195
00196 extern int sciInitPosition( sciPointObj * pobj, double x, double y);
00197 extern int sciSetPosition( sciPointObj * pobj, double x, double y);
00198
00199 extern int sciInitAutoRotation( sciPointObj * pObj, BOOL value ) ;
00200 extern int sciSetAutoRotation ( sciPointObj * pObj, BOOL value ) ;
00201
00202 extern int sciInitAutoPosition( sciPointObj * pObj, BOOL value ) ;
00203 extern int sciSetAutoPosition ( sciPointObj * pObj, BOOL value ) ;
00204
00205 extern int sciInitAutoSize( sciPointObj * pObj, BOOL autoSize ) ;
00206 extern int sciSetAutoSize( sciPointObj * pObj, BOOL autoSize ) ;
00207
00208 extern int sciInitAlignment( sciPointObj * pObj, sciTextAlignment align ) ;
00209 extern int sciSetAlignment( sciPointObj * pObj, sciTextAlignment align ) ;
00210
00211 extern int sciInitUserSize( sciPointObj * pObj, double width, double height ) ;
00212 extern int sciSetUserSize( sciPointObj * pObj, double width, double height ) ;
00213
00214 extern int sciInitCenterPos( sciPointObj * pObj, BOOL newCP ) ;
00215 extern int sciSetCenterPos( sciPointObj * pObj, BOOL newCP ) ;
00216
00217 extern int sciInitIs3d( sciPointObj * pObj, BOOL is3d ) ;
00218 extern int sciSetIs3d( sciPointObj * pObj, BOOL is3d ) ;
00219
00220 extern int sciInitSelectedObject( sciPointObj * pObj ) ;
00221 extern int sciSetSelectObject( sciPointObj * pObj ) ;
00222
00223 extern int sciInitHiddenColor( sciPointObj * pObj, int newColor ) ;
00224 extern int sciSetHiddenColor( sciPointObj * pObj, int newColor ) ;
00225
00226 int setSubWinAngles( sciPointObj *psubwin, double theta, double alpha );
00227 int sciInitdrawmode( BOOL mode );
00228
00229 int sciInitGraphicsStyle( sciPointObj * pobj, BOOL value );
00230
00231 extern int sciInitGridStyle( sciPointObj * pObj, int xStyle, int yStyle, int zStyle ) ;
00232 extern int sciSetGridStyle( sciPointObj * pObj, int xStyle, int yStyle, int zStyle ) ;
00233
00234 int sciInitViewport( sciPointObj * pObj, int xSize, int ySize ) ;
00235 int sciSetViewport( sciPointObj * pObj, int xSize, int ySize ) ;
00236
00237 int sciSetInfoMessage( sciPointObj * pObj, const char * newMessage ) ;
00238
00239
00240
00241
00242 extern int checkPercent( char * string ) ;
00243
00244
00245
00246 #endif