50#ifndef vtkMultiVariateToRGBA_h
51#define vtkMultiVariateToRGBA_h
54#include "vtkFiltersParallelModule.h"
64VTK_ABI_NAMESPACE_BEGIN
169 double lensRadius,
double radius,
const double* lensCenter,
const double* center);
171 double lensRadius,
double radius,
const double* lensCenter,
const double* center);
181 static void HSLToRGB(
double h,
double s,
double l,
double rgb[3]);
475 std::pair<vtkDataSetAttributes*, vtkSmartPointer<vtkDataArray>> GetAttributesAndScalars(
487 bool IsVariableVisible(
int index,
const std::string& name,
bool numeric =
true)
const;
491 bool IsNumericVariable(
int index);
503 bool InLensModified =
false;
512 int CachedAssociation = 0;
general representation of visualization data
dynamic, self-adjusting array of double
a simple class to control print indentation
Multiprocessing communication superclass.
void ClearPartitionIndices()
Element-wise, ClientServer-wrappable equivalents of SetPartitionIndices() and SetPartitionOffsets().
void AddVisibleVariableIndex(int index)
Variable visibility.
virtual vtkStringArray * GetVisibleVariables()
Get the names of the visible variables of the current input, in their natural order.
std::vector< int > PartitionIndices
virtual void SetLensCenter(double centerX, double centerY)
Clamp the lens circle (lensCenter, lensRadius) so that it intersects the reference circle (center,...
void SetVariableVisibility(const std::string &name, bool visible)
Variable visibility.
void SetPartitionOffsets(const std::vector< int > &partitionOffsets)
Variables can be partitioned into several groups.
vtkMultiProcessController * Controller
void SetIndexVisibilityExceptions(const std::vector< int > &indices)
Variable visibility.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool StartVisibleIndexList
True after ResetVisibleVariableIndices() or on a new filter, until the next visibility setter: the ne...
bool VerticesClockwiseOrdering
std::vector< double > CustomRange
Custom ranges used as the global min/max when normalizing scalars, interleaved as [min0,...
static void HSLToRGB(double h, double s, double l, double rgb[3])
Convert hue, saturation and lightness (all in [0, 1]) to red, green and blue (in [0,...
void Modified() override
Overridden to tell lens-only changes apart from all other changes.
static double GetLensRadius(double lensRadius, double radius, const double *lensCenter, const double *center)
Clamp the lens circle (lensCenter, lensRadius) so that it intersects the reference circle (center,...
bool GetVariableVisibility(const std::string &name)
Get the visibility of a variable of the current input, by name or index.
static std::array< double, 2 > GetLensCenter(double lensRadius, double radius, const double *lensCenter, const double *center)
Clamp the lens circle (lensCenter, lensRadius) so that it intersects the reference circle (center,...
void ClearPartitionOffsets()
Element-wise, ClientServer-wrappable equivalents of SetPartitionIndices() and SetPartitionOffsets().
virtual void SetVisibleVariables(vtkStringArray *names)
Set the list of visible variables by name: every variable not in this list is hidden.
std::vector< double > GetRange() VTK_FUTURE_CONST
The global [min, max] range actually used to normalize each partition group during the last RequestDa...
void SetVisibleVariableIndices(const std::vector< int > &indices)
Set the list of visible variables by index: every variable not in this list is hidden.
void SetLensCenter(const double *center)
Center of the lens in GBC space (unit circle centered at the origin).
static constexpr int GetColorWheelStartAngle()
Describe the color wheel that matches the computed colors.
static constexpr bool GetColorWheelClockwiseOrdering()
Describe the color wheel that matches the computed colors.
void ClearCustomRange()
Element-wise, ClientServer-wrappable equivalents of SetCustomRange().
static vtkMultiVariateToRGBA * New()
std::vector< int > GetPartitionIndices() VTK_FUTURE_CONST
Variables can be partitioned into several groups.
virtual void SetVerticesRotation(double rotation)
Angle in degrees to rotate the vertices encoding the multivariate attributes.
std::vector< double > GetCustomRange() VTK_FUTURE_CONST
Custom ranges used as the global min/max when normalizing scalars, instead of the range computed from...
void SetCustomRange(const std::vector< double > &customRange)
Custom ranges used as the global min/max when normalizing scalars, instead of the range computed from...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
std::vector< int > GetVisibleVariableIndices()
Get the indices of the visible variables of the current input, in increasing order.
std::vector< double > Range
The global [min, max] range actually used to normalize each partition group during the last RequestDa...
void SetNameVisibilityExceptions(const std::vector< std::string > &names)
Variable visibility.
void ResetVisibleVariableIndices()
Build the list of visible variables by index, for the ParaView server manager XML,...
virtual void SetLensRadius(double radius)
Radius of the lens in GBC space (unit circle centered at the origin).
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void AddCustomRange(double min, double max)
Element-wise, ClientServer-wrappable equivalents of SetCustomRange().
double LensCenter[2]
Where the lens is drawn and its radius.
virtual void SetOutsideLensAlpha(double alpha)
Alpha (opacity) cap for points outside the lens.
void AddPartitionOffset(int offset)
Element-wise, ClientServer-wrappable equivalents of SetPartitionIndices() and SetPartitionOffsets().
std::vector< int > GetPartitionOffsets() VTK_FUTURE_CONST
Variables can be partitioned into several groups.
void SetVariableVisibilityAll(bool visible)
Set the visibility of all variables, including the ones of inputs set later.
std::vector< int > PartitionOffsets
std::vector< int > GetIndexVisibilityExceptions() VTK_FUTURE_CONST
Variable visibility.
std::set< std::string > NameVisibilityExceptions
virtual void SetInvertLens(bool invert)
Swap inside and outside: cap the alpha of the points inside the lens instead.
std::vector< std::string > GetNameVisibilityExceptions() VTK_FUTURE_CONST
Variable visibility.
std::set< int > IndexVisibilityExceptions
virtual void SetController(vtkMultiProcessController *)
Set and get the controller.
void AddPartitionIndex(int index)
Element-wise, ClientServer-wrappable equivalents of SetPartitionIndices() and SetPartitionOffsets().
vtkSmartPointer< vtkStringArray > GetAllVariableNames()
Returns the names of every variable of the current input, visible or not, in their natural order.
void SetPartitionIndices(const std::vector< int > &partitionIndices)
Variables can be partitioned into several groups.
double OutsideLensAlpha
Alpha cap for points outside the lens.
static constexpr double ColorLightness
Convert hue, saturation and lightness (all in [0, 1]) to red, green and blue (in [0,...
bool VariablesVisibleByDefault
Variable visibility: a variable is visible when VariablesVisibleByDefault is true,...
Computes the portion of a dataset which is inside a selection.
Hold a reference to a vtkObjectBase instance.
a vtkAbstractArray subclass for strings
record modification and/or execution time
a weak reference to a vtkObject.