This file is indexed.

/usr/include/gtkextra-3.0/gtkextra/gtkplotsurface.h is in libgtkextra-dev 3.2.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/* gtkplotsurface - 3d scientific plots widget for gtk+
 * Copyright 1999-2001  Adrian E. Feiguin <feiguin@ifir.edu.ar>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __GTK_PLOT_SURFACE_H__
#define __GTK_PLOT_SURFACE_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "gtkplot.h"
#include "gtkplotdt.h"

#define GTK_PLOT_SURFACE(obj)        G_TYPE_CHECK_INSTANCE_CAST (obj, gtk_plot_surface_get_type (), GtkPlotSurface)
#define G_TYPE_PLOT_SURFACE        (gtk_plot_surface_get_type ())
#define GTK_PLOT_SURFACE_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gtk_plot_surface_get_type(), GtkPlotSurfaceClass)
#define GTK_IS_PLOT_SURFACE(obj)     G_TYPE_CHECK_INSTANCE_TYPE (obj, gtk_plot_surface_get_type ())

typedef struct _GtkPlotPolygon             GtkPlotPolygon;
typedef struct _GtkPlotSurface             GtkPlotSurface;
typedef struct _GtkPlotSurfaceClass        GtkPlotSurfaceClass;

/**
 * GtkPlotiPolygon:
 *
 * The GtkPlotPolygon struct contains only private data.
 * It should only be accessed through the functions described below.
 */
struct _GtkPlotPolygon
{
  GtkPlotDTtriangle *t;  		/* parent triangle */
  GtkPlotVector xyz[4]; 		/* points */
  GtkPlotVector p[4];			/* pixels */
  gint n;				/* number of points */
  gdouble level;
  gboolean cut_level;	
  gboolean sublevel;
};

/**
 * GtkPlotSurface:
 *
 * The GtkPlotSurface struct contains only private data.
 * It should only be accessed through the functions described below.
 */
struct _GtkPlotSurface
{
  GtkPlotData data;

  GdkColor color;
  GdkColor shadow;
  GdkColor grid_foreground;
  GdkColor grid_background;

  gboolean use_height_gradient;
  gboolean use_amplitud;

  GtkPlotVector light;
  gdouble ambient;

  gint nx, ny;

  GtkPlotDT *dt;
  gboolean recalc_dt;

  GList *polygons;

  gboolean show_grid;
  gboolean show_mesh;
  gboolean transparent;

  gdouble xstep, ystep;

  GtkPlotLine mesh_line;
};

struct _GtkPlotSurfaceClass
{
  GtkPlotDataClass parent_class;

  void 	(*build_polygons) 		(GtkPlotSurface *surface);
  void 	(*sort_polygons) 		(GtkPlotSurface *surface);
  void 	(*draw_polygons) 		(GtkPlotSurface *surface);
};


GType		gtk_plot_surface_get_type	(void);
GtkWidget*	gtk_plot_surface_new		(void);
GtkWidget*	gtk_plot_surface_new_function	(GtkPlotFunc3D function);

void		gtk_plot_surface_construct_function (GtkPlotSurface *surface,
				 		    GtkPlotFunc3D function);

void		gtk_plot_surface_set_color	(GtkPlotSurface *data,
						 GdkColor *color);
void		gtk_plot_surface_set_shadow	(GtkPlotSurface *data,
						 GdkColor *color);
void		gtk_plot_surface_set_grid_foreground	(GtkPlotSurface *data,
						 	 GdkColor *foreground);
void		gtk_plot_surface_set_grid_background	(GtkPlotSurface *data,
						 	 GdkColor *background);
void		gtk_plot_surface_set_grid_visible	(GtkPlotSurface *data,
						 	 gboolean visible);
gboolean	gtk_plot_surface_get_grid_visible	(GtkPlotSurface *data);
void		gtk_plot_surface_set_mesh_visible	(GtkPlotSurface *data,
						 	 gboolean visible);
