47 #ifndef vtkSurfaceLICInterface_h
48 #define vtkSurfaceLICInterface_h
51 #include "vtkRenderingLICOpenGL2Module.h"
53 VTK_ABI_NAMESPACE_BEGIN
76 vtkGetMacro(NumberOfSteps,
int);
84 vtkGetMacro(StepSize,
double);
100 vtkBooleanMacro(NormalizeVectors,
int);
101 vtkGetMacro(NormalizeVectors,
int);
111 vtkBooleanMacro(MaskOnSurface,
int);
112 vtkGetMacro(MaskOnSurface,
int);
133 vtkGetMacro(MaskThreshold,
double);
145 double rgb[3] = { r, g, b };
146 this->SetMaskColor(rgb);
148 vtkGetVector3Macro(MaskColor,
double);
161 vtkGetMacro(MaskIntensity,
double);
171 vtkGetMacro(EnhancedLIC,
int);
172 vtkBooleanMacro(EnhancedLIC,
int);
211 ENHANCE_CONTRAST_OFF = 0,
212 ENHANCE_CONTRAST_LIC = 1,
213 ENHANCE_CONTRAST_COLOR = 3,
214 ENHANCE_CONTRAST_BOTH = 4
217 vtkGetMacro(EnhanceContrast,
int);
237 vtkGetMacro(LowLICContrastEnhancementFactor,
double);
238 vtkGetMacro(HighLICContrastEnhancementFactor,
double);
242 vtkGetMacro(LowColorContrastEnhancementFactor,
double);
243 vtkGetMacro(HighColorContrastEnhancementFactor,
double);
256 vtkBooleanMacro(AntiAlias,
int);
257 vtkGetMacro(AntiAlias,
int);
272 COLOR_MODE_BLEND = 0,
276 vtkGetMacro(ColorMode,
int);
290 vtkGetMacro(LICIntensity,
double);
302 vtkGetMacro(MapModeBias,
double);
336 vtkGetMacro(GenerateNoiseTexture,
int);
347 NOISE_TYPE_UNIFORM = 0,
348 NOISE_TYPE_GAUSSIAN = 1,
349 NOISE_TYPE_PERLIN = 2
352 vtkGetMacro(NoiseType,
int);
361 vtkGetMacro(NoiseTextureSize,
int);
369 vtkGetMacro(NoiseGrainSize,
int);
381 vtkGetMacro(MinNoiseValue,
double);
382 vtkGetMacro(MaxNoiseValue,
double);
391 vtkGetMacro(NumberOfNoiseLevels,
int);
400 vtkGetMacro(ImpulseNoiseProbability,
double);
408 vtkGetMacro(ImpulseNoiseBackgroundValue,
double);
416 vtkGetMacro(NoiseGeneratorSeed,
int);
425 COMPOSITE_INPLACE = 0,
426 COMPOSITE_INPLACE_DISJOINT = 1,
427 COMPOSITE_BALANCED = 2,
431 vtkGetMacro(CompositeStrategy,
int);
523 vtkSetMacro(Enable,
int);
524 vtkGetMacro(Enable,
int);
525 vtkBooleanMacro(Enable,
int);
594 VTK_ABI_NAMESPACE_END
represents an object (geometry & properties) in a rendered scene
abstract superclass for arrays of numeric data
general representation of visualization data
topologically and geometrically regular array of data
a simple class to control print indentation
abstract base class for most VTK objects
A communicator that can safely be used inside a painter.
create a window for renderers to draw into
abstract specification for renderers
A small collection of noise routines for LIC.
public API for surface lic parameters arbitrary geometry.
void SetNormalizeVectors(int val)
Normalize vectors during integration.
virtual void GetGlobalMinMax(vtkPainterCommunicator *, float &, float &)
Get the min/max across all ranks.
static vtkSurfaceLICInterface * New()
vtkImageData * GetNoiseDataSet()
Set the data containing a noise array as active scalars.
void SetCompositeStrategy(int val)
Control the screen space decomposition where LIC is computed.
void SetNoiseTextureSize(int length)
Set/Get the side length in pixels of the noise texture.
void SetHasVectors(bool val)
Does the data have vectors which we require.
void SetNoiseGeneratorSeed(int val)
Set/Get the seed value used by the random number generator.
double LowColorContrastEnhancementFactor
void InitializeResources()
resoucre allocators
void SetAntiAlias(int val)
Enable/Disable the anti-aliasing pass.
virtual bool NeedToUpdateCommunicator()
Return false if stage can be skipped.
void SetImpulseNoiseBackgroundValue(double val)
The color to use for untouched pixels when impulse noise probability < 1.
double LowLICContrastEnhancementFactor
void UpdateCommunicator(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *data)
Called from a mapper, does what is needed to make sure the communicators are ready.
virtual vtkPainterCommunicator * CreateCommunicator(int)
Creates a new communicator with/without the calling processes as indicated by the passed in flag,...
vtkSurfaceLICHelper * Internals
void SetMapModeBias(double val)
Factor used when blend mode is set to COLOR_MODE_MAP.
bool NeedToComputeLIC()
Return false if stage can be skipped.
void SetLICIntensity(double val)
Factor used when blend mode is set to COLOR_MODE_BLEND.
void SetNumberOfSteps(int val)
Get/Set the number of integration steps in each direction.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPainterCommunicator * GetCommunicator()
bool NeedToColorLIC()
Return false if stage can be skipped.
void SetLowColorContrastEnhancementFactor(double val)
This feature is used to fine tune the contrast enhancement.
~vtkSurfaceLICInterface() override
double ImpulseNoiseProbability
void ShallowCopy(vtkSurfaceLICInterface *m)
Make a shallow copy of this interface.
void SetMaxNoiseValue(double val)
Set/Get the minimum and mximum gray scale values that the generated noise can take on.
void PrepareForGeometry()
void SetNoiseGrainSize(int val)
Each noise value will be length^2 pixels in area.
bool GetHasVectors()
Does the data have vectors which we require.
void SetUpdateAll()
Return false if stage can be skipped.
static bool IsSupported(vtkRenderWindow *context)
Returns true if the rendering context supports extensions needed by this painter.
void SetImpulseNoiseProbability(double val)
Control the density of the noise.
bool NeedToRenderGeometry(vtkRenderer *renderer, vtkActor *actor)
Return false if stage can be skipped.
double HighLICContrastEnhancementFactor
bool NeedToGatherVectors()
Return false if stage can be skipped.
void SetMaskColor(double r, double g, double b)
The MaskColor is used on masked fragments.
void SetEnhancedLIC(int val)
EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the fir...
void SetHighColorContrastEnhancementFactor(double val)
This feature is used to fine tune the contrast enhancement.
void CombineColorsAndLIC()
void SetColorMode(int val)
Set/Get the color mode.
virtual void ReleaseGraphicsResources(vtkWindow *win)
Release any graphics resources that are being consumed by this mapper.
void SetStepSize(double val)
Get/Set the step size (in pixels).
bool CanRenderSurfaceLIC(vtkActor *actor)
Returns true when rendering LIC is possible.
void SetNoiseType(int type)
Select the statistical distribution of randomly generated noise values.
void SetHighLICContrastEnhancementFactor(double val)
This feature is used to fine tune the contrast enhancement.
void SetEnhanceContrast(int val)
Enable/Disable contrast and dynamic range correction stages.
void SetNoiseDataSet(vtkImageData *data)
Set the data containing a noise array as active scalars.
void SetLowLICContrastEnhancementFactor(double val)
This feature is used to fine tune the contrast enhancement.
void SetNumberOfNoiseLevels(int val)
Set/Get the number of discrete values a noise pixel may take on.
double ImpulseNoiseBackgroundValue
void ValidateContext(vtkRenderer *renderer)
Look for changes that would trigger stage updates.
void SetMinNoiseValue(double val)
Set/Get the minimum and mximum gray scale values that the generated noise can take on.
virtual void WriteTimerLog(const char *)
Methods used for parallel benchmarks.
void SetMaskColor(double *val)
The MaskColor is used on masked fragments.
void SetMaskIntensity(double val)
The MaskIntensity controls the blending of the mask color and the geometry color.
double HighColorContrastEnhancementFactor
void SetGenerateNoiseTexture(int shouldGenerate)
Set/Get the noise texture source.
void SetMaskThreshold(double val)
The MaskThreshold controls the rendering of fragments in stagnant regions of flow.
void CreateCommunicator(vtkRenderer *, vtkActor *, vtkDataObject *data)
Creates a new communicator for internal use based on this rank's visible data.
void UpdateNoiseImage(vtkRenderWindow *renWin)
Updates the noise texture, downsampling by the requested sample rate.
void SetMaskOnSurface(int val)
When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface.
window superclass for vtkRenderWindow