This file is indexed.

/usr/include/VTKEdge/vtkKWEBoundingBoxWidget2D.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
//=============================================================================
//   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 vtkKWEBoundingBoxWidget2D - Manages a 3D bounding box on a 2D image actor
// .SECTION Description
// The widget can be placed on one of the orthogonal (axial/sagittal/coronal)
// image actors and be used to specify bounds (or extents). The widget
// includes a slice scale (with 2 handles) to manipulate the extents along Z
// and 4 handles to manipulate the bounding box.
//
// If bounds are changed, the widget invokes a BoundsChangedEvent along with
// a pointer to 6 tuple double containing the new bounds.
//
// If extents are changed, the widget invokes a ExtentsChangedEvent along with
// a pointer to 6 tuple integer containing the new extent.
//
// Needless to say, a BoundsChangedEvent will be invoked every time an
// ExtentsChangedEvent is invoked. The converse is not always true.

#ifndef __vtkKWEBoundingBoxWidget2D_h
#define __vtkKWEBoundingBoxWidget2D_h

#include "VTKEdgeConfigure.h" // needed for export symbols directives
#include "vtkAbstractWidget.h"

class vtkKWEBoundingBoxRepresentation2D;
class vtkHandleWidget;

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

  // Description:
  // Standard methods for a VTK class.
  vtkTypeRevisionMacro(vtkKWEBoundingBoxWidget2D,vtkAbstractWidget);
  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:
  // See superclass doc
  virtual void SetProcessEvents( int );

  // Description:i
  // This serves to fade the representation into the background. If faded,
  // ProcessEvents is automatically turned off, ie the widget will not
  // respond to events.
  virtual void SetFade( int );
  virtual int GetFade();
  vtkBooleanMacro(Fade, int);

  // Description:
  // Events emitted by the widget
  //BTX
  enum
  {
    BeginResizeEvent = 1000,
    ResizingEvent,
    EndResizeEvent,
    BoundsChangedEvent,
    ExtentsChangedEvent
  };
  //ETX

  // Description:
  // Set the representation
  virtual void SetRepresentation( vtkKWEBoundingBoxRepresentation2D * );

  // Description:
  // See superclass for documentation
  virtual void CreateDefaultRepresentation();

  // Description:
  // If set, it must be set prior to enabling the widget. Default is ON.
  virtual void SetShowSliceScaleBar(int);
  vtkGetMacro( ShowSliceScaleBar, int );
  vtkBooleanMacro( ShowSliceScaleBar, int );

protected:
  vtkKWEBoundingBoxWidget2D();
  ~vtkKWEBoundingBoxWidget2D();

  // Description:
  static void OnMouseMoveCallback     ( vtkAbstractWidget* );
  static void OnLeftButtonDownCallback  ( vtkAbstractWidget* );
  static void OnLeftButtonUpCallback  ( vtkAbstractWidget* );
  void SetCursor( int );

  int ShowSliceScaleBar;
  void SetEnabledStateOfSliceScaleBar();

  double LastComputedBounds[6];
  int    LastComputedExtent[6];

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

  vtkHandleWidget ** HandleWidgets;
};

#endif