This file is indexed.

/usr/include/VTKEdge/vtkKWEPaintbrushSelectionRepresentation.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
171
172
173
174
175
176
177
178
//=============================================================================
//   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 vtkKWEPaintbrushSelectionRepresentation -
// .SECTION Description

#ifndef __vtkKWEPaintbrushSelectionRepresentation_h
#define __vtkKWEPaintbrushSelectionRepresentation_h

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

class vtkKWEPaintbrushDrawing;
class vtkPointPlacer;
class vtkKWEPaintbrushSketch;
class vtkKWEPaintbrushSelectionWidget;

class VTKEdge_WIDGETS_EXPORT vtkKWEPaintbrushSelectionRepresentation
                                       : public vtkWidgetRepresentation
{
  //BTX
  friend class vtkKWEPaintbrushSelectionWidget;
  //ETX
public:
  // Description:
  // Standard VTK methods.
  vtkTypeRevisionMacro( vtkKWEPaintbrushSelectionRepresentation,
                        vtkWidgetRepresentation);
  void PrintSelf(ostream& os, vtkIndent indent);

  //BTX -- States the representation can set itself into
  enum
    {
    PaintbrushRequestSketchSelect,
    PaintbrushSketchSelect,
    PaintbrushSketchUnselect,
    PaintbrushRequestSketchMerge,
    PaintbrushSketchMerge,
    PaintbrushDisabled,
    None
   };
  //ETX

  // Description:
  // These are methods that satisfy vtkWidgetRepresentation's API.
  virtual int  ComputeInteractionState(int X, int Y, int modifier=0);

  // Description:
  // Set the Paintbrush drawing
  virtual void SetPaintbrushDrawing( vtkKWEPaintbrushDrawing * );
  vtkGetObjectMacro( PaintbrushDrawing, vtkKWEPaintbrushDrawing );

  // Descirption:
  // Set / get the Point Placer. The point placer is responsible for
  // converting display coordinates into world coordinates according
  // to some constraints, and for validating world positions.
  // By writing an appopriate point placer, you can disable/enable selection
  // on regions in world space.
  void SetPointPlacer( vtkPointPlacer * );
  vtkGetObjectMacro( PointPlacer, vtkPointPlacer );

  // Descirption:
  // Deep copy.. synchronizes states etc..
  virtual void DeepCopy(vtkWidgetRepresentation *);

  // Description:
  // Check if display point is inside the sketch "s".
  virtual int DisplayPositionIsInside( vtkKWEPaintbrushSketch *s,
                                       double displayPos[2]);

  // Description:
  // Check if world point is inside the sketch "s".
  virtual int WorldPositionIsInside( vtkKWEPaintbrushSketch *s,
                                     double worldPos[3]);

  // Description:
  // Check if display position is inside the drawing and return the first
  // drawing that falls within the display position. Returns NULL if the
  // position doesn't lie on any sketch in the drawing.
  //virtual vtkKWEPaintbrushSketch* DisplayPositionIsInside( double displayPos[2] );

  // Description:
  // Get the selected sketch.
  vtkGetObjectMacro( SelectedSketch, vtkKWEPaintbrushSketch );

  // Description:
  // Add sketch to the list of selected sketches.
  virtual void AddSketchToSelection( vtkKWEPaintbrushSketch * );

  // Description:
  // Remove sketch from the list of selected sketches.
  virtual void RemoveSketchFromSelection( vtkKWEPaintbrushSketch * );

  // Description:
  // Deletes selected sketches. Returns the number of sketches removed.
  virtual int DeleteSelectedSketches();

  // Description:
  // Select/UnSelect all the sketches in the drawing
  virtual void SelectAllSketches();
  virtual void UnSelectAllSketches();

  //BTX
  // Description:
  // Get the selected sketches.
  const vtkstd::vector< vtkKWEPaintbrushSketch * > & GetSelectedSketches()
    { return this->SelectedSketches; }
  //ETX

  // Description:
  // Merge the selected sketches.
  // You may specify a sketch, from the drawing, to merge into. If NULL, the
  // first selected sketch will contain the merge.
  // By default sketches merged are removed. The removeSketches ivar can be
  // used to control this.
  virtual int MergeSelectedSketches( vtkKWEPaintbrushSketch *mergedSketch = NULL,
                                     int removeSketches = 1 );

protected:
  vtkKWEPaintbrushSelectionRepresentation();
  ~vtkKWEPaintbrushSelectionRepresentation();

  // Description:
  // Set the interaction state.
  vtkSetMacro( InteractionState, int );

  // Description:
  // Drag and drop merge support. Returns 1 if successful.
  virtual int DragAndDropMerge();

  vtkKWEPaintbrushDrawing        *PaintbrushDrawing;

  // Description:
  // The point placer determines the world coordinate based on screen
  // coordinate and allows you to set constraints too.
  vtkPointPlacer             * PointPlacer;

  // Description:
  // Bookkeeping of the last display position.
  int    LastDisplayPosition[2];

  // Description:
  // The sketch just selected.
  vtkKWEPaintbrushSketch * SelectedSketch;

  // Description:
  // List of selected sketches.
  typedef vtkstd::vector< vtkKWEPaintbrushSketch * > SelectedSketchesType;
  SelectedSketchesType  SelectedSketches;
  int                   PrevInteractionState;
  double                DragBeginPoint[3], DragEndPoint[3];
  vtkKWEPaintbrushSketch * DragAndDropDestination;

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

#endif