/usr/include/vtk-5.8/vtkStringToNumeric.h is in libvtk5-dev 5.8.0-5.
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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkStringToNumeric.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.
-------------------------------------------------------------------------*/
// .NAME vtkStringToNumeric - Converts string arrays to numeric arrays
//
// .SECTION Description
// vtkStringToNumeric is a filter for converting a string array
// into a numeric arrays.
#ifndef __vtkStringToNumeric_h
#define __vtkStringToNumeric_h
#include "vtkDataObjectAlgorithm.h"
class VTK_INFOVIS_EXPORT vtkStringToNumeric : public vtkDataObjectAlgorithm
{
public:
static vtkStringToNumeric* New();
vtkTypeMacro(vtkStringToNumeric,vtkDataObjectAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Whether to detect and convert field data arrays. Default is on.
vtkSetMacro(ConvertFieldData, bool);
vtkGetMacro(ConvertFieldData, bool);
vtkBooleanMacro(ConvertFieldData, bool);
// Description:
// Whether to detect and convert cell data arrays. Default is on.
vtkSetMacro(ConvertPointData, bool);
vtkGetMacro(ConvertPointData, bool);
vtkBooleanMacro(ConvertPointData, bool);
// Description:
// Whether to detect and convert point data arrays. Default is on.
vtkSetMacro(ConvertCellData, bool);
vtkGetMacro(ConvertCellData, bool);
vtkBooleanMacro(ConvertCellData, bool);
// Description:
// Whether to detect and convert vertex data arrays. Default is on.
virtual void SetConvertVertexData(bool b)
{ this->SetConvertPointData(b); }
virtual bool GetConvertVertexData()
{ return this->GetConvertPointData(); }
vtkBooleanMacro(ConvertVertexData, bool);
// Description:
// Whether to detect and convert edge data arrays. Default is on.
virtual void SetConvertEdgeData(bool b)
{ this->SetConvertCellData(b); }
virtual bool GetConvertEdgeData()
{ return this->GetConvertCellData(); }
vtkBooleanMacro(ConvertEdgeData, bool);
// Description:
// Whether to detect and convert row data arrays. Default is on.
virtual void SetConvertRowData(bool b)
{ this->SetConvertPointData(b); }
virtual bool GetConvertRowData()
{ return this->GetConvertPointData(); }
vtkBooleanMacro(ConvertRowData, bool);
// Description:
// This is required to capture REQUEST_DATA_OBJECT requests.
virtual int ProcessRequest(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
protected:
vtkStringToNumeric();
~vtkStringToNumeric();
// Description:
// Creates the same output type as the input type.
virtual int RequestDataObject(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
// Description:
// Tries to convert string arrays to integer or double arrays.
void ConvertArrays(vtkFieldData* fieldData);
bool ConvertFieldData;
bool ConvertPointData;
bool ConvertCellData;
// Description:
// Count the total number of items (array components) that will need
// to be converted in the given vtkFieldData. This lets us emit
// ProgressEvent.
int CountItemsToConvert(vtkFieldData *fieldData);
// These keep track of our progress
int ItemsToConvert;
int ItemsConverted;
int RequestData(
vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
private:
vtkStringToNumeric(const vtkStringToNumeric&); // Not implemented
void operator=(const vtkStringToNumeric&); // Not implemented
};
#endif
|