33 #ifndef vtkSMPVRepresentationProxy_h 34 #define vtkSMPVRepresentationProxy_h 36 #include "vtkPVServerManagerRenderingModule.h" 47 void PrintSelf(ostream& os, vtkIndent indent);
54 virtual bool GetUsingScalarColoring();
64 return self ?
self->GetUsingScalarColoring() :
false;
74 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);
139 virtual bool RescaleTransferFunctionToDataRange(
140 const char* arrayname,
int attribute_type,
bool extend =
false,
bool force =
true);
148 vtkSMProxy* proxy,
bool extend =
false,
bool force =
true)
151 return self ?
self->RescaleTransferFunctionToDataRange(extend, force) :
false;
161 int attribute_type,
bool extend =
false,
bool force =
true)
164 return self ?
self->RescaleTransferFunctionToDataRange(arrayname, attribute_type, extend, force)
173 virtual bool RescaleTransferFunctionToDataRangeOverTime();
181 virtual bool RescaleTransferFunctionToDataRangeOverTime(
182 const char* arrayname,
int attribute_type);
192 return self ?
self->RescaleTransferFunctionToDataRangeOverTime() :
false;
202 vtkSMProxy* proxy,
const char* arrayname,
int attribute_type)
205 return self ?
self->RescaleTransferFunctionToDataRangeOverTime(arrayname, attribute_type)
215 virtual bool RescaleTransferFunctionToVisibleRange(
vtkSMProxy* view);
216 virtual bool RescaleTransferFunctionToVisibleRange(
217 vtkSMProxy* view,
const char* arrayname,
int attribute_type);
228 return self ?
self->RescaleTransferFunctionToVisibleRange(view) :
false;
234 return self ?
self->RescaleTransferFunctionToVisibleRange(view, arrayname, attribute_type)
244 virtual bool SetScalarBarVisibility(
vtkSMProxy* view,
bool visibile);
248 return self ?
self->SetScalarBarVisibility(view, visibile) :
false;
260 virtual bool HideScalarBarIfNotNeeded(
vtkSMProxy* view);
264 return self ?
self->HideScalarBarIfNotNeeded(view) :
false;
273 virtual bool IsScalarBarVisible(
vtkSMProxy* view);
277 return self ?
self->IsScalarBarVisible(view) :
false;
290 return self ?
self->GetArrayInformationForColorArray() : NULL;
300 double uncertaintyAllowed = 1e-6,
double fraction = 1e-3);
302 vtkSMProxy* proxy,
double uncertaintyAllowed = 1e-6,
double fraction = 1e-3)
305 return self ?
self->GetProminentValuesInformationForColorArray(uncertaintyAllowed, fraction)
324 virtual bool RescaleTransferFunctionToDataRange(
335 void OnPropertyUpdated(vtkObject*,
unsigned long,
void* calldata);
352 virtual bool SetScalarColoringInternal(
353 const char* arrayname,
int attribute_type,
bool useComponent,
int component);
359 bool InReadXMLAttributes;
361 vtkStringSet* RepresentationSubProxies;
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...
static bool RescaleTransferFunctionToVisibleRange(vtkSMProxy *proxy, vtkSMProxy *view, const char *arrayname, int attribute_type)
Safely call RescaleTransferFunctionToVisibleRange() after casting the proxy to the appropriate type...
static vtkPVProminentValuesInformation * GetProminentValuesInformationForColorArray(vtkSMProxy *proxy, double uncertaintyAllowed=1e-6, double fraction=1e-3)
Call vtkSMRepresentationProxy::GetProminentValuesInformation() for the array used for scalar color...
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 vtkPVArrayInformation * GetArrayInformationForColorArray(vtkSMProxy *proxy)
Returns the array information for the data array used for scalar coloring, if any.
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 bool SetScalarBarVisibility(vtkSMProxy *proxy, vtkSMProxy *view, bool visibile)
Set the scalar bar visibility.
virtual bool SetRepresentationType(const char *type)
Set the representation type.
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...
void PrintSelf(ostream &os, vtkIndent indent)
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
virtual int ReadXMLAttributes(vtkSMSessionProxyManager *pm, vtkPVXMLElement *element)
Read attributes from an XML element.
static bool RescaleTransferFunctionToVisibleRange(vtkSMProxy *proxy, vtkSMProxy *view)
Safely call RescaleTransferFunctionToVisibleRange() after casting the proxy to the appropriate type...
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 vtkSMRepresentationProxy * New()
static vtkSMPVRepresentationProxy * SafeDownCast(vtkObject *o)
virtual void CreateVTKObjects()
Call superclass' and then assigns a new executive (vtkCompositeDataPipeline)
static bool IsScalarBarVisible(vtkSMProxy *repr, vtkSMProxy *view)
Check scalar bar visibility.