33 #ifndef vtkSMPVRepresentationProxy_h 34 #define vtkSMPVRepresentationProxy_h 53 virtual bool GetUsingScalarColoring();
63 return self ?
self->GetUsingScalarColoring() :
false;
73 virtual bool SetScalarColoring(
const char* arrayname,
int attribute_type);
84 virtual bool SetScalarColoring(
const char* arrayname,
int attribute_type,
int component);
94 return self ?
self->SetScalarColoring(arrayname, attribute_type) :
false;
104 vtkSMProxy* proxy,
const char* arrayname,
int attribute_type,
int component)
107 return self ?
self->SetScalarColoring(arrayname, attribute_type, component) :
false;
123 virtual bool RescaleTransferFunctionToDataRange(
bool extend =
false,
bool force =
true);
140 virtual bool RescaleTransferFunctionToDataRange(
141 const char* arrayname,
int attribute_type,
bool extend =
false,
bool force =
true);
149 vtkSMProxy* proxy,
bool extend =
false,
bool force =
true)
152 return self ?
self->RescaleTransferFunctionToDataRange(extend, force) :
false;
162 int attribute_type,
bool extend =
false,
bool force =
true)
165 return self ?
self->RescaleTransferFunctionToDataRange(arrayname, attribute_type, extend, force)
174 virtual bool RescaleTransferFunctionToDataRangeOverTime();
182 virtual bool RescaleTransferFunctionToDataRangeOverTime(
183 const char* arrayname,
int attribute_type);
193 return self ?
self->RescaleTransferFunctionToDataRangeOverTime() :
false;
203 vtkSMProxy* proxy,
const char* arrayname,
int attribute_type)
206 return self ?
self->RescaleTransferFunctionToDataRangeOverTime(arrayname, attribute_type)
216 virtual bool RescaleTransferFunctionToVisibleRange(
vtkSMProxy* view);
217 virtual bool RescaleTransferFunctionToVisibleRange(
218 vtkSMProxy* view,
const char* arrayname,
int attribute_type);
229 return self ?
self->RescaleTransferFunctionToVisibleRange(view) :
false;
235 return self ?
self->RescaleTransferFunctionToVisibleRange(view, arrayname, attribute_type)
245 virtual bool SetScalarBarVisibility(
vtkSMProxy* view,
bool visible);
249 return self ?
self->SetScalarBarVisibility(view, visible) :
false;
261 virtual bool HideScalarBarIfNotNeeded(
vtkSMProxy* view);
265 return self ?
self->HideScalarBarIfNotNeeded(view) :
false;
274 virtual bool IsScalarBarVisible(
vtkSMProxy* view);
278 return self ?
self->IsScalarBarVisible(view) :
false;
290 vtkSMProxy* proxy,
bool checkRepresentedData =
true)
293 return self ?
self->GetArrayInformationForColorArray(checkRepresentedData) :
nullptr;
303 double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
bool force =
false);
305 vtkSMProxy* proxy,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3,
bool force =
false)
309 ?
self->GetProminentValuesInformationForColorArray(uncertaintyAllowed, fraction, force)
317 int GetEstimatedNumberOfAnnotationsOnScalarBar(
vtkSMProxy* view);
321 return self ?
self->GetEstimatedNumberOfAnnotationsOnScalarBar(view) : -1;
335 bool GetVolumeIndependentRanges();
347 int IsScalarBarStickyVisible(
vtkSMProxy* view);
357 virtual bool RescaleTransferFunctionToDataRange(
368 void OnPropertyUpdated(
vtkObject*,
unsigned long,
void* calldata);
386 std::string GetDecoratedArrayName(
const std::string& arrayname);
391 virtual bool SetScalarColoringInternal(
392 const char* arrayname,
int attribute_type,
bool useComponent,
int component);
398 bool InReadXMLAttributes;
400 vtkStringSet* RepresentationSubProxies;
Proxy for a representations.
static bool RescaleTransferFunctionToDataRange(vtkSMProxy *proxy, const char *arrayname, int attribute_type, bool extend=false, bool force=true)
Safely call RescaleTransferFunctionToDataRange() after casting the proxy to appropriate type...
void CreateVTKObjects() override
Call superclass' and then assigns a new executive (vtkCompositeDataPipeline)
#define VTKREMOTINGVIEWS_EXPORT
static bool RescaleTransferFunctionToVisibleRange(vtkSMProxy *proxy, vtkSMProxy *view, const char *arrayname, int attribute_type)
Safely call RescaleTransferFunctionToVisibleRange() after casting the proxy to the appropriate type...
representation for "Render View" like views in ParaView.
static bool RescaleTransferFunctionToDataRangeOverTime(vtkSMProxy *proxy, const char *arrayname, int attribute_type)
Safely call RescaleTransferFunctionToDataRangeOverTime() after casting the proxy to appropriate type...
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...
static bool SetScalarBarVisibility(vtkSMProxy *proxy, vtkSMProxy *view, bool visible)
Set the scalar bar visibility.
static int GetEstimatedNumberOfAnnotationsOnScalarBar(vtkSMProxy *proxy, vtkSMProxy *view)
static bool GetUsingScalarColoring(vtkSMProxy *proxy)
Safely call GetUsingScalarColoring() after casting the proxy to appropriate type. ...
static bool RescaleTransferFunctionToDataRange(vtkSMProxy *proxy, bool extend=false, bool force=true)
Safely call RescaleTransferFunctionToDataRange() after casting the proxy to appropriate type...
static vtkPVArrayInformation * GetArrayInformationForColorArray(vtkSMProxy *proxy, bool checkRepresentedData=true)
Returns the array information for the data array used for scalar coloring, from input data...
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...
static bool RescaleTransferFunctionToDataRangeOverTime(vtkSMProxy *proxy)
Safely call RescaleTransferFunctionToDataRangeOverTime() after casting the proxy to appropriate type...
static bool SetScalarColoring(vtkSMProxy *proxy, const char *arrayname, int attribute_type, int component)
Safely call SetScalarColoring() after casting the proxy to the appropriate type, component version...
proxy for a VTK object(s) on a server
static bool RescaleTransferFunctionToVisibleRange(vtkSMProxy *proxy, vtkSMProxy *view)
Safely call RescaleTransferFunctionToVisibleRange() after casting the proxy to the appropriate type...
int ReadXMLAttributes(vtkSMSessionProxyManager *pm, vtkPVXMLElement *element) override
Read attributes from an XML element.
static bool HideScalarBarIfNotNeeded(vtkSMProxy *repr, vtkSMProxy *view)
While SetScalarBarVisibility can be used to hide a scalar bar, it will always simply hide the scalar ...
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
static bool SetScalarColoring(vtkSMProxy *proxy, const char *arrayname, int attribute_type)
Safely call SetScalarColoring() after casting the proxy to the appropriate type.
static vtkPVProminentValuesInformation * GetProminentValuesInformationForColorArray(vtkSMProxy *proxy, double uncertaintyAllowed=1e-6, double fraction=1e-3, bool force=false)
Call vtkSMRepresentationProxy::GetProminentValuesInformation() for the array used for scalar color...
static vtkSMRepresentationProxy * New()
static vtkSMPVRepresentationProxy * SafeDownCast(vtkObject *o)
static bool IsScalarBarVisible(vtkSMProxy *repr, vtkSMProxy *view)
Check scalar bar visibility.