This file is indexed.

/usr/include/VTKEdge/vtkKWEVoxelAlignedImageActorPointPlacer.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
//=============================================================================
//   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 vtkKWEVoxelAlignedImageActorPointPlacer - point placer that forces the placement of points to the nearest voxel center
// .SECTION Description
// vtkKWEVoxelAlignedImageActorPointPlacer is a point placer that works on
// image actors and automatically forces the placement of the point to
// the nearest voxel center. This is useful when using voxelized editing
// widgets and you'd like to see the shape be placed exactly over a voxel
// rather than in between two voxels.

#ifndef __vtkKWEVoxelAlignedImageActorPointPlacer_h
#define __vtkKWEVoxelAlignedImageActorPointPlacer_h

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

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

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

  // Description:
  // Given and renderer and a display position in pixels,
  // find a world position and orientation. In this class
  // an internal vtkBoundedPlanePointPlacer is used to compute
  // the world position and orientation. The internal placer
  // is set to use the plane of the image actor and the bounds
  // of the image actor as the constraints for placing points.
  int ComputeWorldPosition( vtkRenderer *ren,
                            double displayPos[2],
                            double worldPos[3],
                            double worldOrient[9] );

  // Description:
  // This method is identical to the one above since the
  // reference position is ignored by the bounded plane
  // point placer.
  int ComputeWorldPosition( vtkRenderer *ren,
                            double displayPos[2],
                            double refWorldPos[2],
                            double worldPos[3],
                            double worldOrient[9] );

  // Description:
  // This method validates a world position by checking to see
  // if the world position is valid according to the constraints
  // of the internal placer (essentially - is this world position
  // on the image?)
  int ValidateWorldPosition( double worldPos[3] );

  // Description:
  // This method is identical to the one above since the bounded
  // plane point placer ignores orientation
  int ValidateWorldPosition( double worldPos[3],
                             double worldOrient[9]);


  // Description:
  // Update the world position and orientation according the
  // the current constraints of the placer. Will be called
  // by the representation when it notices that this placer
  // has been modified.
  int UpdateWorldPosition( vtkRenderer *ren,
                           double worldPos[3],
                           double worldOrient[9]);

protected:
  vtkKWEVoxelAlignedImageActorPointPlacer();
  ~vtkKWEVoxelAlignedImageActorPointPlacer();

  int InternalValidateWorldPosition(double worldPos[3]);

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

#endif