This file is indexed.

/usr/include/VTKEdge/vtkKWEPaintbrushOperation.h is in libvtkedge-dev 0.2.0~20110819-2.

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
//=============================================================================
//   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 vtkKWEPaintbrushOperation - Perform inplace operations on paintbrush stencils
// .SECTION Description
// This is a base class for Paintbrush operations that perform smart inplace
// operations on paintbrush stencils. This class acts as a pass through
// filter that does not modify the incoming stencils. Subclasses must
// override the protected method \c DoOperationOnStencil to modify the
// stencil possibly based on the underlying image data.
//
// .SECTION See Also

#ifndef __vtkKWEPaintbrushOperation_h
#define __vtkKWEPaintbrushOperation_h

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

class vtkImageStencilData;
class vtkKWEPaintbrushData;
class vtkKWEPaintbrushShape;
class vtkImageData;

class VTKEdge_WIDGETS_EXPORT vtkKWEPaintbrushOperation : public vtkObject
{
public:

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

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

  // Description:
  // Set the paintbrush shape. This must be set.
  virtual void SetPaintbrushShape( vtkKWEPaintbrushShape* );
  vtkGetObjectMacro( PaintbrushShape, vtkKWEPaintbrushShape);

  // Description:
  // Set the image data on which the paintbrush is drawn. This must be set.
  virtual void SetImageData( vtkImageData * );
  vtkGetObjectMacro( ImageData, vtkImageData );

  // Description:
  // Get the Paintbrush data for the shape at point 'p' filtered through
  // this operation. This class will simply return shape->GetPaintbrushData().
  // Subclasses would generally override this, so as to filter the
  // paintbrushData from the shape.
  virtual void GetPaintbrushData(vtkKWEPaintbrushData *, double p[3],
                                 vtkKWEPaintbrushEnums::OperationType & op );

  // Description:
  // The default behaviour is "You are allowed to paint everywhere."
  // Optionally, you may retrict this via extents. ie. the operation will
  // filter data through only if it lies within the specified extents.
  vtkSetVector6Macro( Extent, int );
  vtkGetVector6Macro( Extent, int );

  // Description:
  // INTERNAL: Do not use.
  // Deep copy.. Synchronizes states etc.
  virtual void DeepCopy(vtkKWEPaintbrushOperation *);

protected:
  vtkKWEPaintbrushOperation();
  ~vtkKWEPaintbrushOperation();

  // Description:
  // Filter the incoming data (first arg) through this operation. The operation
  // is centered at the point 'p'.
  virtual void DoOperation( vtkKWEPaintbrushData *, double p[3],
                            vtkKWEPaintbrushEnums::OperationType & op );

  vtkImageData                 *ImageData;
  vtkKWEPaintbrushShape           *PaintbrushShape;
  int                           Extent[6];

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

#endif