/usr/include/paraview/vtkPVComparativeAnimationCue.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 | /*=========================================================================
Program: ParaView
Module: $RCSfile$
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 vtkPVComparativeAnimationCue - cue used for parameter animation by the
// comparative view.
// .SECTION Description
// vtkPVComparativeAnimationCue is a animation cue used for parameter
// animation by the ComparativeView. It provides a non-conventional
// API i.e. without using properties to allow the user to setup parameter
// values over the comparative grid.
#ifndef vtkPVComparativeAnimationCue_h
#define vtkPVComparativeAnimationCue_h
#include "vtkPVServerManagerRenderingModule.h" //needed for exports
#include "vtkObject.h"
class vtkSMDomain;
class vtkSMProperty;
class vtkSMProxy;
class vtkPVXMLElement;
class VTKPVSERVERMANAGERRENDERING_EXPORT vtkPVComparativeAnimationCue : public vtkObject
{
public:
static vtkPVComparativeAnimationCue* New();
vtkTypeMacro(vtkPVComparativeAnimationCue, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/Get the animated proxy.
void SetAnimatedProxy(vtkSMProxy*);
vtkGetObjectMacro(AnimatedProxy, vtkSMProxy);
void RemoveAnimatedProxy();
// Description:
// Set/Get the animated property name.
vtkSetStringMacro(AnimatedPropertyName);
vtkGetStringMacro(AnimatedPropertyName);
// Description:
// Set/Get the animated domain name.
vtkSetStringMacro(AnimatedDomainName);
vtkGetStringMacro(AnimatedDomainName);
// Description:
// The index of the element of the property this cue animates.
// If the index is -1, the cue will animate all the elements
// of the animated property.
vtkSetMacro(AnimatedElement, int);
vtkGetMacro(AnimatedElement, int);
// Description:
// Enable/Disable the cue.
vtkSetMacro(Enabled, bool);
vtkGetMacro(Enabled, bool);
vtkBooleanMacro(Enabled, bool);
// Description
// Methods use to fill up the values for the parameter over the comparative
// grid. These are order dependent methods i.e. the result of calling
// UpdateXRange() and then UpdateYRange() are different from calling
// UpdateYRange() and then UpdateXRange().
// These methods are convenience methods when the value can only be a single
// value.
void UpdateXRange(int y, double minx, double maxx)
{ this->UpdateXRange(y, &minx, &maxx, 1); }
void UpdateYRange(int x, double miny, double maxy)
{ this->UpdateYRange(x, &miny, &maxy, 1); }
void UpdateWholeRange(double mint, double maxt)
{ this->UpdateWholeRange(&mint, &maxt, 1); }
void UpdateValue(int x, int y, double value)
{ this->UpdateValue(x, y, &value, 1); }
// Description:
// Use these methods when the parameter can have multiple values eg. IsoValues
// for the Contour filter. The "AnimatedElement" for such properties must be
// set to -1, otherwise UpdateAnimatedValue() will raise an error.
void UpdateXRange(int y, double *minx, double* maxx, unsigned int numvalues);
void UpdateYRange(int x, double *minx, double* maxx, unsigned int numvalues);
void UpdateWholeRange(double *mint, double *maxt, unsigned int numValues)
{
this->UpdateWholeRange(mint, maxt, numValues, false);
}
void UpdateWholeRange(double *mint, double *maxt, unsigned int numValues,
bool vertical_first);
void UpdateValue(int x, int y, double *value, unsigned int numValues);
// Description:
// Update the animated property's value based on those specified using the
// Update.* methods. (x,y) is the location in the comparative grid, while
// (dx, dy) are the dimensions of the comparative grid.
void UpdateAnimatedValue(int x, int y, int dx, int dy);
// Description:
// Computes the value for a particular location in the comparative grid.
// (x,y) is the location in the comparative grid, while
// (dx, dy) are the dimensions of the comparative grid.
double GetValue(int x, int y, int dx, int dy)
{
unsigned int numValues=0;
double* vals = this->GetValues(x, y, dx, dy, numValues);
if (numValues > 0)
{
return vals[0];
}
return -1.0;
}
// Description:
// NOTE: Returned values is only valid until the next call to this method.
// Return value is only valid when numValues > 0.
double* GetValues(int x, int y, int dx, int dy, unsigned int &numValues);
vtkPVXMLElement* AppendCommandInfo(vtkPVXMLElement* proxyElem);
int LoadCommandInfo(vtkPVXMLElement* proxyElement);
//BTX
protected:
vtkPVComparativeAnimationCue();
~vtkPVComparativeAnimationCue();
// Description:
// Get the property being animated.
vtkSMProperty* GetAnimatedProperty();
// Description:
// Get the domain being animated.
vtkSMDomain* GetAnimatedDomain();
vtkSMProxy* AnimatedProxy;
int AnimatedElement;
char* AnimatedPropertyName;
char* AnimatedDomainName;
double* Values;
bool Enabled;
private:
vtkPVComparativeAnimationCue(const vtkPVComparativeAnimationCue&); // Not implemented
void operator=(const vtkPVComparativeAnimationCue&); // Not implemented
class vtkInternals;
vtkInternals* Internals;
//ETX
};
#endif
|