gboolean	gtk_plot_surface_get_mesh_visible	(GtkPlotSurface *data);
void            gtk_plot_surface_set_light      (GtkPlotSurface *data,
                                 		 gdouble x, 
						 gdouble y, 
						 gdouble z);
void            gtk_plot_surface_set_ambient    (GtkPlotSurface *data,
                                   		 gdouble ambient);
void            gtk_plot_surface_use_height_gradient (GtkPlotSurface *data, 
						 gboolean use_gradient);
void            gtk_plot_surface_use_amplitud   (GtkPlotSurface *data, 
						 gboolean use_amplitud);
void            gtk_plot_surface_set_transparent(GtkPlotSurface *data,
                                   		 gboolean transparent);

void 		gtk_plot_surface_set_points	(GtkPlotSurface *data,
						 gdouble *x, 
                                                 gdouble *y,
                                                 gdouble *z,
						 gdouble *dx, 
                                                 gdouble *dy,
                                                 gdouble *dz,
                                                 gint nx, gint ny);
void 		gtk_plot_surface_get_points	(GtkPlotSurface *data,
						 gdouble **x, 
                                                 gdouble **y,
                                                 gdouble **z,
						 gdouble **dx, 
                                                 gdouble **dy,
                                                 gdouble **dz,
                                                 gint *nx, gint *ny);
GtkPlotArray * 	gtk_plot_surface_set_x		(GtkPlotSurface *data,
						 gdouble *x); 
GtkPlotArray * 	gtk_plot_surface_set_y		(GtkPlotSurface *data,
						 gdouble *y); 
GtkPlotArray * 	gtk_plot_surface_set_z		(GtkPlotSurface *data,
						 gdouble *z); 
GtkPlotArray * 	gtk_plot_surface_set_dx		(GtkPlotSurface *data,
						 gdouble *dx); 
GtkPlotArray *	gtk_plot_surface_set_dy		(GtkPlotSurface *data,
						 gdouble *dy); 
GtkPlotArray *	gtk_plot_surface_set_dz		(GtkPlotSurface *data,
						 gdouble *dz); 
gdouble * 	gtk_plot_surface_get_x		(GtkPlotSurface *dataset, 
                                                 gint *nx);
gdouble * 	gtk_plot_surface_get_y		(GtkPlotSurface *dataset, 
                                                 gint *ny);
gdouble * 	gtk_plot_surface_get_z		(GtkPlotSurface *dataset,
                                                 gint *nx, gint *ny); 
gdouble * 	gtk_plot_surface_get_dx		(GtkPlotSurface *dataset); 
gdouble * 	gtk_plot_surface_get_dy		(GtkPlotSurface *dataset); 
gdouble * 	gtk_plot_surface_get_dz		(GtkPlotSurface *dataset); 
void		gtk_plot_surface_set_nx  	(GtkPlotSurface *dataset,
                                                 gint nx);
void		gtk_plot_surface_set_ny  	(GtkPlotSurface *dataset,
                                                 gint ny);
gint		gtk_plot_surface_get_nx  	(GtkPlotSurface *dataset);
gint		gtk_plot_surface_get_ny  	(GtkPlotSurface *dataset);

void		gtk_plot_surface_set_xstep  	(GtkPlotSurface *dataset,
						 gdouble xstep);
void		gtk_plot_surface_set_ystep  	(GtkPlotSurface *dataset,
						 gdouble ystep);
gdouble		gtk_plot_surface_get_xstep  	(GtkPlotSurface *dataset);
gdouble		gtk_plot_surface_get_ystep  	(GtkPlotSurface *dataset);
void            gtk_plot_surface_build_mesh     (GtkPlotSurface *surface);
void            gtk_plot_surface_recalc_nodes   (GtkPlotSurface *surface);


#ifdef __cplusplus
}
#endif /* __cplusplus */


#endif /* __GTK_PLOT_SURFACE_H__ */