/usr/include/VTKEdge/vtkKWEITKPaintbrushExtractConnectedComponents.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 | //=============================================================================
// 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 vtkKWEITKPaintbrushExtractConnectedComponents - Extract connected components in a drawing.
// .SECTION Description
// Takes a drawing as input. Generates a drawing as output. The input drawing
// will have one or more sketches. The user set the sketch for which connected
// components must be extracted via 'SetSketchIndex' (default is the first
// sketch). The algorithm will produce as output a drawing with 'n' sketches
// where 'n' is the number of connected components. Each connected component
// is a seperate sketch.
// .SECTION See Also
#ifndef __vtkKWEITKPaintbrushExtractConnectedComponents_h
#define __vtkKWEITKPaintbrushExtractConnectedComponents_h
#include "vtkAlgorithm.h"
#include "VTKEdgeConfigure.h"
class vtkKWEPaintbrushDrawing;
class vtkImageData;
class VTKEdge_WIDGETS_EXPORT vtkKWEITKPaintbrushExtractConnectedComponents
: public vtkAlgorithm
{
public:
// Description:
// Standard VTK methods.
static vtkKWEITKPaintbrushExtractConnectedComponents *New();
vtkTypeRevisionMacro(vtkKWEITKPaintbrushExtractConnectedComponents, vtkAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set the sketch from the input drawing of which we wish to extract
// connected components. Defaults to 0.
vtkSetMacro( SketchIndex, int );
vtkGetMacro( SketchIndex, int );
// Description:
// Set a paintbrush drawing as input
virtual void SetInput( vtkKWEPaintbrushDrawing * );
// Description:
// see vtkAlgorithm for details
virtual int ProcessRequest(vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
// Description:
// Get the output data object of this algorithm.
vtkKWEPaintbrushDrawing* GetOutput();
protected:
vtkKWEITKPaintbrushExtractConnectedComponents();
~vtkKWEITKPaintbrushExtractConnectedComponents();
// Description:
// see vtkAlgorithm for docs.
virtual int FillInputPortInformation(int, vtkInformation*);
virtual int FillOutputPortInformation(int, vtkInformation*);
virtual int RequestData(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
virtual void RequestInformation (vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
// Description:
// Creates the same output type as the input type.
virtual int RequestDataObject(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
// Description:
// Compute the tightest bounding box that covers each of the connected
// components.
void ComputeSegmentExtents( int nSegments, int *e, vtkImageData *image );
int SketchIndex;
private:
vtkKWEITKPaintbrushExtractConnectedComponents(
const vtkKWEITKPaintbrushExtractConnectedComponents&); //Not implemented
void operator=(const
vtkKWEITKPaintbrushExtractConnectedComponents&); //Not implemented
};
#endif
|