/usr/include/paraview/vtkPVDataInformation.h is in paraview-dev 5.0.1+dfsg1-4.
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 | /*=========================================================================
Program: ParaView
Module: vtkPVDataInformation.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.
=========================================================================*/
// .NAME vtkPVDataInformation - Light object for holding data information.
// .SECTION Description
// This object is a light weight object. It has no user interface and
// does not necessarily last a long time. It is meant to help collect
// information about data object and collections of data objects. It
// has a PV in the class name because it should never be moved into
// VTK.
//
// .SECTION Caveats
// Get polygons only works for poly data and it does not work propelry for the
// triangle strips.
#ifndef vtkPVDataInformation_h
#define vtkPVDataInformation_h
#include "vtkPVClientServerCoreCoreModule.h" //needed for exports
#include "vtkPVInformation.h"
class vtkCollection;
class vtkCompositeDataSet;
class vtkDataObject;
class vtkDataSet;
class vtkGenericDataSet;
class vtkGraph;
class vtkInformation;
class vtkPVArrayInformation;
class vtkPVCompositeDataInformation;
class vtkPVDataSetAttributesInformation;
class vtkPVDataInformationHelper;
class vtkSelection;
class vtkTable;
class VTKPVCLIENTSERVERCORECORE_EXPORT vtkPVDataInformation : public vtkPVInformation
{
public:
static vtkPVDataInformation* New();
vtkTypeMacro(vtkPVDataInformation, vtkPVInformation);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Method to find and return attribute array information for a particular
// array for the given attribute type if one exists.
// Returns NULL if none is found.
// \c fieldAssociation can be vtkDataObject::FIELD_ASSOCIATION_POINTS,
// vtkDataObject::FIELD_ASSOCIATION_CELLS etc.
// (use vtkDataObject::FIELD_ASSOCIATION_NONE for field data) (or
// vtkDataObject::POINT, vtkDataObject::CELL, vtkDataObject::FIELD).
vtkPVArrayInformation* GetArrayInformation(
const char* arrayname, int fieldAssociation);
// Description:
// Port number controls which output port the information is gathered from.
// This is the only parameter that can be set on the client-side before
// gathering the information.
vtkSetMacro(PortNumber, int);
vtkGetMacro(PortNumber, int);
// Description:
// Transfer information about a single object into this object.
virtual void CopyFromObject(vtkObject*);
// Description:
// Merge another information object. Calls AddInformation(info, 0).
virtual void AddInformation(vtkPVInformation* info);
// Description:
// Merge another information object. If adding information of
// 1 part across processors, set addingParts to false. If
// adding information of parts, set addingParts to true.
virtual void AddInformation(vtkPVInformation*, int addingParts);
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
// Description:
// Serialize/Deserialize the parameters that control how/what information is
// gathered. This are different from the ivars that constitute the gathered
// information itself. For example, PortNumber on vtkPVDataInformation
// controls what output port the data-information is gathered from.
virtual void CopyParametersToStream(vtkMultiProcessStream&);
virtual void CopyParametersFromStream(vtkMultiProcessStream&);
// Description:
// Remove all information. The next add will be like a copy.
// I might want to put this in the PVInformation superclass.
void Initialize();
// Description:
// Access to information.
vtkGetMacro(DataSetType, int);
vtkGetMacro(CompositeDataSetType, int);
const char *GetDataSetTypeAsString();
int DataSetTypeIsA(const char* type);
vtkGetMacro(NumberOfPoints, vtkTypeInt64);
vtkGetMacro(NumberOfCells, vtkTypeInt64);
vtkGetMacro(NumberOfRows, vtkTypeInt64);
vtkGetMacro(MemorySize, int);
vtkGetMacro(PolygonCount, int);
vtkGetMacro(NumberOfDataSets, int);
vtkGetVector6Macro(Bounds, double);
// Description:
// Returns a string describing the datatype that can be directly
// shown in a user interface.
const char* GetPrettyDataTypeString();
// Description:
// Of course Extent is only valid for structured data sets.
// Extent is the largest extent that contains all the parts.
vtkGetVector6Macro(Extent, int);
// Description:
// Access to information about points. Only valid for subclasses
// of vtkPointSet.
vtkGetObjectMacro(PointArrayInformation,vtkPVArrayInformation);
// Description:
// Access to information about point/cell/vertex/edge/row data.
vtkGetObjectMacro(PointDataInformation, vtkPVDataSetAttributesInformation);
vtkGetObjectMacro(CellDataInformation, vtkPVDataSetAttributesInformation);
vtkGetObjectMacro(VertexDataInformation, vtkPVDataSetAttributesInformation);
vtkGetObjectMacro(EdgeDataInformation, vtkPVDataSetAttributesInformation);
vtkGetObjectMacro(RowDataInformation, vtkPVDataSetAttributesInformation);
// Description:
// Accesse to information about field data, if any.
vtkGetObjectMacro(FieldDataInformation,vtkPVDataSetAttributesInformation);
// Description:
// Method to access vtkPVDataSetAttributesInformation using field association
// type.
// \c fieldAssociation can be vtkDataObject::FIELD_ASSOCIATION_POINTS,
// vtkDataObject::FIELD_ASSOCIATION_CELLS etc.
// (use vtkDataObject::FIELD_ASSOCIATION_NONE for field data).
vtkPVDataSetAttributesInformation* GetAttributeInformation(int fieldAssociation);
// Description:
// If data is composite, this provides information specific to
// composite datasets.
vtkGetObjectMacro(CompositeDataInformation,vtkPVCompositeDataInformation);
// Description:
// Given the flat-index for a node in a composite dataset, this method returns
// the data information for the node, it available.
vtkPVDataInformation* GetDataInformationForCompositeIndex(int index);
// Description:
// This is same as GetDataInformationForCompositeIndex() however note that the
// index will get modified in this method.
vtkPVDataInformation* GetDataInformationForCompositeIndex(int* index);
// Description:
// ClassName of the data represented by information object.
vtkGetStringMacro(DataClassName);
// Description:
// The least common class name of composite dataset blocks
vtkGetStringMacro(CompositeDataClassName);
vtkGetVector2Macro(TimeSpan, double);
// Description:
// Returns if the Time is set.
vtkGetMacro(HasTime, int);
// Description:
// Returns the data time if, GetHasTime() return true.
vtkGetMacro(Time, double);
// Description:
// Returns the label that should be used instead of "Time" if any.
vtkGetStringMacro(TimeLabel);
// Description:
// Returns if the data type is structured.
int IsDataStructured();
// Description:
// If this instance of vtkPVDataInformation summarizes a node in a
// composite-dataset, and if that node has been given a label in that
// composite dataset (using vtkCompositeDataSet::NAME meta-data), then this
// will return that name. Returns NULL if this instance doesn't represent a
// node in a composite dataset or doesn't have a label/name associated with
// it.
vtkGetStringMacro(CompositeDataSetName);
// Description:
// Allows run time addition of information getters for new classes
static void RegisterHelper(const char *classname,
const char *helperclassname);
// Description:
// Specify whether or not to sort the point data, cell data,
// and field data arrays. The default is to sort.
vtkGetMacro(SortArrays, bool);
void SetSortArrays(bool);
protected:
vtkPVDataInformation();
~vtkPVDataInformation();
void DeepCopy(vtkPVDataInformation *dataInfo, bool copyCompositeInformation=true);
void AddFromMultiPieceDataSet(vtkCompositeDataSet* data);
void CopyFromCompositeDataSet(vtkCompositeDataSet* data);
void CopyFromCompositeDataSetInitialize(vtkCompositeDataSet* data);
void CopyFromCompositeDataSetFinalize(vtkCompositeDataSet* data);
virtual void CopyFromDataSet(vtkDataSet* data);
void CopyFromGenericDataSet(vtkGenericDataSet *data);
void CopyFromGraph(vtkGraph* graph);
void CopyFromTable(vtkTable* table);
void CopyFromSelection(vtkSelection* selection);
void CopyCommonMetaData(vtkDataObject*, vtkInformation*);
static vtkPVDataInformationHelper *FindHelper(const char *classname);
// Data information collected from remote processes.
int DataSetType;
int CompositeDataSetType;
int NumberOfDataSets;
vtkTypeInt64 NumberOfPoints;
vtkTypeInt64 NumberOfCells;
vtkTypeInt64 NumberOfRows;
int MemorySize;
vtkIdType PolygonCount;
double Bounds[6];
int Extent[6];
double TimeSpan[2];
double Time;
int HasTime;
char* DataClassName;
vtkSetStringMacro(DataClassName);
char* TimeLabel;
vtkSetStringMacro(TimeLabel);
char* CompositeDataClassName;
vtkSetStringMacro(CompositeDataClassName);
char* CompositeDataSetName;
vtkSetStringMacro(CompositeDataSetName);
vtkPVDataSetAttributesInformation* PointDataInformation;
vtkPVDataSetAttributesInformation* CellDataInformation;
vtkPVDataSetAttributesInformation* FieldDataInformation;
vtkPVDataSetAttributesInformation* VertexDataInformation;
vtkPVDataSetAttributesInformation* EdgeDataInformation;
vtkPVDataSetAttributesInformation* RowDataInformation;
vtkPVCompositeDataInformation* CompositeDataInformation;
vtkPVArrayInformation* PointArrayInformation;
friend class vtkPVDataInformationHelper;
friend class vtkPVCompositeDataInformation;
private:
vtkPVDataInformation(const vtkPVDataInformation&); // Not implemented
void operator=(const vtkPVDataInformation&); // Not implemented
int PortNumber;
bool SortArrays;
};
#endif
|