1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2001 - 2002 - INRIA - Mathieu Philipe
* Copyright (C) 2002 - 2004 - INRIA - Djalel Abdemouche
* Copyright (C) 2004 - 2006 - INRIA - Fabrice Leray
* Copyright (C) 2005 - INRIA - Jean-Baptiste Silvy
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
*/
/*------------------------------------------------------------------------
* Graphic library
* newGraph Library header
* Comment:
* This file contains all functions used to BUILD new objects :
- allocating memory
- setting default value
- binding the newly created object tyo the entire existing hierarchy
--------------------------------------------------------------------------*/
#ifndef __SCI_BUILD__
#define __SCI_BUILD__
#include "BOOL.h"
#include "ObjectStructure.h"
GRAPHICS_IMPEXP sciPointObj * ConstructFigure (sciPointObj * pparent, int * figureIndex) ;/* BUILD */
GRAPHICS_IMPEXP sciPointObj *ConstructSubWin (sciPointObj * pparentfigure); /* BUILD */
GRAPHICS_IMPEXP sciPointObj * allocateText( sciPointObj * pparentsubwin,
char ** text ,
int nbRow ,
int nbCol ,
double x ,
double y ,
BOOL autoSize ,
double userSize[2] ,
BOOL centerPos ,
int * foreground ,
int * background ,
BOOL isboxed ,
BOOL isline ,
BOOL isfilled ,
sciTextAlignment align ) ;
GRAPHICS_IMPEXP sciPointObj * ConstructText (sciPointObj * pparentsubwin, char ** text, int nbRow, int nbCol, double x,
double y, BOOL autoSize, double userSize[2], BOOL centerPos, int *foreground, int *background,
BOOL isboxed, BOOL isline, BOOL isfilled, sciTextAlignment align ) ;
GRAPHICS_IMPEXP sciPointObj *ConstructLegend (sciPointObj * pparentfigure, char *text[], long long tabofhandles[],
int nblegends); /* BUILD */
GRAPHICS_IMPEXP sciPointObj * allocatePolyline(sciPointObj * pparentsubwin, double *pvecx, double *pvecy, double *pvecz,
int closed, int n1,int plot, int *foreground, int *background,
int *mark_style, int *mark_foreground, int *mark_background,
BOOL isline, BOOL isfilled, BOOL ismark, BOOL isinterpshaded);
GRAPHICS_IMPEXP sciPointObj *ConstructPolyline (sciPointObj * pparentsubwin, double *pvecx, double *pvecy, double *pvecz,
int closed, int n1, int plot, int *foreground, int *background,
int *mark_style, int *mark_foreground, int *mark_background,
BOOL isline, BOOL isfilled, BOOL ismark, BOOL isinterpshaded); /* BUILD */
GRAPHICS_IMPEXP sciPointObj *ConstructArc (sciPointObj * pparentsubwin, double x, double y,
double height, double width, double alphabegin, double alphaend,
int *foreground, int *background, BOOL isfilled, BOOL isline);
GRAPHICS_IMPEXP sciPointObj *ConstructRectangle (sciPointObj * pparentsubwin, double x, double y,
double height, double width, int *foreground, int *background,
int isfilled, int isline);
GRAPHICS_IMPEXP sciPointObj *ConstructSurface (sciPointObj * pparentsubwin, sciTypeOf3D typeof3d,
double * pvecx, double * pvecy, double * pvecz,
double *zcol, int izcol, int dimzx, int dimzy,
int *flag, double *ebox, int flagcolor, int *isfac,
int *m1, int *n1, int *m2, int *n2,
int *m3, int *n3, int *m3n, int *n3n); /* BUILD */
GRAPHICS_IMPEXP sciPointObj *ConstructGrayplot (sciPointObj * pparentfigure,double *vx,double *vy,
double *vz,int nx,int ny, int type); /* BUILD */
GRAPHICS_IMPEXP sciPointObj *ConstructAxes (sciPointObj * pparentsubwin, char dir, char tics, double *vx,
int nx, double *vy, int ny, char *str[], int subint, char *format,
int fontsize, int textcolor, int ticscolor, char logscale, int seg, int nb_tics_labels); /* BUILD */
GRAPHICS_IMPEXP sciPointObj *ConstructFec (sciPointObj * pparentsubwin, double *pvecx, double *pvecy, double *pnoeud,
double *pfun, int Nnode, int Ntr, double *zminmax,
int *colminmax, int *colout, BOOL with_mesh); /* BUILD */
GRAPHICS_IMPEXP sciPointObj *ConstructSegs (sciPointObj * pparentsubwin, int type,double *vx, double *vy, double *vz, int Nbr1,
int Nbr2, int Nbr3, double *vfx, double *vfy, int flag,
int *style, double arsize, int colored, int typeofchamp); /* BUILD */
GRAPHICS_IMPEXP sciPointObj *ConstructCompound (long *tabpointobj, int number); /* BUILD */
GRAPHICS_IMPEXP sciPointObj *ConstructCompoundSeq (int number); /* BUILD */
GRAPHICS_IMPEXP sciPointObj * ConstructLabel (sciPointObj * pparentsubwin, char *text, int type); /* BUILD */
GRAPHICS_IMPEXP sciPointObj * sciStandardBuildOperations( sciPointObj * pObj, sciPointObj * parent ) ;
GRAPHICS_IMPEXP void SciWin(void);
GRAPHICS_IMPEXP sciPointObj * createFullFigure(int * winNum);
GRAPHICS_IMPEXP sciPointObj * createFirstSubwin(sciPointObj * pFigure);
GRAPHICS_IMPEXP void createDefaultRelationShip(sciPointObj * pObj);
GRAPHICS_IMPEXP void initUserData(sciPointObj * pObj);
#endif /* __SCI_BUILD__ */
|