11 #ifndef vtkSMTransferFunction2DProxy_h 12 #define vtkSMTransferFunction2DProxy_h 48 return this->RescaleTransferFunction(range[0], range[1], range[2], range[3], extend);
50 virtual bool RescaleTransferFunction(
51 double rangeXMin,
double rangeXMax,
double rangeYMin,
double rangeYMax,
bool extend =
false);
58 static bool RescaleTransferFunction(
vtkSMProxy* proxy,
double rangeXMin,
double rangeXMax,
59 double rangeYMin,
double rangeYMax,
bool extend =
false);
63 proxy, range[0], range[1], range[2], range[3], extend);
73 virtual bool RescaleTransferFunctionToDataRange(
bool extend =
false);
77 return self ?
self->RescaleTransferFunctionToDataRange(extend) :
false;
87 virtual bool ComputeDataRange(
double range[4]);
91 return self ?
self->ComputeDataRange(range) :
false;
106 return self ?
self->ComputeDataHistogram2D(numberOfBins) :
nullptr;
119 return self ?
self->GetHistogram2DCache() :
nullptr;
128 virtual bool GetRange(
double range[4]);
132 return self ?
self->GetRange(range) :
false;
140 static const int BOX_PROPERTY_SIZE = 8;
157 #endif // vtkSMTransferFunction2DProxy_h static bool ComputeDataRange(vtkSMProxy *proxy, double range[4])
Helper method used by RescaleTransferFunctionToDataRange() to compute range from all visible represen...
static vtkSmartPointer< vtkImageData > ComputeDataHistogram2D(vtkSMProxy *proxy, int numberOfBins)
Helper method used to compute a 2D histogram image with provided number of bins based on the data fro...
static bool RescaleTransferFunction(vtkSMProxy *proxy, const double range[4], bool extend=false)
Safely call RescaleTransferFunction() after casting the proxy to appropriate type.
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
static bool RescaleTransferFunctionToDataRange(vtkSMProxy *proxy, bool extend=false)
Locates all representations that are currently using this transfer function and then rescales the tra...
static vtkImageData * GetHistogram2DCache(vtkSMProxy *proxy)
Helper method used to recover the last histogram computed by ComputeDataHistogram2D Returns the histo...
static bool GetRange(vtkSMProxy *proxy, double range[4])
Returns current transfer function data range.
virtual bool RescaleTransferFunction(const double range[4], bool extend=false)
Rescale the control boxes for the 2D transfer function to match the new range.
vtkSMTransferFunction2DProxy is the proxy used for "TransferFunction2D".
vtkSmartPointer< vtkImageData > Histogram2DCache
Cache for the 2D histogram image.
virtual vtkImageData * GetHistogram2DCache()
Helper method used to recover the last histogram computed by ComputeDataHistogram2D Returns the histo...
static vtkSMTransferFunction2DProxy * SafeDownCast(vtkObject *o)
Standard methods for the VTK class.
static vtkSMProxy * New()
proxy for a VTK object(s) on a server
void operator=(const vtkSMProxy &)=delete