Remove xor (Space Sheriff Gavan) graphic object attribute.
[scilab.git] / scilab / modules / graphics / includes / GetProperty.h
1 /*
2  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  * Copyright (C) 2001 - 2002 - INRIA - Mathieu Philipe
4  * Copyright (C) 2002 - 2004 - INRIA - Djalel Abdemouche
5  * Copyright (C) 2004 - 2006 - INRIA - Fabrice Leray
6  * Copyright (C) 2005 - INRIA - Jean-Baptiste Silvy
7  * Copyright (C) 2010 - Paul Griffiths
8  * Copyright (C) 2011 - DIGITEO - Bruno JOFRET
9  *
10  * This file must be used under the terms of the CeCILL.
11  * This source file is licensed as described in the file COPYING, which
12  * you should have received as part of this distribution.  The terms
13  * are also available at
14  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
15  *
16  */
17
18 /*------------------------------------------------------------------------
19  *    Graphic library
20  *    newGraph Library header
21  *    Comment:
22  *    This file contains all functions used to GET the properties of graphics
23  *    objects.
24  --------------------------------------------------------------------------*/
25
26
27
28 #ifndef __SCI_GET_PROPERTY__
29 #define __SCI_GET_PROPERTY__
30
31 #include "dynlib_graphics.h"
32 #include "ObjectStructure.h"
33 #include "StringMatrix.h"
34 #include "BOOL.h"
35
36 GRAPHICS_IMPEXP void sciGetPointerToUserData (sciPointObj * pobj,int ***user_data_ptr, int **size_ptr); /* GET */
37 GRAPHICS_IMPEXP sciEntityType sciGetEntityType (sciPointObj * pobj);  /* GET */
38
39 /* Graphic Context Functions */
40 GRAPHICS_IMPEXP sciGraphicContext *sciGetGraphicContext (sciPointObj * pobj); /* GET */
41 GRAPHICS_IMPEXP int sciGetNumColors (char* pobjUID); /* GET */
42 GRAPHICS_IMPEXP int sciGetColormap (sciPointObj * pobj, double rgbmat[] ); /* GET */
43 GRAPHICS_IMPEXP int sciGetGoodIndex(sciPointObj * pobj, int colorindex);  /* GET */
44
45 GRAPHICS_IMPEXP int sciGetForegroundToDisplay (sciPointObj * pobj); /* GET */
46 GRAPHICS_IMPEXP int sciGetBackgroundToDisplay (sciPointObj * pobj); /* GET */
47
48 GRAPHICS_IMPEXP int sciGetBackground (sciPointObj * pobj); /* GET */
49 GRAPHICS_IMPEXP int sciGetForeground (sciPointObj * pobj); /* GET */
50 GRAPHICS_IMPEXP double sciGetLineWidth (sciPointObj * pobj); /* GET */
51 GRAPHICS_IMPEXP BOOL sciGetIsLine (sciPointObj * pobj); /* GET */
52 GRAPHICS_IMPEXP BOOL sciGetIsDisplayingLines(sciPointObj * pObj);
53 GRAPHICS_IMPEXP int sciGetLineStyle (sciPointObj * pobj); /* GET */
54 GRAPHICS_IMPEXP BOOL sciGetIsMark (sciPointObj * pobj); /* GET */
55 GRAPHICS_IMPEXP BOOL sciGetIsFilled (sciPointObj * pobj); /* GET */
56 GRAPHICS_IMPEXP double sciGetArrowSize (sciPointObj * pobj); /* GET */
57
58 GRAPHICS_IMPEXP EAxesBoxType sciGetBoxType( sciPointObj * pobj ) ; /* GET */
59 GRAPHICS_IMPEXP BOOL sciGetIsBoxed (sciPointObj * pobj); /* GET */
60 GRAPHICS_IMPEXP int sciGetMarkStyle (sciPointObj * pobj); /* GET */
61 GRAPHICS_IMPEXP int sciGetMarkSize (sciPointObj * pobj); /* GET */
62 GRAPHICS_IMPEXP int sciGetMarkSizeUnit (sciPointObj * pobj); /* GET */
63
64 /* Text Functions */
65 GRAPHICS_IMPEXP sciFont *sciGetFontContext (sciPointObj * pobj);  /* GET */
66 GRAPHICS_IMPEXP double sciGetFontSize(char * pobjUID); /* GET */
67 GRAPHICS_IMPEXP double sciGetFontOrientation (sciPointObj * pobj); /* GET */
68 GRAPHICS_IMPEXP StringMatrix * sciGetText (sciPointObj * pobj); /* GET */
69 GRAPHICS_IMPEXP void sciGetTextSize( sciPointObj * pobj, int * nbRow, int * nbCol ) ; /* GET */
70 GRAPHICS_IMPEXP BOOL sciisTextEmpty(char* identifier);
71 GRAPHICS_IMPEXP unsigned int sciGetTextLength (sciPointObj * pobj); /* GET */
72
73 GRAPHICS_IMPEXP int sciGetFontBackground (sciPointObj * pobj); /* GET */
74 GRAPHICS_IMPEXP int sciGetFontForeground (sciPointObj * pobj); /* GET */
75 GRAPHICS_IMPEXP int sciGetMarkBackground (sciPointObj * pobj); /* GET */
76 GRAPHICS_IMPEXP int sciGetMarkForeground (sciPointObj * pobj); /* GET */
77 /* F.Leray 09.04.04*/
78 GRAPHICS_IMPEXP int sciGetFontBackgroundToDisplay (sciPointObj * pobj); /* GET */
79 GRAPHICS_IMPEXP int sciGetFontForegroundToDisplay (sciPointObj * pobj); /* GET */
80 GRAPHICS_IMPEXP int sciGetMarkBackgroundToDisplay (sciPointObj * pobj); /* GET */
81 GRAPHICS_IMPEXP int sciGetMarkForegroundToDisplay (sciPointObj * pobj); /* GET */
82
83 GRAPHICS_IMPEXP int sciGetFontStyle (sciPointObj * pobj); /* GET */
84
85 /* Legend */
86 GRAPHICS_IMPEXP sciLegendPlace sciGetLegendPlace (sciPointObj * pobj);
87 GRAPHICS_IMPEXP void sciGetLegendPos (sciPointObj * pobj , double position[]);
88
89 /* Figure / Subwin main functions */
90 GRAPHICS_IMPEXP sciPointObj *sciGetParentFigure (sciPointObj * pobj); /* GET */
91 GRAPHICS_IMPEXP sciPointObj *sciGetParentSubwin (sciPointObj * pobj); /* GET */
92 GRAPHICS_IMPEXP int sciGetNumFigure (sciPointObj * pobj); /* GET */
93
94 /* GMODE */
95 GRAPHICS_IMPEXP scigMode *sciGetGraphicMode (sciPointObj * pobj);  /* GET */
96 GRAPHICS_IMPEXP int sciGetIsClipRegionValuated (sciPointObj * pobj);
97 GRAPHICS_IMPEXP int sciGetIsClipping (sciPointObj * pobj); /* GET */
98 GRAPHICS_IMPEXP double *sciGetClipping (sciPointObj * pobj); /* GET */
99 GRAPHICS_IMPEXP BOOL sciGetAddPlot (sciPointObj * pobj);  /* GET */
100 GRAPHICS_IMPEXP BOOL sciGetAutoScale (sciPointObj * pobj);  /* GET */
101 GRAPHICS_IMPEXP BOOL sciGetZooming (sciPointObj * pobj);  /* GET */
102 GRAPHICS_IMPEXP BOOL sciGetRealVisibility (sciPointObj * pobj) ; /* GET */
103 GRAPHICS_IMPEXP BOOL sciGetVisibility (sciPointObj * pobj);  /* GET */
104 GRAPHICS_IMPEXP BOOL sciGetResize (sciPointObj * pobj);  /* GET */
105
106
107 /* Window Functions */
108 GRAPHICS_IMPEXP char *sciGetName (sciPointObj * pobj);  /* GET */
109 GRAPHICS_IMPEXP int sciGetNum (sciPointObj * pobj);  /* GET */
110 GRAPHICS_IMPEXP int sciGetWidth (sciPointObj * pobj);   /* GET */
111 GRAPHICS_IMPEXP int sciGetHeight (sciPointObj * pobj);  /* GET */
112 GRAPHICS_IMPEXP void sciGetDim( sciPointObj * pobj, int * pWidth, int * pHeight ) ; /* GET */
113 GRAPHICS_IMPEXP int sciGetWindowWidth(sciPointObj * pObj) ; /* GET */
114 GRAPHICS_IMPEXP int sciGetWindowHeight(sciPointObj * pObj) ; /* GET */
115 GRAPHICS_IMPEXP sciPointObj *sciIsExistingSubWin (double *WRect); /* GET */ /* WARNING special case here */
116
117
118 GRAPHICS_IMPEXP double *sciGetPoint (char * pthis, int *num, int *numco); /* GET */
119
120 GRAPHICS_IMPEXP BOOL sciGetdrawmode (sciPointObj *pobj); /* GET */
121 GRAPHICS_IMPEXP sciPointObj *sciGetAxes (sciPointObj *pparentfigure,sciPointObj *psubwin); /* GET */
122
123
124 GRAPHICS_IMPEXP int sciType (char *marker, sciPointObj *pobj); /* GET */
125
126 GRAPHICS_IMPEXP sciPointObj *sciGetSurface(sciPointObj *psubwin); /* GET */
127
128 GRAPHICS_IMPEXP char sciGetxLocation(sciPointObj * pObj);
129 GRAPHICS_IMPEXP char sciGetyLocation(sciPointObj * pObj);
130
131
132 /* UNUSED ? */
133 GRAPHICS_IMPEXP sciPointObj *sciGetOriginalSubWin (sciPointObj * pfigure);
134
135 GRAPHICS_IMPEXP int * sciGetInterpVector(sciPointObj * pobj); /* GET */
136 GRAPHICS_IMPEXP BOOL sciGetIsColorInterpolated(sciPointObj * pobj); /* GET */
137
138 GRAPHICS_IMPEXP BOOL sciGetAutoRotation ( sciPointObj * pObj ) ;
139 GRAPHICS_IMPEXP BOOL sciGetAutoPosition ( sciPointObj * pObj ) ;
140
141 GRAPHICS_IMPEXP BOOL sciGetCenterPos( sciPointObj * pObj ) ;
142
143 GRAPHICS_IMPEXP BOOL sciGetIs3d( sciPointObj * pObj ) ;
144
145 /**
146  * for a subwindow object, return if the its labels (x,y,z) are all
147  *       empty or not.
148  * @param pObjUID the subwindow's identifier.
149  */
150 GRAPHICS_IMPEXP BOOL sciGetLegendDefined(char * pObjUID);
151
152 GRAPHICS_IMPEXP BOOL sciGetAutoSize( sciPointObj * pObj ) ;
153 GRAPHICS_IMPEXP sciTextAlignment sciGetAlignment( sciPointObj * pObj ) ;
154 GRAPHICS_IMPEXP void sciGetUserSize( sciPointObj * pObj, double * width, double * height ) ;
155
156 GRAPHICS_IMPEXP int sciGetNbChildren( sciPointObj * pObj ) ; /* GET */
157
158 GRAPHICS_IMPEXP BOOL sciGetIsAccessibleChild( sciPointObj * pObj ) ; /* GET */
159
160 GRAPHICS_IMPEXP BOOL GetHandleVisibilityOnUimenu( sciPointObj * pobj ) ; /* GET */
161
162 GRAPHICS_IMPEXP int sciGetNbTypedObjects( sciPointObj * pObj, sciEntityType type ) ;
163
164 GRAPHICS_IMPEXP int sciGetHiddenColor( sciPointObj * pObj ) ; /* GET */
165
166 GRAPHICS_IMPEXP int sciGetHiddenAxisColor( sciPointObj * pObj ) ; /* GET */
167
168 GRAPHICS_IMPEXP BOOL sciGetIsAutoDrawable( sciPointObj * pobj ) ;
169 GRAPHICS_IMPEXP BOOL sciGetImmediateDrawingMode( sciPointObj * pobj ) ;
170
171
172 GRAPHICS_IMPEXP void sciGetGridStyle( sciPointObj * pObj, int * xStyle, int * yStyle, int * zStyle ) ;
173
174 GRAPHICS_IMPEXP void sciGetViewport( sciPointObj * pObj, int viewport[4] );
175
176 GRAPHICS_IMPEXP void sciGetInfoMessage( sciPointObj * pObj, char * infoMessage ) ;
177
178 GRAPHICS_IMPEXP int sciGetInfoMessageLength( sciPointObj * pObj ) ;
179
180 GRAPHICS_IMPEXP void sciGetScreenPosition( sciPointObj * pObj, int * posX, int * posY ) ;
181
182 GRAPHICS_IMPEXP BOOL sciGetIsEventHandlerEnable( sciPointObj * pObj ) ;
183 GRAPHICS_IMPEXP char * sciGetEventHandler( sciPointObj * pObj ) ;
184
185 GRAPHICS_IMPEXP double * sciGetAxesBounds( sciPointObj * pObj ) ;
186 GRAPHICS_IMPEXP double * sciGetMargins( sciPointObj * pObj ) ;
187
188 GRAPHICS_IMPEXP void sciGetRealDataBounds( sciPointObj * pObj, double bounds[6] ) ; /* GET */
189 GRAPHICS_IMPEXP void sciGetDataBounds( sciPointObj * pObj, double bounds[6] ) ; /* GET */
190 GRAPHICS_IMPEXP void sciGetDisplayedDataBounds(sciPointObj * pObj, double bounds[6]); /* GET */
191
192 GRAPHICS_IMPEXP void sciGetViewingAngles( sciPointObj * pObj, double * alpha, double * theta) ; /* GET */
193
194 GRAPHICS_IMPEXP void sciGetLogFlags(char *pObjUID, char flags[3]); /* GET */
195
196 GRAPHICS_IMPEXP BOOL sciGetPixmapMode(sciPointObj * pObj); /* GET */
197
198 GRAPHICS_IMPEXP int sciGetNbPoints(sciPointObj * pObj); /* GET */
199
200 GRAPHICS_IMPEXP int sciGetPolylineStyle(sciPointObj * pObj); /* GET */
201
202 GRAPHICS_IMPEXP BOOL sciGetIsClosed(sciPointObj * pObj); /* GET */
203
204 GRAPHICS_IMPEXP void sciGetTextPos(sciPointObj * pObj, double position[3]); /* GET */
205
206 GRAPHICS_IMPEXP void sciGetPixelCoordinate(sciPointObj * pObj, const double userCoord[3], int pixCoord[2]); /* GET */
207
208 GRAPHICS_IMPEXP void sciGet2dViewCoordinate(sciPointObj * pObj, const double userCoords3D[3], double userCoords2D[2]); /* GET */
209
210 GRAPHICS_IMPEXP void sciGet2dViewCoordFromPixel(sciPointObj * pObj, const int pixelCoords[2], double userCoords2D[2]); /* GET */
211
212 GRAPHICS_IMPEXP void sciGet2dViewPixelCoordinates(sciPointObj * pObj, const double userCoords2D[2], int pixelCoords[2]); /* GET */
213
214 GRAPHICS_IMPEXP BOOL sciGetIsIsoView(sciPointObj * pObj); /* GET */
215
216 GRAPHICS_IMPEXP BOOL sciGetIsCubeScaled(sciPointObj * pObj); /* GET */
217
218 GRAPHICS_IMPEXP void sciGetAxesReverse(sciPointObj * pObj, BOOL axesReverse[3]); /* GET */
219
220 GRAPHICS_IMPEXP BOOL sciGetTightLimitsOn(sciPointObj * pObj); /* GET */
221
222 GRAPHICS_IMPEXP void sciGetAutoTicks(sciPointObj * pObj, BOOL autoTicks[3]); /* GET */
223
224 GRAPHICS_IMPEXP BOOL sciGetAutoSubticks(sciPointObj * pObj); /* GET */
225
226 GRAPHICS_IMPEXP void sciGetNbSubTics(sciPointObj * pObj, int nbsubtics[3]); /* GET */
227
228 GRAPHICS_IMPEXP void sciGetAxesVisible(sciPointObj * pObj, BOOL axesVisible[3]); /* GET */
229
230 GRAPHICS_IMPEXP void sciGetZoomBox(sciPointObj * pObj, double zoomBox[6]); /* GET */
231
232 GRAPHICS_IMPEXP void sciGet2dViewBoundingBox(sciPointObj * pObj, double corner1[2], double corner2[2],
233                              double corner3[2], double corner4[2]); /* GET */
234
235 GRAPHICS_IMPEXP void sciGetTextBoundingBox(sciPointObj * pObj, double corner1[3], double corner2[3],
236                            double corner3[3], double corner4[3]); /* GET */
237
238 GRAPHICS_IMPEXP void sciGetPixelBoundingBox(sciPointObj * pObj, int corner1[2], int corner2[2],
239                             int corner3[2], int corner4[2]); /* GET */
240
241 GRAPHICS_IMPEXP void sciGetViewingArea(sciPointObj * pObj, int * xPos, int * yPos, int * width, int * height); /* GET */
242
243 GRAPHICS_IMPEXP void sciGetAABoundingBox(sciPointObj * pObj, double bounds[6]); /* GET */
244
245 GRAPHICS_IMPEXP BOOL sciGetUseNurbs(sciPointObj * pObj); /* GET */
246
247 GRAPHICS_IMPEXP BOOL sciGetIsUsingFractionalMetrics(sciPointObj * pObj); /* GET */
248
249 GRAPHICS_IMPEXP int sciGetNbXTicks(sciPointObj * pSubwin);
250 GRAPHICS_IMPEXP void sciGetXTicksPos(sciPointObj * pSubwin, double ticksPos[], char ** ticksLabels);
251 GRAPHICS_IMPEXP int sciGetNbYTicks(sciPointObj * pSubwin);
252 GRAPHICS_IMPEXP void sciGetYTicksPos(sciPointObj * pSubwin, double ticksPos[], char ** ticksLabels);
253 GRAPHICS_IMPEXP int sciGetNbZTicks(sciPointObj * pSubwin);
254 GRAPHICS_IMPEXP void sciGetZTicksPos(sciPointObj * pSubwin, double ticksPos[], char ** ticksLabels);
255
256 GRAPHICS_IMPEXP BOOL sciGetIsAbleToCreateWindow(void);
257
258 GRAPHICS_IMPEXP int sciGetSubwinIndex(sciPointObj * pSubwin); /* GET */
259
260 GRAPHICS_IMPEXP BOOL sciIsAutomaticallyRedrawn(sciPointObj * pObj);
261
262 GRAPHICS_IMPEXP void sciGetColorRange(sciPointObj * pObj, int subset[2]); /* GET */
263 GRAPHICS_IMPEXP void sciGetOutsideColor(sciPointObj * pObj, int colors[2]); /* GET */
264 GRAPHICS_IMPEXP void sciGetZBounds(sciPointObj * pObj, double bounds[2]); /* GET */
265
266 GRAPHICS_IMPEXP BOOL sciGetGridFront(sciPointObj * pObj); /* GET */
267
268 GRAPHICS_IMPEXP int sciGetAntialiasingQuality(sciPointObj * pObj); /* GET */
269
270 GRAPHICS_IMPEXP sciLegendPlace sciGetLegendLocation(sciPointObj * pObj); /* GET */
271
272 GRAPHICS_IMPEXP void printSetGetErrorMessage(const char * propertyName);
273
274 GRAPHICS_IMPEXP void sciGetNbSubticks(sciPointObj * pSubwin, double nbsubtics[3]);
275
276 #endif /* __SCI_GET_PROPERTY__ */