/usr/include/paraview/vtkSMVectorProperty.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 | /*=========================================================================
Program: ParaView
Module: vtkSMVectorProperty.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 vtkSMVectorProperty - abstract superclass for all vector properties
// .SECTION Description
// vtkSMVectorProperty defines an interface common to all vector properties
// as well as some common settings. A vector property contains a list
// of values passed to one or more invocations of a command. How the
// values are distributed to the different invocations is controlled
// by several parameters.
#ifndef vtkSMVectorProperty_h
#define vtkSMVectorProperty_h
#include "vtkPVServerManagerCoreModule.h" //needed for exports
#include "vtkSMProperty.h"
class VTKPVSERVERMANAGERCORE_EXPORT vtkSMVectorProperty : public vtkSMProperty
{
public:
vtkTypeMacro(vtkSMVectorProperty, vtkSMProperty);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Returns the size of the vector.
virtual unsigned int GetNumberOfElements() = 0;
// Description:
// Sets the size of the vector.
virtual void SetNumberOfElements(unsigned int num) = 0;
// Description:
// API for setting unchecked element values.
virtual unsigned int GetNumberOfUncheckedElements() = 0;
virtual void SetNumberOfUncheckedElements(unsigned int num) = 0;
virtual void ClearUncheckedElements() = 0;
// Description:
// If RepeatCommand is true, the command is invoked multiple times,
// each time with NumberOfElementsPerCommand values. For example, if
// RepeatCommand is true, NumberOfElementsPerCommand is 2, the
// command is SetFoo and the values are 1 2 3 4 5 6, the resulting
// stream will have:
// @verbatim
// * Invoke obj SetFoo 1 2
// * Invoke obj SetFoo 3 4
// * Invoke obj SetFoo 5 6
// @endverbatim
vtkGetMacro(RepeatCommand, int);
vtkSetMacro(RepeatCommand, int);
vtkBooleanMacro(RepeatCommand, int);
// Description:
// If RepeatCommand is true, the command is invoked multiple times,
// each time with NumberOfElementsPerCommand values. For example, if
// RepeatCommand is true, NumberOfElementsPerCommand is 2, the
// command is SetFoo and the values are 1 2 3 4 5 6, the resulting
// stream will have:
// @verbatim
// * Invoke obj SetFoo 1 2
// * Invoke obj SetFoo 3 4
// * Invoke obj SetFoo 5 6
// @endverbatim
vtkGetMacro(NumberOfElementsPerCommand, int);
vtkSetMacro(NumberOfElementsPerCommand, int);
// Description:
// If UseIndex and RepeatCommand are true, the property will add
// an index integer before each command. For example, if UseIndex and
// RepeatCommand are true, NumberOfElementsPerCommand is 2, the
// command is SetFoo and the values are 5 6 7 8 9 10, the resulting
// stream will have:
// @verbatim
// * Invoke obj SetFoo 0 5 6
// * Invoke obj SetFoo 1 7 8
// * Invoke obj SetFoo 2 9 10
// @endverbatim
vtkGetMacro(UseIndex, int);
vtkSetMacro(UseIndex, int);
vtkBooleanMacro(UseIndex, int);
// Description:
// Command that can be used to remove all values.
// Typically used when RepeatCommand = 1. If set, the clean command
// is called before the main Command.
vtkSetStringMacro(CleanCommand);
vtkGetStringMacro(CleanCommand);
// Description:
// Copy all property values.
virtual void Copy(vtkSMProperty* src);
// Description:
// If SetNumberCommand is set, it is called before Command
// with the number of arguments as the parameter.
vtkSetStringMacro(SetNumberCommand);
vtkGetStringMacro(SetNumberCommand);
vtkSetStringMacro(InitialString);
vtkGetStringMacro(InitialString);
// Description:
// Overridden to add support to load defaults from
// this->GetInformationProperty(), if one exists. If the superclass (which
// checks for defaults from all domains) doesn't end up picking a default, as
// a last resort, we check if the property has a non-empty \c information_property.
// If so, we copy its values to this property as the default.
virtual bool ResetToDomainDefaults(bool use_unchecked_values=false);
protected:
vtkSMVectorProperty();
~vtkSMVectorProperty();
int RepeatCommand;
int NumberOfElementsPerCommand;
int UseIndex;
char* CleanCommand;
char* SetNumberCommand;
char* InitialString;
// Description:
// Set the appropriate ivars from the xml element.
virtual int ReadXMLAttributes(vtkSMProxy* parent,
vtkPVXMLElement* element);
private:
vtkSMVectorProperty(const vtkSMVectorProperty&); // Not implemented
void operator=(const vtkSMVectorProperty&); // Not implemented
};
#endif
|