This file is indexed.

/usr/include/VTKEdge/vtkKWEPaintbrushStroke.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
 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
//=============================================================================
//   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 vtkKWEPaintbrushStroke - A stroke is an atomic unit of a paintbrush draw
// .SECTION Description
// The stroke is intended to represent a basic unit of a paintbrush draw. A
// stroke (can be a positive (draw) or a negative (erase) stroke) is one
// continuous sketch with the brush.
//
// .SECTION See Also

#ifndef __vtkKWEPaintbrushStroke_h
#define __vtkKWEPaintbrushStroke_h

#include "VTKEdgeConfigure.h" // needed for export symbols directives
#include "vtkKWEPaintbrushEnums.h"
#include "vtkObject.h"
#include <vtkstd/vector>

class vtkKWEPaintbrushOperation;
class vtkKWEPaintbrushData;
class vtkImageData;

//BTX
class vtkKWEPaintbrushStrokeNode
{
public:
  double WorldPosition[3];
};

class vtkKWEPaintbrushStrokeInternals
{
public:
  vtkKWEPaintbrushStrokeInternals() : State( vtkKWEPaintbrushEnums::Draw ) {}
  vtkstd::vector<vtkKWEPaintbrushStrokeNode * > Node;
  vtkKWEPaintbrushEnums::BrushType              State; // Erase or Draw ?
};
//ETX

class VTKEdge_WIDGETS_EXPORT vtkKWEPaintbrushStroke : public vtkObject
{
  //BTX
  friend class vtkKWEPaintbrushSketch;
  friend class vtkKWEPaintbrushDrawing;
  //ETX
public:

  // Description:
  // Instantiate this class.
  static vtkKWEPaintbrushStroke *New();

  // Description:
  // Standard methods for instances of this class.
  vtkTypeRevisionMacro(vtkKWEPaintbrushStroke, vtkObject);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Set the template
  virtual void SetPaintbrushOperation( vtkKWEPaintbrushOperation * );
  vtkGetObjectMacro( PaintbrushOperation, vtkKWEPaintbrushOperation );

  // Description:
  // Get the stencil.
  // The stroke is represented by a binary stencil. This is updated every
  // time a template is added to the stroke.
  virtual void SetPaintbrushData(vtkKWEPaintbrushData *);
  vtkGetObjectMacro( PaintbrushData, vtkKWEPaintbrushData );

  // Description:
  // Set/Get the image data on which the sequence is drawn. This must
  // be set by the user or bad things will happen.
  virtual void SetImageData( vtkImageData * );
  vtkGetObjectMacro( ImageData, vtkImageData );

  // Description:
  // Stroke can be a draw or erase stroke
  //   vtkKWEPaintbrushEnums::Draw
  //   vtkKWEPaintbrushEnums::Erase
  virtual void SetStateToDraw();
  virtual void SetStateToErase();
  virtual void SetState( int );
  virtual int  GetState();

  // Description:
  // Set the representation of the stroke.
  // See vtkKWEPaintbrushEnums::LabelType.
  virtual void SetRepresentation( int representation );
  vtkGetMacro(Representation, int);
  virtual void SetRepresentationToGrayscale()
    { this->SetRepresentation(vtkKWEPaintbrushEnums::Grayscale); }
  virtual void SetRepresentationToBinary()
    { this->SetRepresentation(vtkKWEPaintbrushEnums::Binary); }

  // This is optional - USE WITH CARE
  // By default, each stroke has extents that match that of the canvas image.
  // Although there are efficient datastructures to more compactly represent
  // a stroke, it can induce some memory drag. If you are dead sure that your
  // stroke is going to have certain bounding extents, you can set this.
  // The widgets internally use this under certain conditions to speed things
  // up. Note that, if you set this method, you must do so before you set the
  // canvas image via SetImageData(..), since calling this method, by default
  // will allocate extents that are as large as the canvas image.
  virtual void SetExtent( int extent[6] );
  vtkGetVector6Macro( Extent, int );

protected:
  vtkKWEPaintbrushStroke();
  ~vtkKWEPaintbrushStroke();

  vtkKWEPaintbrushOperation          *PaintbrushOperation;
  vtkKWEPaintbrushStrokeInternals    *Internals;
  vtkKWEPaintbrushData               *PaintbrushData;
  vtkImageData                    *ImageData;
  int                              Extent[6];
  int                              Representation;
  double                           Tolerance;
  vtkKWEPaintbrushEnums::LabelType    Label;

  // Description:
  // Allocate the internal stencil. This must be called prior to use and after
  // the SetExtent or the SetImageData method has been called.
  virtual void Allocate();

  // Description:
  // Add template at position. If auxData is specified, the shape is added
  // not only to the stroke's PaintbrushData but also the auxillary data
  // specified.
  virtual int AddShapeAtPosition(double p[3],
            vtkKWEPaintbrushData *auxData1 = NULL,
            vtkKWEPaintbrushData *auxData2 = NULL );

  // Description:
  // Set the label of the stroke. Makes sense only when editing label maps.
  void SetLabel( vtkKWEPaintbrushEnums::LabelType l ) { this->Label = l; }
  vtkGetMacro( Label, vtkKWEPaintbrushEnums::LabelType );

  // Description:
  // The time the stroke was drawn.
  vtkSetMacro( DrawTime, unsigned long );
  vtkGetMacro( DrawTime, unsigned long );
  unsigned long DrawTime;

  // Is 'a' more recent than 'b' ?
  static bool IsRecent( const vtkKWEPaintbrushStroke *a,
                        const vtkKWEPaintbrushStroke *b );

private:
  vtkKWEPaintbrushStroke(const vtkKWEPaintbrushStroke&);  //Not implemented
  void operator=(const vtkKWEPaintbrushStroke&);  //Not implemented
};

#endif