/usr/include/paraview/vtkSMCompositeTreeDomain.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 | /*=========================================================================
Program: ParaView
Module: vtkSMCompositeTreeDomain.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 vtkSMCompositeTreeDomain - domain used to restrict an
// vtkSMIntVectorProperty values to valid \c flat-index for a
// vtkCompositeDataSet.
// .SECTION Description
// vtkSMCompositeTreeDomain can be added to a vtkSMIntVectorProperty. This
// domain requires a vtkSMInputProperty which is used to provide the input to
// the filter. This domain obtains data information from the input selected on
// the required input property and then decides the range for the flat-index. A
// flat index for a tree is obtained by performing a pre-order traversal of the
// tree eg. A ( B ( D, E), C (F, G)) becomes: [A,B,D,E,C,F,G], so flat-index of A is
// 0, while flat-index of C is 4.
#ifndef vtkSMCompositeTreeDomain_h
#define vtkSMCompositeTreeDomain_h
#include "vtkPVServerManagerCoreModule.h" //needed for exports
#include "vtkSMDomain.h"
#include "vtkWeakPointer.h" // needed for vtkWeakPointer.
class vtkPVDataInformation;
class vtkSMInputProperty;
class vtkSMSourceProxy;
// TODO: CHANGE NAME OF THIS CLASS
class VTKPVSERVERMANAGERCORE_EXPORT vtkSMCompositeTreeDomain : public vtkSMDomain
{
public:
static vtkSMCompositeTreeDomain* New();
vtkTypeMacro(vtkSMCompositeTreeDomain, vtkSMDomain);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Called when the 'required-property' is modified. The property must be a
// vtkSMInputProperty. This will obtain the composite data information for the
// input source and then determine the valid range for the flat-index.
virtual void Update(vtkSMProperty* input);
// Description:
// Get the vtkPVDataInformation which provides the tree structure for the
// composite dataset.
vtkGetObjectMacro(Information, vtkPVDataInformation);
// Description:
// Returns the source proxy whose data information is returned by
// GetInformation().
vtkSMSourceProxy* GetSource();
// Description:
// Returns the port for the source proxy from which the data information is
// obtained by GetInformation().
vtkGetMacro(SourcePort, int);
// Description:
// Is the (unchecked) value of the property in the domain? Overwritten by
// sub-classes.
virtual int IsInDomain(vtkSMProperty* vtkNotUsed(property)) {return 1; }
// Description:
// Mode indicates if the property is interested in all nodes, leaves only or
// non-leaves only. Can be configured in XML using the "mode" attribute.
// Values can be "all", "leaves", "non-leaves". Default is all nodes.
vtkGetMacro(Mode, int);
vtkSetMacro(Mode, int);
//BTX
enum
{
ALL=0,
LEAVES=1,
NON_LEAVES=2,
NONE=3
};
//ETX
// Description:
// A vtkSMProperty is often defined with a default value in the
// XML itself. However, many times, the default value must be determined
// at run time. To facilitate this, domains can override this method
// to compute and set the default value for the property.
// Note that unlike the compile-time default values, the
// application must explicitly call this method to initialize the
// property.
// Returns 1 if the domain updated the property.
virtual int SetDefaultValues(vtkSMProperty*, bool use_unchecked_values);
//BTX
protected:
vtkSMCompositeTreeDomain();
~vtkSMCompositeTreeDomain();
virtual int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element);
// Description:
// Internal implementation called by Update(vtkSMProperty*);
void Update(vtkSMInputProperty* iproperty);
void InvokeModifiedIfChanged();
void SetInformation(vtkPVDataInformation*);
vtkPVDataInformation* Information;
vtkTimeStamp UpdateTime;
vtkPVDataInformation* LastInformation; // not reference counted.
vtkWeakPointer<vtkSMSourceProxy> Source;
int Mode;
int SourcePort;
private:
vtkSMCompositeTreeDomain(const vtkSMCompositeTreeDomain&); // Not implemented
void operator=(const vtkSMCompositeTreeDomain&); // Not implemented
//ETX
};
#endif
|