/usr/include/vtk-6.3/vtkCompositeDataSet.h is in libvtk6-dev 6.3.0+dfsg1-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 125 126 127 128 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkCompositeDataSet.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.
=========================================================================*/
// .NAME vtkCompositeDataSet - abstract superclass for composite
// (multi-block or AMR) datasets
// .SECTION Description
// vtkCompositeDataSet is an abstract class that represents a collection
// of datasets (including other composite datasets). It
// provides an interface to access the datasets through iterators.
// vtkCompositeDataSet provides methods that are used by subclasses to store the
// datasets.
// vtkCompositeDataSet provides the datastructure for a full tree
// representation. Subclasses provide the semantics for it and control how
// this tree is built.
// .SECTION See Also
// vtkCompositeDataIterator
#ifndef vtkCompositeDataSet_h
#define vtkCompositeDataSet_h
#include "vtkCommonDataModelModule.h" // For export macro
#include "vtkDataObject.h"
class vtkCompositeDataIterator;
class vtkCompositeDataSetInternals;
class vtkInformation;
class vtkInformationStringKey;
class vtkInformationIntegerKey;
class VTKCOMMONDATAMODEL_EXPORT vtkCompositeDataSet : public vtkDataObject
{
public:
vtkTypeMacro(vtkCompositeDataSet, vtkDataObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Return a new iterator (the iterator has to be deleted by user).
virtual vtkCompositeDataIterator* NewIterator() =0;
// Description:
// Return class name of data type (see vtkType.h for
// definitions).
virtual int GetDataObjectType() {return VTK_COMPOSITE_DATA_SET;}
// Description:
// Copies the tree structure from the input. All pointers to non-composite
// data objects are intialized to NULL. This also shallow copies the meta data
// associated with all the nodes.
virtual void CopyStructure(vtkCompositeDataSet* input)=0;
// Description:
// Sets the data set at the location pointed by the iterator.
// The iterator does not need to be iterating over this dataset itself. It can
// be any composite datasite with similar structure (achieved by using
// CopyStructure).
virtual void SetDataSet(vtkCompositeDataIterator* iter, vtkDataObject* dataObj)=0;
// Description:
// Returns the dataset located at the positiong pointed by the iterator.
// The iterator does not need to be iterating over this dataset itself. It can
// be an iterator for composite dataset with similar structure (achieved by
// using CopyStructure).
virtual vtkDataObject* GetDataSet(vtkCompositeDataIterator* iter)=0;
// Description:
// Return the actual size of the data in kibibytes (1024 bytes). This number
// is valid only after the pipeline has updated.
virtual unsigned long GetActualMemorySize();
//BTX
// Description:
// Retrieve an instance of this class from an information object.
static vtkCompositeDataSet* GetData(vtkInformation* info);
static vtkCompositeDataSet* GetData(vtkInformationVector* v, int i=0);
//ETX
// Description:
// Restore data object to initial state,
virtual void Initialize();
// Description:
// Shallow and Deep copy.
virtual void ShallowCopy(vtkDataObject *src);
virtual void DeepCopy(vtkDataObject *src);
// Description:
// Returns the total number of points of all blocks. This will
// iterate over all blocks and call GetNumberOfPoints() so it
// might be expansive.
virtual vtkIdType GetNumberOfPoints();
// Description:
// Key used to put node name in the meta-data associated with a node.
static vtkInformationStringKey* NAME();
// Description:
// Key used to indicate that the current process can load the data
// in the node. Used for parallel readers where the nodes are assigned
// to the processes by the reader to indicate further down the pipeline
// which nodes will be on which processes.
// ***THIS IS AN EXPERIMENTAL KEY SUBJECT TO CHANGE WITHOUT NOTICE***
static vtkInformationIntegerKey* CURRENT_PROCESS_CAN_LOAD_BLOCK();
//BTX
protected:
vtkCompositeDataSet();
virtual ~vtkCompositeDataSet();
private:
vtkCompositeDataSet(const vtkCompositeDataSet&); // Not implemented.
void operator=(const vtkCompositeDataSet&); // Not implemented.
//ETX
};
#endif
|