/usr/include/vtk-7.1/vtkSelectionNode.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 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | /*=========================================================================
Program: ParaView
Module: vtkSelectionNode.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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.
=========================================================================*/
/**
* @class vtkSelectionNode
* @brief A node in a selection tree. Used to store selection results.
*
*
* vtkSelectionNode stores selection parameters for a selection
* (or part of a selection). It stores a list of properties (in a vtkInformation)
* and a list of selection values (in a vtkAbstractArray). The properties
* provide information about what the selection values mean. For example the
* CONTENT_TYPE property gives information about what is stored by the node.
* If the CONTENT_TYPE is GLOBALIDS,
* the SelectionList array should contain a list of cell or point ids, which
* identify the particular cells or points that have matching values in the
* GLOBALID vtkDataSetAttribute array. If the CONTENT_TYPE is PEDIGREEIDS, the
* SelectionList array should contain a list of cell or point ids, which identify
* the particular cells or points that have matching values in the PEDIGREEID
* vtkDataSetAttribute array. The FIELD_TYPE property designates whether the
* selection refers to cells or points.
*
* Usually, each node under the root is a selection from
* one data object. SOURCE or SOURCE_ID properties point to this object. If
* the selection was performed on a renderer, PROP or PROP_ID point to the
* prop the selection was made on. Selection nodes corresponding to
* composite datasets may contain child nodes. Each child node of a
* composite dataset should have COMPOSITE_INDEX set. This is the flat-index to
* identify a node with in the composite dataset to which the selection applies.
*
* @warning
* No SelectionList is created by default. It should be assigned.
*/
#ifndef vtkSelectionNode_h
#define vtkSelectionNode_h
#include "vtkCommonDataModelModule.h" // For export macro
#include "vtkObject.h"
class vtkAbstractArray;
class vtkDataSetAttributes;
class vtkInformation;
class vtkInformationDoubleKey;
class vtkInformationIntegerKey;
class vtkInformationObjectBaseKey;
class vtkProp;
class vtkTable;
class VTKCOMMONDATAMODEL_EXPORT vtkSelectionNode : public vtkObject
{
public:
vtkTypeMacro(vtkSelectionNode,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
static vtkSelectionNode* New();
/**
* Restore data object to initial state,
*/
virtual void Initialize();
//@{
/**
* Sets the selection list.
*/
virtual void SetSelectionList(vtkAbstractArray*);
virtual vtkAbstractArray* GetSelectionList();
//@}
//@{
/**
* Sets the selection table.
*/
virtual void SetSelectionData(vtkDataSetAttributes* data);
vtkGetObjectMacro(SelectionData, vtkDataSetAttributes);
//@}
//@{
/**
* Returns the property map.
*/
vtkGetObjectMacro(Properties, vtkInformation);
//@}
/**
* Copy properties, selection list and children of the input.
*/
virtual void DeepCopy(vtkSelectionNode* src);
/**
* Copy properties, selection list and children of the input.
* This is a shallow copy: selection lists and pointers in the
* properties are passed by reference.
*/
virtual void ShallowCopy(vtkSelectionNode* src);
/**
* Return the MTime taking into account changes to the properties
*/
vtkMTimeType GetMTime() VTK_OVERRIDE;
// vtkSelectionNode specific keys follow:
/**
* Get the (primary) property that describes the content of a selection
* node's data. Other auxiliary description properties follow.
* GLOBALIDS means that the selection list contains values from the
* vtkDataSetAttribute array of the same name.
* PEDIGREEIDS means that the selection list contains values from the
* vtkDataSetAttribute array of the same name.
* VALUES means the the selection list contains values from an
* arbitrary attribute array (ignores any globalids attribute)
* INDICES means that the selection list contains indexes into the
* cell or point arrays.
* FRUSTUM means the set of points and cells inside a frustum
* LOCATIONS means the set of points and cells near a set of positions
* THRESHOLDS means the points and cells with values within a set of ranges
* GetContentType() returns -1 if the content type is not set.
*/
static vtkInformationIntegerKey* CONTENT_TYPE();
enum SelectionContent
{
SELECTIONS, // Deprecated.
GLOBALIDS,
PEDIGREEIDS,
VALUES,
INDICES,
FRUSTUM,
LOCATIONS,
THRESHOLDS,
BLOCKS, // used to select blocks within a composite dataset.
QUERY
};
//@{
/**
* Get or set the content type of the selection.
* This is the same as setting the CONTENT_TYPE() key on the property.
*/
virtual void SetContentType(int type);
virtual int GetContentType();
//@}
/**
* Controls whether cell, point, or field data determine what is inside and out.
* The default is CELL.
* Vertex and edge types are also available for graph classes.
* GetFieldType() returns -1 if the field type is not set.
*/
static vtkInformationIntegerKey* FIELD_TYPE();
enum SelectionField
{
CELL,
POINT,
FIELD,
VERTEX,
EDGE,
ROW
};
//@{
/**
* Get or set the field type of the selection.
* This is the same as setting the FIELD_TYPE() key on the property.
*/
virtual void SetFieldType(int type);
virtual int GetFieldType();
//@}
//@{
/**
* Methods to convert vtkSelectionNode::SelectionField to
* vtkDataSetAttribute::AttributeTypes and vice-versa.
*/
static int ConvertSelectionFieldToAttributeType(int val);
static int ConvertAttributeTypeToSelectionField(int val);
//@}
//@{
/**
* Set/Get the query expression string.
*/
vtkSetStringMacro(QueryString);
vtkGetStringMacro(QueryString);
//@}
/**
* For location selection of points, if distance is greater than this reject.
*/
static vtkInformationDoubleKey* EPSILON();
/**
* This flag tells the extraction filter, when FIELD_TYPE==POINT, that
* it should also extract the cells that contain any of the extracted points.
*/
static vtkInformationIntegerKey* CONTAINING_CELLS();
/**
* When ContentType==THRESHOLDS or ContentType==VALUES
* i.e. threshold and value based selections, it is
* possible pick the component number using this key. If none is specified,
* the 0th component is used. If any number less than 0 is specified, then
* the magnitude is used.
*/
static vtkInformationIntegerKey* COMPONENT_NUMBER();
/**
* This flag tells the extraction filter to exclude the selection.
*/
static vtkInformationIntegerKey* INVERSE();
/**
* A helper for visible cell selector, this is the number of pixels covered
* by the actor whose cells are listed in the selection.
*/
static vtkInformationIntegerKey* PIXEL_COUNT();
/**
* Pointer to the data or algorithm the selection belongs to.
*/
static vtkInformationObjectBaseKey* SOURCE();
/**
* ID of the data or algorithm the selection belongs to. What
* ID means is application specific.
*/
static vtkInformationIntegerKey* SOURCE_ID();
/**
* Pointer to the prop the selection belongs to.
*/
static vtkInformationObjectBaseKey* PROP();
/**
* ID of the prop the selection belongs to. What
* ID means is application specific.
*/
static vtkInformationIntegerKey* PROP_ID();
/**
* Process id the selection is on.
*/
static vtkInformationIntegerKey* PROCESS_ID();
/**
* Used to identify a node in composite datasets.
*/
static vtkInformationIntegerKey* COMPOSITE_INDEX();
//@{
/**
* Used to identify a dataset in a hiererchical box dataset.
*/
static vtkInformationIntegerKey* HIERARCHICAL_LEVEL();
static vtkInformationIntegerKey* HIERARCHICAL_INDEX();
//@}
/**
* This key is used when making visible vertex selection. It means
* that the cell ID selection has data about which vertices for each
* cell are visible.
*/
static vtkInformationIntegerKey* INDEXED_VERTICES();
/**
* Merges the selection list between self and the other. Assumes that both has
* identical properties.
*/
void UnionSelectionList(vtkSelectionNode* other);
/**
* Subtracts the items in the selection list, other, from this selection list.
* Assumes that both selections have identical properties (i.e., test with EqualProperties
* before using).
*/
void SubtractSelectionList(vtkSelectionNode* other);
/**
* Compares Properties of self and other to ensure that they are exactly same.
*/
bool EqualProperties(vtkSelectionNode* other, bool fullcompare=true);
protected:
vtkSelectionNode();
~vtkSelectionNode() VTK_OVERRIDE;
vtkInformation* Properties;
vtkDataSetAttributes* SelectionData;
char* QueryString;
private:
vtkSelectionNode(const vtkSelectionNode&) VTK_DELETE_FUNCTION;
void operator=(const vtkSelectionNode&) VTK_DELETE_FUNCTION;
};
#endif
|