File: axesScale.h

package info (click to toggle)
scilab 5.2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 334,832 kB
  • ctags: 52,586
  • sloc: xml: 526,945; ansic: 223,590; fortran: 163,080; java: 56,934; cpp: 33,840; tcl: 27,936; sh: 20,397; makefile: 9,908; ml: 9,451; perl: 1,323; cs: 614; lisp: 30
file content (68 lines) | stat: -rw-r--r-- 2,922 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
/*
 * 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-en.txt
 *
 */

/*------------------------------------------------------------------------*/
/* file: axesScale.h                                                      */
/* desc : Contains functions to compute scale changes in a specific       */
/*        subwindow.                                                      */
/*------------------------------------------------------------------------*/

#ifndef _AXES_SCALE_H_
#define _AXES_SCALE_H_
#include "dynlib_graphics.h"
#include "ObjectStructure.h"

/*------------------------------------------------------------------------------*/
GRAPHICS_IMPEXP int sciZoom2D(sciPointObj * subwin, const double zoomRect[4]);
GRAPHICS_IMPEXP int sciZoom3D(sciPointObj * subwin, const double zoomBox[6]);
GRAPHICS_IMPEXP int sciZoomRect(sciPointObj * pObj, const double zoomRect[4]);
GRAPHICS_IMPEXP int sciDefaultZoom2D(const double zoomRect[4]);
GRAPHICS_IMPEXP int sciFigureZoom2D(sciPointObj * figure, const double zoomRect[4]);
GRAPHICS_IMPEXP void sciGetZoom3D(sciPointObj * pObj, double zoomBox[6]);
GRAPHICS_IMPEXP void sciDefaultInteractiveZoom(void);
GRAPHICS_IMPEXP void sciInteractiveZoom(sciPointObj * pObj);
GRAPHICS_IMPEXP void sciUnzoomSubwin(sciPointObj * subwin);
GRAPHICS_IMPEXP void sciUnzoomFigure(sciPointObj * figure);
GRAPHICS_IMPEXP void sciUnzoomAll(void);
GRAPHICS_IMPEXP void sciUnzoomArray(sciPointObj * zoomedObjects[], int nbSubwin);

/**
 * Update subwin size and scale if needed
 */
GRAPHICS_IMPEXP void updateSubwinScale(sciPointObj * pSubwin);

/**
 * Update text bounds if needed
 */
GRAPHICS_IMPEXP void updateTextBounds(sciPointObj * pText);

/**
 * Zoom an object using a rectangular selection given in pixels.
 * @param pObj must be a figure or subwin handle
 * @param x1 X coordinate of a corner of the selection
 * @param y1 Y coordinate of a corner of the selection
 * @param x2 X coordinate of the oppoiste corner of the selection
 * @param y2 Y coordinate of the opposite corner of the selection
 */
GRAPHICS_IMPEXP void sciZoomObject(sciPointObj * pObj, int x1, int y1, int x2, int y2);

/**
 * Unzoom a subwindow
 */
GRAPHICS_IMPEXP void unzoomSubwin(sciPointObj * pSubwin);
/*------------------------------------------------------------------------------*/
GRAPHICS_IMPEXP BOOL checkDataBounds(sciPointObj * pObj, double xMin, double xMax,
                     double yMin, double yMax, double zMin, double zMax);
/*------------------------------------------------------------------------------*/


#endif /* _AXES_SCALE_H_ */