File: DrawObjects.h

package info (click to toggle)
scilab 5.3.3-10
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 330,656 kB
file content (82 lines) | stat: -rw-r--r-- 2,875 bytes parent folder | download | duplicates (2)
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
/*
 * 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 Draw the content of a window.
 *    The main functions is sciDrawObj that draws the objects recursively.
 --------------------------------------------------------------------------*/

#ifndef __SCI_DRAWINGS__
#define __SCI_DRAWINGS__

#include "dynlib_graphics.h"
#include "ObjectStructure.h"
#include "BOOL.h"


/*******************************************************/

GRAPHICS_IMPEXP void sciRedrawFigure(void); /* DRAWINGS */
GRAPHICS_IMPEXP void sciClearFigure(sciPointObj * pFigure) ; /* DRAWINGS */
GRAPHICS_IMPEXP void sciXbasc(void);  /* DRAWINGS */
GRAPHICS_IMPEXP void sciXclear(void); /* DRAWINGS */


GRAPHICS_IMPEXP void sciGetDisplayedBounds( sciPointObj * pSubWin,
                                   double      * xmin   ,
                                   double      * xmax   ,
                                   double      * ymin   ,
                                   double      * ymax   ,
                                   double      * zmin   ,
                                   double      * zmax    ) ;
GRAPHICS_IMPEXP BOOL sci_update_frame_bounds_3d(sciPointObj *pobj);  /* DRAWINGS */
GRAPHICS_IMPEXP BOOL sci_update_frame_bounds_2d(sciPointObj *pobj);  /* DRAWINGS */

GRAPHICS_IMPEXP int ComputeNbSubTics(sciPointObj * pobj, int nbtics, char logflag, const double * grads, int nbsubtics_input); /* DRAWINGS */

GRAPHICS_IMPEXP void DrawAxesIfRequired(sciPointObj*); /* DRAWINGS */
GRAPHICS_IMPEXP void DrawAxes(sciPointObj*); /* DRAWINGS */

GRAPHICS_IMPEXP int sciDrawObjIfRequired (sciPointObj * pobj); /* DRAWINGS */


/* Other functions coming from Entities.c (old file) */


/**DJ.Abdemouche 2003**/
GRAPHICS_IMPEXP void sciDrawFigure( int numFigure ) ;



/**
 * Show the pixmap buffer of a figure
 */
GRAPHICS_IMPEXP void showPixmap(sciPointObj * pFigure);

/**
 * Clear the pixmap buffer of a figure
 */
GRAPHICS_IMPEXP void clearPixmap(sciPointObj * pFigure);

/**
 * @return true if the figure contains some objects
 *         which needs to be displayed in 3D.
 */
GRAPHICS_IMPEXP BOOL needsDisplay(sciPointObj * pFigure);

#endif /* __SCI_DRAWINGS__ */