blob: db55544686ab511ab92e5a01cd741cf58e067484 (
plain)
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
|
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* 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
*
*/
/*------------------------------------------------------------------------*/
/* file: DefaultCommandArg.h */
/* desc : access to default values for graphics arguments */
/*------------------------------------------------------------------------*/
#ifndef _DEFAULT_COMMAND_ARG_H_
#define _DEFAULT_COMMAND_ARG_H_
#include "dynlib_graphics.h"
#include "BOOL.h"
/*------------------------------------------------------------------------*/
/* real default */
#define DEFSTRF "081"
#define DEFSTRFN "099"
#define DEFLOGFLAGS "gnn"
/*------------------------------------------------------------------------*/
/* Accessors to to default values */
GRAPHICS_IMPEXP double* getDefRect(void);
GRAPHICS_IMPEXP char* getDefStrf(void);
GRAPHICS_IMPEXP char* getDefLegend(void);
GRAPHICS_IMPEXP double* getDefZminMax(void);
GRAPHICS_IMPEXP int* getDefNax(void);
GRAPHICS_IMPEXP int* getDefColMinMax(void);
GRAPHICS_IMPEXP int* getDefColOut(void);
GRAPHICS_IMPEXP BOOL getDefWithMesh(void);
GRAPHICS_IMPEXP char* getDefLogFlags(void);
/*------------------------------------------------------------------------*/
/* set default values by copying the newDef */
GRAPHICS_IMPEXP void setDefRect(const double newDef[4]);
GRAPHICS_IMPEXP void setDefStrf(const char newDef[4]);
GRAPHICS_IMPEXP void setDefZminMax(const double newDef[2]);
GRAPHICS_IMPEXP void setDefNax(const int newDef[4]);
GRAPHICS_IMPEXP void setDefColMinMax(const int newDef[2]);
GRAPHICS_IMPEXP void setDefColOut(const int newDef[2]);
GRAPHICS_IMPEXP void setDefWithMesh(BOOL newDef);
GRAPHICS_IMPEXP void setDefLogFlags(const char newDef[4]);
/*------------------------------------------------------------------------*/
/* change values */
GRAPHICS_IMPEXP void reinitDefStrf(void);
GRAPHICS_IMPEXP void reinitDefStrfN(void);
GRAPHICS_IMPEXP void reinitDefLogFlags(void);
/*------------------------------------------------------------------------*/
/* check if we are dealing with the default value */
GRAPHICS_IMPEXP BOOL isDefRect(const double* rect);
GRAPHICS_IMPEXP BOOL isDefStrf(const char* strf);
GRAPHICS_IMPEXP BOOL isDefLegend(const char* legend);
GRAPHICS_IMPEXP BOOL isDefZminMax(const double* zminmax);
GRAPHICS_IMPEXP BOOL isDefNax(const int* nax);
GRAPHICS_IMPEXP BOOL isDefColMinMax(const int* colminmax);
GRAPHICS_IMPEXP BOOL isDefColOut(const int* colout);
GRAPHICS_IMPEXP BOOL isDefWithMesh(const BOOL withmesh);
GRAPHICS_IMPEXP BOOL isDefLogFlags(const char* logflags);
/*------------------------------------------------------------------------*/
#endif /* _DEFAULT_COMMAND_ARG_H_ */
|