SetProperty.h

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------
00002  *    Graphic library 
00003  *    Copyright INRIA
00004  *    newGraph Library header
00005  *    Matthieu PHILIPPE,   INRIA 2001-2002
00006  *    Djalel ABDEMOUCHE,   INRIA 2002-2004
00007  *    Fabrice Leray,       INRIA 2004-2006
00008  *    Jean-Baptiste SILVY, INRIA 2005-xxxx
00009  *    Comment:
00010  *    -This file contains all functions used to SET the properties of graphics
00011  *    objects.
00012  *    - there are two kinds of functions : the sciInit*** which only set an object
00013  *      property and sciSet*** which do the same work but check before if it is
00014  *      necessary to do so.
00015  *    - The returning status of each functions is as follow :
00016  *      0 for correct execution, 1 if no change was made
00017  *      and -1 if an error occured.
00018  --------------------------------------------------------------------------*/
00019 
00020 
00021 #include "ObjectStructure.h"
00022 #include "HandleManagement.h"
00023 /* #include "GraphicGlobals.h" */
00024 
00025 
00026 #ifndef __SCI_SET_PROPERTY__
00027 #define __SCI_SET_PROPERTY__
00028 
00029 extern void Obj_RedrawNewAngle(sciPointObj *psubwin,double theta,double alpha); /* SET  */
00030 
00031 extern int sciSetEntityType (sciPointObj * pobj, sciEntityType value); /* SET */
00032 extern int sciSetColormap (sciPointObj * pobj, double *rgbmat,
00033                            integer m, integer n); /* SET */
00034 extern int sciInitNumColors( sciPointObj * pobj, int numcolors ) ; /* SET */
00035 extern int sciSetNumColors ( sciPointObj * pobj, int numcolors ) ; /* SET */
00036 
00037 extern int sciSetGoodIndex(sciPointObj * pobj, int colorindex);  /* SET */
00038 extern void sciRecursiveUpdateBaW(sciPointObj *pobj, int old_m, int m);  /* SET */
00039 extern int sciUpdateBaW (sciPointObj * pobj, int flag, int value ) ; /* SET */
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 ) ; /* SET */
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 ) ; /* SET */
00048 
00049 extern int sciInitLineWidth( sciPointObj * pobj, int linewidth ) ;
00050 extern int sciSetLineWidth ( sciPointObj * pobj, int linewidth ) ;  /* SET */
00051 
00052 extern int sciInitIsLine(sciPointObj * pobj, BOOL isline);
00053 extern int sciSetIsLine (sciPointObj * pobj, BOOL isline);  /* SET */
00054 
00055 extern int sciInitLineStyle( sciPointObj * pobj, int linestyle ) ;
00056 extern int sciSetLineStyle ( sciPointObj * pobj, int linestyle ) ; /* SET */
00057 
00058 extern int sciInitIsMark(sciPointObj * pobj, BOOL ismark);  /* SET */
00059 extern int sciSetIsMark (sciPointObj * pobj, BOOL ismark);  /* SET */
00060 
00061 extern int sciInitIsFilled(sciPointObj * pobj, BOOL isfilled);
00062 extern int sciSetIsFilled (sciPointObj * pobj, BOOL isfilled);  /* SET */
00063 
00064 extern int sciInitMarkStyle(sciPointObj * pobj, int markstyle);
00065 extern int sciSetMarkStyle (sciPointObj * pobj, int markstyle); /* SET */
00066 
00067 extern int sciInitMarkSize(sciPointObj * pobj, int marksize);
00068 extern int sciSetMarkSize (sciPointObj * pobj, int marksize); /* SET */
00069 
00070 extern int sciInitMarkSizeUnit(sciPointObj * pobj, int marksizeunit);
00071 extern int sciSetMarkSizeUnit (sciPointObj * pobj, int marksizeunit); /* SET */
00072 
00073 extern int sciInitMarkBackground(sciPointObj * pobj, int colorindex);
00074 extern int sciSetMarkBackground (sciPointObj * pobj, int colorindex);  /* SET */
00075 
00076 extern int sciInitMarkForeground(sciPointObj * pobj, int colorindex);
00077 extern int sciSetMarkForeground (sciPointObj * pobj, int colorindex);  /* SET */
00078 
00079 extern int sciInitFillStyle(sciPointObj * pobj, int fillstyle);
00080 extern int sciSetFillStyle (sciPointObj * pobj, int fillstyle); /* SET */
00081 
00082 extern int sciInitBoxType( sciPointObj * pobj, EAxesBoxType type ) ;
00083 extern int sciSetBoxType ( sciPointObj * pobj, EAxesBoxType type ) ; /* SET */
00084 
00085 extern int sciInitIsBoxed(sciPointObj * pobj, BOOL isboxed);
00086 extern int sciSetIsBoxed (sciPointObj * pobj, BOOL isboxed); /* SET */
00087 /* extern int sciSetIsInterpShaded (sciPointObj * pobj, BOOL isinterpshaded); /\* SET *\/ */
00088 
00089 /* Text Functions */
00090 extern int sciInitFontDeciWidth(sciPointObj * pobj, int fontdeciwidth);
00091 extern int sciSetFontDeciWidth (sciPointObj * pobj, int fontdeciwidth); /* SET */
00092 
00093 extern int sciInitFontOrientation(sciPointObj * pobj, int textorientation); /* SET */
00094 extern int sciSetFontOrientation (sciPointObj * pobj, int textorientation); /* SET */
00095 
00096 extern int sciSetStrings( sciPointObj * pobj, const StringMatrix * pStrings ) ; /* SET */
00097 extern int sciSetText (   sciPointObj * pobj, char ** text, int nbRow, int nbCol ) ; /* SET */
00098 
00099 extern int sciInitFontBackground(sciPointObj * pobj, int color);
00100 extern int sciSetFontBackground (sciPointObj * pobj, int color); /* SET */
00101 
00102 extern int sciInitFontForeground(sciPointObj * pobj, int colorindex ) ;
00103 extern int sciSetFontForeground (sciPointObj * pobj, int colorindex ) ; /* SET */
00104 
00105 extern int sciInitFontStyle(sciPointObj * pobj, int iAttributes ) ;
00106 extern int sciSetFontStyle (sciPointObj * pobj, int iAttributes ) ; /* SET */
00107 
00108 extern int sciSetFontName (sciPointObj * pobj, char pfontname[], int n); /* SET */
00109 
00110 extern int sciInitTextPosX(sciPointObj * pobj, double x);
00111 extern int sciSetTextPosX (sciPointObj * pobj, double x); /* SET */
00112 
00113 extern int sciInitTextPosY(sciPointObj * pobj, double y);
00114 extern int sciSetTextPosY (sciPointObj * pobj, double y); /* SET */
00115 
00116 /*Title Functions */
00117 extern int sciSetTitlePos (sciPointObj * pobj, int x, int y); /* SET */
00118 extern int sciSetTitlePlace (sciPointObj * pobj, sciTitlePlace place); /* SET */
00119 
00120 /* Legend */
00121 extern int sciInitLegendPlace(sciPointObj * pobj, sciLegendPlace place);
00122 extern int sciSetLegendPlace (sciPointObj * pobj, sciLegendPlace place); /* SET */
00123 
00124 extern int sciInitLegendPos(sciPointObj * pobj, int x, int y);
00125 extern int sciSetLegendPos (sciPointObj * pobj, int x, int y); /* SET */
00126 
00127 /* GMODE */
00128 extern int sciInitIsClipping(sciPointObj * pobj, int value) ;
00129 extern int sciSetIsClipping (sciPointObj * pobj, int value); /* SET */
00130 
00131 extern int sciSetClipping (sciPointObj * pobj, double pclip[4] ); /* SET */
00132 
00133 extern int sciInitHighLight(sciPointObj * pobj, BOOL value);
00134 extern int sciSetHighLight (sciPointObj * pobj, BOOL value); /* SET */
00135 
00136 extern int sciInitAddPlot (sciPointObj * pobj, BOOL value);
00137 extern int sciSetAddPlot (sciPointObj * pobj, BOOL value); /* SET */
00138 
00139 extern int sciInitAutoScale(sciPointObj * pobj, BOOL value);
00140 extern int sciSetAutoScale (sciPointObj * pobj, BOOL value); /* SET */
00141 
00142 extern int sciInitZooming(sciPointObj * pobj, BOOL value);
00143 extern int sciSetZooming (sciPointObj * pobj, BOOL value); /* SET */
00144 
00145 extern int sciInitXorMode(sciPointObj * pobj, int value);
00146 extern int sciSetXorMode (sciPointObj * pobj, int value); /* SET */
00147 
00148 extern int sciInitVisibility (sciPointObj * pobj, BOOL value);
00149 extern int sciSetVisibility (sciPointObj * pobj, BOOL value); /* SET */
00150 
00151 extern int sciInitResize(sciPointObj * pobj, BOOL value);
00152 extern int sciSetResize (sciPointObj * pobj, BOOL value); /* SET */
00153 
00154 extern int sciSetDefaultValues (void); /* SET */
00155 
00156 
00157 /* Window Functions */
00158 extern int sciSetName (sciPointObj * pobj, char *pvalue, int length); /* SET */
00159 extern int sciInitNum( sciPointObj * pobj, int * value ) ;
00160 extern int sciSetNum ( sciPointObj * pobj, int * value ) ; /* SET */
00161 
00162 extern int sciInitDim(sciPointObj * pobj, int * pwidth, int * pheight) ;
00163 extern int sciSetDim (sciPointObj * pobj, int * pwidth, int * pheight) ; /* SET */
00164 
00165 extern int sciInitScreenPosition(sciPointObj * pobj, int pposx, int pposy);
00166 extern int sciSetScreenPosition(sciPointObj * pobj, int pposx, int pposy); /* SET */
00167 
00168 extern int sciInitFigureIconify(sciPointObj * pobj, BOOL value);
00169 extern int sciSetFigureIconify (sciPointObj * pobj, BOOL value); /* SET */
00170 
00171 extern int sciInitSubWindowPos(sciPointObj * pobj, int *x, int *y);
00172 extern int sciSetSubWindowPos (sciPointObj * pobj, int *x, int *y); /* SET */
00173 
00174 extern void sciSelectFirstSubwin( sciPointObj * parentFigure ) ; /* SET */
00175 
00176 extern int sciInitSelectedSubWin (sciPointObj * psubwinobj);
00177 extern int sciSetSelectedSubWin (sciPointObj * psubwinobj); /* SET */
00178 
00179 extern int sciSetOriginalSubWin (sciPointObj * pfigure, sciPointObj * psubwin); /* SET */
00180 
00181 extern int sciInitCurrentFigure(sciPointObj * mafigure);
00182 extern int sciSetCurrentFigure (sciPointObj * mafigure); /* SET */
00183 
00184 extern int sciSetReplay (BOOL value); /* SET */
00185 /* extern int sciSetHDC (sciPointObj * pobj); /\* SET *\/ /\* unused?? *\/ */
00186 extern int sciSetPoint(sciPointObj * pthis, double *tab, int *numrow, int *numcol); /* SET */
00187 
00188 extern int sciSetdrawmode(BOOL mode); /* SET */
00189 extern int sciSwitchWindow(int *winnum); /* SET */
00190 
00191 extern int sciInitUsedWindow( int winNum ) ; /* SET */
00192 extern int sciSetUsedWindow( int winNum ) ; /* SET */
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); /* SET */
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 ) ; /* SET */
00233 
00234 int sciInitViewport( sciPointObj * pObj, int xSize, int ySize ) ;
00235 int sciSetViewport(  sciPointObj * pObj, int xSize, int ySize ) ; /* SET */
00236 
00237 int sciSetInfoMessage( sciPointObj * pObj, const char * newMessage ) ; /* SET */
00238 
00239 /*---------------------------------------------------------------------------*/
00240 /* return 0 if the string contains any % character, 1 if a %d has been found */
00241 /* and -1 otherwise. */
00242 extern int checkPercent( char * string ) ;
00243 /*---------------------------------------------------------------------------*/
00244 
00245 
00246 #endif /* __SCI_SET_PROPERTY__ */

Generated on Sun Mar 4 15:03:50 2007 for Scilab [trunk] by  doxygen 1.5.1