64 #ifndef vtkSMRepresentationProxy_h 65 #define vtkSMRepresentationProxy_h 70 #include <unordered_map> 75 class vtkCloningVectorOfRepresentations;
83 void PrintSelf(ostream& os,
vtkIndent indent)
override;
108 int fieldAssoc,
int numComponents,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
111 std::string blockSelector, std::string assemblyName, std::string name,
int fieldAssoc,
112 int numComponents,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
120 void UpdatePipeline()
override;
126 void UpdatePipeline(
double time)
override;
131 void PostUpdateData(
bool)
override;
141 vtkTypeUInt32 GetGlobalID()
override;
152 virtual bool SetRepresentationType(
const char* type);
156 return self ?
self->SetRepresentationType(type) :
false;
158 const char* GetRepresentationType();
162 return self ?
self->GetRepresentationType() :
nullptr;
174 return self ?
self->IsVolumeRendering() :
false;
176 bool IsVolumeRendering();
180 return self ?
self->GetUsing2DTransferFunction() :
false;
182 bool GetUsing2DTransferFunction();
185 void MarkDirty(
vtkSMProxy* modifiedProxy)
override;
197 void MarkDirtyFromProducer(
207 void RemoveAllConsumers()
override;
209 void CreateVTKObjects()
override;
210 void OnVTKRepresentationUpdated();
211 void OnVTKRepresentationUpdateSkipped();
212 void OnVTKRepresentationUpdateTimeChanged();
214 virtual void UpdatePipelineInternal(
double time,
bool doTime);
219 void InvalidateDataInformation()
override;
230 bool RepresentedDataInformationValid;
233 bool ProminentValuesInformationValid;
235 double ProminentValuesFraction;
236 double ProminentValuesUncertainty;
238 std::unordered_map<std::string, bool> BlockProminentValuesInformationValid;
239 std::unordered_map<std::string, vtkPVProminentValuesInformation*> BlockProminentValuesInformation;
240 std::unordered_map<std::string, double> BlockProminentValuesFraction;
241 std::unordered_map<std::string, double> BlockProminentValuesUncertainty;
243 friend class vtkPVComparativeViewNS::vtkCloningVectorOfRepresentations;
244 void ClearMarkedModified() { this->MarkedModified =
false; }
246 bool VTKRepresentationUpdated;
247 bool VTKRepresentationUpdateSkipped;
248 bool VTKRepresentationUpdateTimeChanged;
250 std::string DebugName;
Proxy for a representations.
static vtkSMRepresentationProxy * SafeDownCast(vtkObject *o)
#define VTKREMOTINGVIEWS_EXPORT
superclass for all SM properties
static const char * GetRepresentationType(vtkSMProxy *repr)
Set the representation type.
proxy for a VTK source on a server
static bool SetRepresentationType(vtkSMProxy *repr, const char *type)
Set the representation type.
proxy for a VTK object(s) on a server
is used to locate proxies referred to in state xmls while loading state files.
static bool GetUsing2DTransferFunction(vtkSMProxy *repr)
Convenient method to check if this representation is currently rendering volumes, using 2D Transfer f...
static bool IsVolumeRendering(vtkSMProxy *repr)
Convenient method to check if this representation is currently rendering volumes, using 2D Transfer f...
This is used by vtkPVXMLParser to represent an XML document starting at the root element.