This file is indexed.

/usr/include/VTKEdge/vtkKWEVBOTStripsPainter.h is in libvtkedge-dev 0.2.0~20110819-1build2.

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
//=============================================================================
//   This file is part of VTKEdge. See vtkedge.org for more information.
//
//   Copyright (c) 2010 Kitware, Inc.
//
//   VTKEdge may be used under the terms of the BSD License
//   Please see the file Copyright.txt in the root directory of
//   VTKEdge for further information.
//
//   Alternatively, you may see: 
//
//   http://www.vtkedge.org/vtkedge/project/license.html
//
//
//   For custom extensions, consulting services, or training for
//   this or any other Kitware supported open source project, please
//   contact Kitware at sales@kitware.com.
//
//
//=============================================================================

// .NAME vtkVBOLinesPainter - this painter paints triangle strips using vertex
// buffer objects to increase data transfer speeds.

// .SECTION Description
// This painter tries to paint triangle strips efficiently.  Data are
// transfered in bulk to vertex buffer objects and then rendered from
// these buffers.  If vertex buffer objects are not supported, or if
// they cannot be allocated, then this renderer cannot render the
// primitive and will propagate the request to the delegate painter.
// Requests to Render any other primitive are ignored and not passed
// to the delegate painter, if any. If this class is able to render
// the primitive, the render request is not propagated to the delegate
// painter. Cell attributes are not supported.

#ifndef __vtkKWEVBOTStripsPainter_h
#define __vtkKWEVBOTStripsPainter_h

#include "VTKEdgeConfigure.h" // include configuration header
#include "vtkTStripsPainter.h"

class vtkKWEVertexBufferObject;
class vtkRenderWindow;

class VTKEdge_RENDERING_EXPORT vtkKWEVBOTStripsPainter : public vtkTStripsPainter
{
public:
  static vtkKWEVBOTStripsPainter* New();
  vtkTypeRevisionMacro(vtkKWEVBOTStripsPainter, vtkTStripsPainter);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Delete VBOs
  virtual void ReleaseGraphicsResources(vtkWindow* w);
//BTX
protected:
  vtkKWEVBOTStripsPainter();
  ~vtkKWEVBOTStripsPainter();

  // Description:
  // The actual rendering happens here. VBOs are generated if
  // necessary, data is copied to the VBOs, and the primitive is drawn.
  virtual int RenderPrimitive(unsigned long flags, vtkDataArray* n,
                              vtkUnsignedCharArray* c, vtkDataArray* t,
                              vtkRenderer* ren);

  // Description:
  // Copy data (points, normals, colors, tcoords, indices) to the
  // VBOs.  Calls GenerateVBOs to make sure that the VBOs have not
  // been generated.  Returns nonzero if all data was updated
  // successfully.  It is probably a good idea to call
  // ReleaseGraphicsResources if this call is not successful.
  virtual bool UpdateGraphicsResources(unsigned long idx, vtkDataArray* n,
                                      vtkUnsignedCharArray* c,
                                      vtkDataArray* t,
                                      vtkRenderer* ren);

  vtkKWEVertexBufferObject* PointIDs;
  vtkKWEVertexBufferObject* PointCoordinates;
  vtkKWEVertexBufferObject* PointColors;
  vtkKWEVertexBufferObject* PointNormals;
  vtkKWEVertexBufferObject* PointTCords;

  vtkWeakPointer<vtkRenderWindow> LastContext;
private:
  vtkKWEVBOTStripsPainter(const vtkKWEVBOTStripsPainter&); // Not implemented.
  void operator=(const vtkKWEVBOTStripsPainter&); // Not implemented.

//ETX
};

#endif