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
|
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 1998 - 2001 - ENPC - Jean-Philipe Chancelier
* Copyright (C) 2006 - 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.1-en.txt
*
*/
/*------------------------------------------------------------------------
* Graphic library
* Axis drawing for 2d plots (format selection)
--------------------------------------------------------------------------*/
#ifndef _FORMAT_H_
#define _FORMAT_H_
#include "dynlib_graphics.h"
#include "machine.h" /* C2F */
#include "StringMatrix.h"
/**
* @TODO add comment
*
* @param xmi
* @param xma
* @param xi
* @param xa
* @param np1
* @param np2
* @param kminr
* @param kmaxr
* @param ar
* @return <ReturnValue>
*/
GRAPHICS_IMPEXP int C2F(graduate)(double *xmi, double *xma, double *xi, double *xa, int *np1, int *np2, int *kminr, int *kmaxr, int *ar);
/**
* @TODO add comment
*
* @param pobjUID
* @param c_format
* @return <ReturnValue>
*/
GRAPHICS_IMPEXP int ComputeC_format(int iObjUID, char * c_format);
/**
* @TODO add comment
*
* @param pobjUID
* @param xy_type
* @param vector
* @param N
* @param checkdim
* @return <ReturnValue>
*/
GRAPHICS_IMPEXP int ComputeXIntervals(int iObj, char xy_type, double ** vector, int * N, int checkdim);
/**
* @TODO add comment
*
* @param pobjUID
* @return <ReturnValue>
*/
GRAPHICS_IMPEXP StringMatrix * computeDefaultTicsLabels(int iObj);
/**
* same as ChoixFormatE when numbers are given through an
* array xx[0:nx-1];
*/
GRAPHICS_IMPEXP void ChoixFormatE1(char *fmt, double *xx, int nx);
/**
* Create a new string array which is the conversion of the doubles values.
* @param bufferSize size of the buffer used to store the store before the copying
* it to the result. It must greater than the length of any of the strings.
* and ideally the maximum length.
*/
GRAPHICS_IMPEXP char ** copyFormatedArray(const double values[], int nbStrings, const char format[5], int bufferSize);
/**
* @TODO add comment
*
* @param void
* @return <ReturnValue>
*/
GRAPHICS_IMPEXP char * getFPF(void);
GRAPHICS_IMPEXP int sciGetLogExponent(double minBound, double maxBound, double* expMin, double* expMax);
#endif /* _FORMAT_H_ */
|