This file is indexed.

/usr/include/VTKEdge/vtkKWEPaintbrushSelectionWidget.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
//=============================================================================
//   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 vtkKWEPaintbrushSelectionWidget
#ifndef __vtkKWEPaintbrushSelectionWidget_h
#define __vtkKWEPaintbrushSelectionWidget_h

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

class vtkKWEPaintbrushSelectionRepresentation;
class vtkKWEPaintbrushSketch;
class vtkKWEWidgetGroup;

class VTKEdge_WIDGETS_EXPORT vtkKWEPaintbrushSelectionWidget : public vtkKWEAbstractPaintbrushWidget
{
public:
  // Description:
  // Instantiate this class.
  static vtkKWEPaintbrushSelectionWidget *New();

  // Description:
  // Standard methods for a VTK class.
  vtkTypeRevisionMacro(vtkKWEPaintbrushSelectionWidget,vtkKWEAbstractPaintbrushWidget);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // The method for activiating and deactiviating this widget. This method
  // must be overridden because it is a composite widget and does more than
  // its superclass' vtkAbstractWidget::SetEnabled() method.
  virtual void SetEnabled(int);

  // Description:
  // Specify an instance of vtkWidgetRepresentation used to represent this
  // widget in the scene. Note that the representation is a subclass of vtkProp
  // so it can be added to the renderer independent of the widget.
  void SetRepresentation(vtkKWEPaintbrushSelectionRepresentation *r);

  // Description:
  // Method to satisfy the superclass API.
  // Create the default vtkKWEPaintbrushRepresentation if one is not set.
  virtual void CreateDefaultRepresentation();

  // Description:
  // The widget by default supports drag and drop merge of sketches. You
  // may enable/disable this
  vtkSetMacro( EnableDragAndDrop, int );
  vtkGetMacro( EnableDragAndDrop, int );
  vtkBooleanMacro( EnableDragAndDrop, int );

  // Description:
  // Delete selected sketches.
  virtual void DeleteSelectedSketches();

  // Description:
  // Merge sketches into supplied sketch. Old sketches
  //virtual void MergeSelectedSketches( vtkKWEPaintbrushSketch * s );

  //BTX
  //virtual void RemoveSketches( std::vector< vtkKWEPaintbrushSketch * > );
  //virtual void MergeSketchesInto( std::vector< vtkKWEPaintbrushSketch * >,
  //                                vtkKWEPaintbrushSketch *newSketch );
  //ETX

  // Description:
  // Synchronize states etc.
  virtual void DeepCopy( vtkAbstractWidget * );

  // Description:
  // INTERNAL - Do not use
  // To be used by the vtkKWEPaintbrushWidget to propagate Abort events from
  // the callback command, since this widget is meant to be used as a child
  // of vtkKWEPaintbrushWidget
  vtkGetObjectMacro( EventCallbackCommand, vtkCallbackCommand );

protected:
  vtkKWEPaintbrushSelectionWidget();
  ~vtkKWEPaintbrushSelectionWidget();

  // Description:
  // States
  //BTX
  enum
    {
    Disabled = 10000,
    BeginSelecting,
    EndSelecting,
    None
    };
  //ETX

  // Description:
  // Callback interface to tie ends with the CallbackMapper for the events
  // invoked by this widget. Note the seperation of "Callbacks" and "Actions".
  // The callbacks are invoked in response to events from the
  // RenderWindowInteractor. They are then dispatched to the WidgetGroup, who
  // inturn calls the corresponding "Actions" on each of the widgets in the
  // group.
  //
  // As a rule of thumb, the mapping of "Callbacks" is to "Events" from the
  // Callbackmapper. The mapping of "Actions" is meant to be one pertinent
  // to the geometry changes on the widget's representation.
  //    For instance a MouseMoveEvent should map to a "MoveCallback". This
  // can, depending on the state of the widget, trigger any of three Actions:
  // HoverAction, DrawAction, ResizeAction.
  //    This is done, so that you can have multiple widgets, say a seed
  // widget drawn on 3 render windows and have them all synchronized, if they
  // belong to the same group.
  //
  static void BeginToggleSelectSketchCallback( vtkAbstractWidget* );
  static void EndToggleSelectSketchCallback  ( vtkAbstractWidget* );
  static void DeleteSelectionCallback        ( vtkAbstractWidget* );
  static void MergeSelectionCallback         ( vtkAbstractWidget* );
  static void SelectAllSketchesCallback      ( vtkAbstractWidget* );
  static void UnSelectAllSketchesCallback    ( vtkAbstractWidget* );
  static void ToggleSelectAllSketchesCallback( vtkAbstractWidget* );
  static void MoveCallback                   ( vtkAbstractWidget* );

  // Description:
  // Geometric actions / states on that the representation responds to.
  int SelectSketchAction       ( vtkKWEPaintbrushSelectionWidget *dispatcher);
  int UnselectSketchAction     ( vtkKWEPaintbrushSelectionWidget *dispatcher);
  int SelectAllSketchesAction  ( vtkKWEPaintbrushSelectionWidget *dispatcher);
  int UnSelectAllSketchesAction( vtkKWEPaintbrushSelectionWidget *dispatcher);
  int ReleaseSelectAction      ( vtkKWEPaintbrushSelectionWidget *dispatcher);
  int DeleteSelectionAction    ( vtkKWEPaintbrushSelectionWidget *dispatcher);
  int MergeSelectionAction     ( vtkKWEPaintbrushSelectionWidget *dispatcher);

  int                   WidgetState;
  vtkKWEPaintbrushSketch * MergedSketch;
  int                   RemoveSketchesDuringMerge;
  int                   EnableDragAndDrop;

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

#endif