23 #ifndef vtkSMPVRepresentationProxy_h 24 #define vtkSMPVRepresentationProxy_h 32 #include <unordered_map> 50 void SetLastBlockLUTProxy(
vtkSMProxy* proxy,
const std::string& blockSelector);
51 vtkSMProxy* GetLastBlockLUTProxy(
const std::string& blockSelector);
60 virtual bool GetUsingScalarColoring();
61 virtual bool GetBlockUsingScalarColoring(
const std::string& blockSelector);
62 virtual bool GetAnyBlockUsingScalarColoring();
83 return self ?
self->GetUsingScalarColoring() :
false;
92 static void SetupLookupTable(
vtkSMProxy* proxy);
102 bool UpdateScalarBarRange(
vtkSMProxy* view,
bool deleteRange);
103 bool UpdateBlockScalarBarRange(
104 vtkSMProxy* view,
const std::string& blockSelector,
bool deleteRange);
114 virtual bool SetScalarColoring(
const char* arrayName,
int attributeType);
115 virtual bool SetBlockScalarColoring(
116 const std::string& blockSelector,
const char* arrayName,
int attributeType);
129 virtual bool SetScalarColoring(
const char* arrayName,
int attributeType,
int component);
130 virtual bool SetBlockScalarColoring(
131 const std::string& blockSelector,
const char* arrayName,
int attributeType,
int component);
139 static
bool SetScalarColoring(
vtkSMProxy* proxy,
const char* arrayName,
int attributeType)
142 return self ?
self->SetScalarColoring(arrayName, attributeType) :
false;
152 static
bool SetScalarColoring(
153 vtkSMProxy* proxy,
const char* arrayName,
int attributeType,
int component)
156 return self ?
self->SetScalarColoring(arrayName, attributeType,
component) :
false;
175 virtual bool RescaleTransferFunctionToDataRange(
bool extend =
false,
bool force =
true);
176 virtual bool RescaleBlockTransferFunctionToDataRange(
177 const std::string& blockSelector,
bool extend =
false,
bool force =
true);
198 virtual bool RescaleTransferFunctionToDataRange(
199 const char* arrayName,
int attributeType,
bool extend =
false,
bool force =
true);
200 virtual bool RescaleBlockTransferFunctionToDataRange(
const std::string& blockSelector,
201 const char* arrayName,
int attributeType,
bool extend =
false,
bool force =
true);
210 static
bool RescaleTransferFunctionToDataRange(
211 vtkSMProxy* proxy,
bool extend = false,
bool force = true)
214 return self ?
self->RescaleTransferFunctionToDataRange(extend, force) :
false;
224 static
bool RescaleTransferFunctionToDataRange(
vtkSMProxy* proxy,
const char* arrayName,
225 int attributeType,
bool extend = false,
bool force = true)
228 return self ?
self->RescaleTransferFunctionToDataRange(arrayName, attributeType, extend, force)
238 virtual bool RescaleTransferFunctionToDataRangeOverTime();
239 virtual bool RescaleBlockTransferFunctionToDataRangeOverTime(
const std::string& blockSelector);
249 virtual bool RescaleTransferFunctionToDataRangeOverTime(
const char* arrayName,
int attributeType);
250 virtual bool RescaleBlockTransferFunctionToDataRangeOverTime(
251 const std::string& blockSelector,
const char* arrayName,
int attributeType);
260 static
bool RescaleTransferFunctionToDataRangeOverTime(
vtkSMProxy* proxy)
263 return self ?
self->RescaleTransferFunctionToDataRangeOverTime() :
false;
273 static
bool RescaleTransferFunctionToDataRangeOverTime(
277 return self ?
self->RescaleTransferFunctionToDataRangeOverTime(arrayName, attributeType)
287 virtual bool RescaleTransferFunctionToVisibleRange(
vtkSMProxy* view);
288 virtual bool RescaleBlockTransferFunctionToVisibleRange(
289 vtkSMProxy* view,
const std::string& blockSelector);
290 virtual bool RescaleTransferFunctionToVisibleRange(
291 vtkSMProxy* view,
const char* arrayName,
int attributeType);
292 virtual bool RescaleBlockTransferFunctionToVisibleRange(
293 vtkSMProxy* view,
const std::string& blockSelector,
const char* arrayName,
int attributeType);
305 return self ?
self->RescaleTransferFunctionToVisibleRange(view) :
false;
308 static
bool RescaleTransferFunctionToVisibleRange(
312 return self ?
self->RescaleTransferFunctionToVisibleRange(view, arrayName, attributeType)
322 virtual bool SetScalarBarVisibility(
vtkSMProxy* view,
bool visible);
323 virtual bool SetBlockScalarBarVisibility(
324 vtkSMProxy* view,
const std::string& blockSelector,
bool visible);
329 return self ?
self->SetScalarBarVisibility(view, visible) :
false;
343 virtual bool HideScalarBarIfNotNeeded(
vtkSMProxy* view);
348 return self ?
self->HideScalarBarIfNotNeeded(view) :
false;
357 virtual bool IsScalarBarVisible(
vtkSMProxy* view);
358 virtual bool IsBlockScalarBarVisible(
vtkSMProxy* view,
const std::string& blockSelector);
363 return self ?
self->IsScalarBarVisible(view) :
false;
375 const std::string& blockSelector,
bool checkRepresentedData =
true);
378 vtkSMProxy* proxy,
bool checkRepresentedData = true)
381 return self ?
self->GetArrayInformationForColorArray(checkRepresentedData) :
nullptr;
391 double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
bool force =
false);
393 const std::string& blockSelector,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
397 vtkSMProxy* proxy,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
bool force = false)
401 ?
self->GetProminentValuesInformationForColorArray(uncertaintyAllowed, fraction, force)
409 int GetEstimatedNumberOfAnnotationsOnScalarBar(
vtkSMProxy* view);
410 int GetBlockEstimatedNumberOfAnnotationsOnScalarBar(
411 vtkSMProxy* view,
const std::string& blockSelector);
416 return self ?
self->GetEstimatedNumberOfAnnotationsOnScalarBar(view) : -1;
430 bool GetVolumeIndependentRanges();
442 int IsScalarBarStickyVisible(
vtkSMProxy* view);
443 int IsBlockScalarBarStickyVisible(
vtkSMProxy* view,
const std::string& blockSelector);
455 void SetBlockColorArray(
456 const std::string& blockSelector,
int attributeType, std::string arrayName);
457 std::pair<int, std::string> GetBlockColorArray(
const std::string& blockSelector);
460 return this->GetBlockColorArray(blockSelector).first;
464 return this->GetBlockColorArray(blockSelector).second;
472 void SetBlockUseSeparateColorMap(
const std::string& blockSelector,
bool use);
473 bool GetBlockUseSeparateColorMap(
const std::string& blockSelector);
484 "exposed functions of the helper instead")
485 virtual bool RescaleTransferFunctionToDataRange(
496 void OnPropertyUpdated(
vtkObject*,
unsigned long,
void* calldata);
515 "exposed functions of the helper instead")
516 std::string GetDecoratedArrayName(
const std::string& arrayName);
522 "exposed functions of the helper instead")
523 virtual bool SetScalarColoringInternal(
524 const char* arrayName,
int attributeType,
bool useComponent,
int component);
538 bool InReadXMLAttributes;
539 std::set<std::string> RepresentationSubProxies;
Proxy for a representations.
void CreateVTKObjects() override
Call superclass' and then assigns a new executive (vtkCompositeDataPipeline)
#define PARAVIEW_DEPRECATED_IN_5_12_0(reason)
std::unordered_map< std::string, vtkSmartPointer< vtkSMProxy > > LastBlockLUTProxies
#define VTKREMOTINGVIEWS_EXPORT
representation for "Render View" like views in ParaView.
int GetBlockColorArrayAssociation(const std::string &blockSelector)
Set/Get the block color array name.
virtual void SetPropertyModifiedFlag(const char *name, int flag)
Note on property modified flags: The modified flag of each property associated with a proxy is stored...
virtual bool SetRepresentationType(const char *type)
Set the representation type.
void PrintSelf(ostream &os, vtkIndent indent) override
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
std::string GetBlockColorArrayName(const std::string &blockSelector)
Set/Get the block color array name.
proxy for a VTK object(s) on a server
vtkSmartPointer< vtkSMProxy > LastLUTProxy
Used as a memory of what was the last LUT proxy linked to this representation.
int ReadXMLAttributes(vtkSMSessionProxyManager *pm, vtkPVXMLElement *element) override
Read attributes from an XML element.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
static vtkSMRepresentationProxy * New()
virtual void ViewUpdated(vtkSMProxy *view)
Called after the view updates.
static vtkSMPVRepresentationProxy * SafeDownCast(vtkObject *o)