/usr/include/vtk-7.1/vtkTransferAttributes.h is in libvtk7-dev 7.1.1+dfsg1-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 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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkTransferAttributes.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
/**
* @class vtkTransferAttributes
* @brief transfer data from a graph representation
* to a tree representation using direct mapping or pedigree ids.
*
*
* The filter requires
* both a vtkGraph and vtkTree as input. The tree vertices must be a
* superset of the graph vertices. A common example is when the graph vertices
* correspond to the leaves of the tree, but the internal vertices of the tree
* represent groupings of graph vertices. The algorithm matches the vertices
* using the array "PedigreeId". The user may alternately set the
* DirectMapping flag to indicate that the two structures must have directly
* corresponding offsets (i.e. node i in the graph must correspond to node i in
* the tree).
*
*/
#ifndef vtkTransferAttributes_h
#define vtkTransferAttributes_h
#include "vtkInfovisCoreModule.h" // For export macro
#include "vtkPassInputTypeAlgorithm.h"
#include "vtkVariant.h" //For vtkVariant method arguments
class VTKINFOVISCORE_EXPORT vtkTransferAttributes : public vtkPassInputTypeAlgorithm
{
public:
/**
* Create a vtkTransferAttributes object.
* Initial values are DirectMapping = false, DefaultValue = 1,
* SourceArrayName=0, TargetArrayName = 0,
* SourceFieldType=vtkDataObject::FIELD_ASSOCIATION_POINTS,
* TargetFieldType=vtkDataObject::FIELD_ASSOCIATION_POINTS
*/
static vtkTransferAttributes *New();
vtkTypeMacro(vtkTransferAttributes,vtkPassInputTypeAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
//@{
/**
* If on, uses direct mapping from tree to graph vertices.
* If off, both the graph and tree must contain PedigreeId arrays
* which are used to match graph and tree vertices.
* Default is off.
*/
vtkSetMacro(DirectMapping, bool);
vtkGetMacro(DirectMapping, bool);
vtkBooleanMacro(DirectMapping, bool);
//@}
//@{
/**
* The field name to use for storing the source array.
*/
vtkGetStringMacro(SourceArrayName);
vtkSetStringMacro(SourceArrayName);
//@}
//@{
/**
* The field name to use for storing the source array.
*/
vtkGetStringMacro(TargetArrayName);
vtkSetStringMacro(TargetArrayName);
//@}
//@{
/**
* The source field type for accessing the source array. Valid values are
* those from enum vtkDataObject::FieldAssociations.
*/
vtkGetMacro(SourceFieldType, int);
vtkSetMacro(SourceFieldType, int);
//@}
//@{
/**
* The target field type for accessing the target array. Valid values are
* those from enum vtkDataObject::FieldAssociations.
*/
vtkGetMacro(TargetFieldType, int);
vtkSetMacro(TargetFieldType, int);
//@}
//@{
/**
* Method to get/set the default value.
*/
vtkVariant GetDefaultValue();
void SetDefaultValue(vtkVariant value);
//@}
/**
* Set the input type of the algorithm to vtkGraph.
*/
int FillInputPortInformation(int port, vtkInformation* info);
protected:
vtkTransferAttributes();
~vtkTransferAttributes();
bool DirectMapping;
char* SourceArrayName;
char* TargetArrayName;
int SourceFieldType;
int TargetFieldType;
vtkVariant DefaultValue;
/**
* Convert the vtkGraph into vtkPolyData.
*/
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
private:
vtkTransferAttributes(const vtkTransferAttributes&) VTK_DELETE_FUNCTION;
void operator=(const vtkTransferAttributes&) VTK_DELETE_FUNCTION;
};
#endif
|