This file is indexed.

/usr/lib/Wt/examples/mandelbrot/MandelbrotImage.h is in witty-examples 3.3.0-1build1.

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
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */

#ifndef MANDELBROT_IMAGE_H_
#define MANDELBROT_IMAGE_H_

#include <Wt/WVirtualImage>

using namespace Wt;

namespace Wt {
  class WRasterImage;
}

class MandelbrotImage : public WVirtualImage
{
public:
  MandelbrotImage(int width, int height,
		  int64_t virtualWidth, int64_t virtualHeight,
		  double bx1, double by1,
		  double bx2, double by2,
		  WContainerWidget *parent = 0);

  void zoomIn();
  void zoomOut();

  void generate(int64_t x, int64_t y, WRasterImage *img);

  double currentX1() const;
  double currentY1() const;
  double currentX2() const;
  double currentY2() const;

private:
  double bx1_, by1_, bwidth_, bheight_;
  int maxDepth_;
  double bailOut2_;

  virtual WResource *render(int64_t x, int64_t y, int w, int h);
  double calcPixel(double x, double y);

  double convertPixelX(int64_t x) const;
  double convertPixelY(int64_t y) const;
};

#endif // MANDELBROT_IMAGE_H_