/usr/include/paraview/vtkSMGlobalPropertiesLinkUndoElement.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 | /*=========================================================================
Program: ParaView
Module: vtkSMGlobalPropertiesLinkUndoElement.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 vtkSMGlobalPropertiesLinkUndoElement
// .SECTION Description
// This UndoElement is used to link or unlink GlobalPropertyManager property
// to a property of an arbitrary Proxy.
// This class is automatically build inside the vtkSMProxyManager when
// GlobalPropertyLinks are changed.
// FIXME: This class is currrently non-functional. I need to re-energize this
// class. It's falling down the priority chain for now.
#ifndef vtkSMGlobalPropertiesLinkUndoElement_h
#define vtkSMGlobalPropertiesLinkUndoElement_h
#include "vtkPVServerManagerCoreModule.h" //needed for exports
#include "vtkSMUndoElement.h"
class vtkSMProxy;
class VTKPVSERVERMANAGERCORE_EXPORT vtkSMGlobalPropertiesLinkUndoElement : public vtkSMUndoElement
{
public:
static vtkSMGlobalPropertiesLinkUndoElement* New();
vtkTypeMacro(vtkSMGlobalPropertiesLinkUndoElement, vtkSMUndoElement);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Undo the operation encapsulated by this element.
virtual int Undo();
// Description:
// Redo the operation encaspsulated by this element.
virtual int Redo();
// Description:
// Provide the informations needed to restore the previous state
void SetLinkState( const char* mgrname,
const char* globalpropname,
vtkSMProxy* proxy, const char* propname, bool isAddAction);
//BTX
protected:
vtkSMGlobalPropertiesLinkUndoElement();
~vtkSMGlobalPropertiesLinkUndoElement();
// State ivars
char* GlobalPropertyManagerName;
char* GlobalPropertyName;
vtkTypeUInt32 ProxyGlobalID;
char* ProxyPropertyName;
bool IsLinkAdded;
// Setter for iVar
vtkSetStringMacro(GlobalPropertyManagerName);
vtkSetStringMacro(GlobalPropertyName);
vtkSetStringMacro(ProxyPropertyName);
int UndoRedoInternal(bool undo);
private:
vtkSMGlobalPropertiesLinkUndoElement(const vtkSMGlobalPropertiesLinkUndoElement&); // Not implemented
void operator=(const vtkSMGlobalPropertiesLinkUndoElement&); // Not implemented
//ETX
};
#endif
|