/usr/include/paraview/vtkSMRepresentationProxy.h is in paraview-dev 4.0.1-1ubuntu1.
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 | /*=========================================================================
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 vtkSMRepresentationProxy
// .SECTION Description
//
#ifndef __vtkSMRepresentationProxy_h
#define __vtkSMRepresentationProxy_h
#include "vtkPVServerManagerRenderingModule.h" //needed for exports
#include "vtkSMSourceProxy.h"
class vtkPVProminentValuesInformation;
class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMRepresentationProxy : public vtkSMSourceProxy
{
public:
static vtkSMRepresentationProxy* New();
vtkTypeMacro(vtkSMRepresentationProxy, vtkSMSourceProxy);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Calls MarkDirty() and invokes ModifiedEvent.
virtual void MarkDirty(vtkSMProxy* modifiedProxy);
// Description:
// Returns information about the data that is finally rendered by this
// representation.
virtual vtkPVDataInformation* GetRepresentedDataInformation();
// Description:
// Returns information about a specific array component's prominent values (or NULL).
//
// The \a name, \a fieldAssoc, and \a numComponents arguments specify
// which arrays on the input dataset to examine. Because multiblock
// datasets may have multiple arrays of the same name on different blocks,
// and these arrays may not have the same storage type or number of
// components, this method requires you to specify the number of
// components per tuple the array(s) of interest must have.
// You may call GetRepresentedDataInformation() to obtain the number of
// components for any array.
//
// See vtkAbstractArray::GetProminentComponentValues for more information
// about the \a uncertaintyAllowed and \a fraction arguments.
virtual vtkPVProminentValuesInformation* GetProminentValuesInformation(
vtkStdString name, int fieldAssoc, int numComponents,
double uncertaintyAllowed = 1e-6, double fraction = 1e-3);
// Description:
// Calls Update() on all sources. It also creates output ports if
// they are not already created.
virtual void UpdatePipeline();
// Description:
// Calls Update() on all sources with the given time request.
// It also creates output ports if they are not already created.
virtual void UpdatePipeline(double time);
// Description:
// Overridden to reset this->MarkedModified flag.
virtual void PostUpdateData();
// Description:
// Called after the view updates.
virtual void ViewUpdated(vtkSMProxy* view);
// Description:
// Overridden to reserve additional IDs for use by internal composite representation
virtual vtkTypeUInt32 GetGlobalID();
//BTX
protected:
vtkSMRepresentationProxy();
~vtkSMRepresentationProxy();
// Unlike subproxies in regular proxies, subproxies in representations
// typically represent internal representations e.g. label representation,
// representation for selection etc. In that case, if the internal
// representation is modified, we need to ensure that any of our consumers is
// a consumer of all our subproxies as well.
virtual void AddConsumer(vtkSMProperty* property, vtkSMProxy* proxy);
virtual void RemoveConsumer(vtkSMProperty* property, vtkSMProxy* proxy);
virtual void RemoveAllConsumers();
virtual void CreateVTKObjects();
void OnVTKRepresentationUpdated();
virtual void UpdatePipelineInternal(double time, bool doTime);
// Description:
// Mark the data information as invalid.
virtual void InvalidateDataInformation();
// Description:
// Overridden to restore this->Servers flag state.
virtual int LoadXMLState(vtkPVXMLElement* element, vtkSMProxyLocator* locator);
private:
vtkSMRepresentationProxy(const vtkSMRepresentationProxy&); // Not implemented
void operator=(const vtkSMRepresentationProxy&); // Not implemented
bool RepresentedDataInformationValid;
vtkPVDataInformation* RepresentedDataInformation;
bool ProminentValuesInformationValid;
vtkPVProminentValuesInformation* ProminentValuesInformation;
double ProminentValuesFraction;
double ProminentValuesUncertainty;
// Description:
// When ViewTime changes, we mark all inputs modified so that they fetch the
// updated data information.
void ViewTimeChanged();
friend class vtkSMViewProxy;
friend class vtkPVComparativeView;
void ClearMarkedModified() { this->MarkedModified = false; }
bool MarkedModified;
//ETX
};
#endif
|