59 #ifndef vtkSurfaceLICInterface_h
60 #define vtkSurfaceLICInterface_h
62 #include "vtkRenderingLICOpenGL2Module.h"
63 #include "vtkOpenGLPolyDataMapper.h"
85 void SetNumberOfSteps(
int val);
86 vtkGetMacro(NumberOfSteps,
int);
93 void SetStepSize(
double val);
94 vtkGetMacro(StepSize,
double);
109 void SetNormalizeVectors(
int val);
111 vtkGetMacro(NormalizeVectors,
int);
120 void SetMaskOnSurface(
int val);
122 vtkGetMacro(MaskOnSurface,
int);
142 void SetMaskThreshold(
double val);
143 vtkGetMacro(MaskThreshold,
double);
152 void SetMaskColor(
double *val);
154 {
double rgb[3]={r,g,b}; this->SetMaskColor(rgb); }
155 vtkGetVector3Macro(MaskColor,
double);
167 void SetMaskIntensity(
double val);
168 vtkGetMacro(MaskIntensity,
double);
177 void SetEnhancedLIC(
int val);
178 vtkGetMacro(EnhancedLIC,
int);
217 ENHANCE_CONTRAST_OFF=0,
218 ENHANCE_CONTRAST_LIC=1,
219 ENHANCE_CONTRAST_COLOR=3,
220 ENHANCE_CONTRAST_BOTH=4
222 void SetEnhanceContrast(
int val);
223 vtkGetMacro(EnhanceContrast,
int);
243 vtkGetMacro(LowLICContrastEnhancementFactor,
double);
244 vtkGetMacro(HighLICContrastEnhancementFactor,
double);
245 void SetLowLICContrastEnhancementFactor(
double val);
246 void SetHighLICContrastEnhancementFactor(
double val);
248 vtkGetMacro(LowColorContrastEnhancementFactor,
double);
249 vtkGetMacro(HighColorContrastEnhancementFactor,
double);
250 void SetLowColorContrastEnhancementFactor(
double val);
251 void SetHighColorContrastEnhancementFactor(
double val);
261 void SetAntiAlias(
int val);
263 vtkGetMacro(AntiAlias,
int);
280 void SetColorMode(
int val);
281 vtkGetMacro(ColorMode,
int);
294 void SetLICIntensity(
double val);
295 vtkGetMacro(LICIntensity,
double);
306 void SetMapModeBias(
double val);
307 vtkGetMacro(MapModeBias,
double);
340 void SetGenerateNoiseTexture(
int shouldGenerate);
341 vtkGetMacro(GenerateNoiseTexture,
int);
351 NOISE_TYPE_UNIFORM=0,
352 NOISE_TYPE_GAUSSIAN=1,
355 void SetNoiseType(
int type);
356 vtkGetMacro(NoiseType,
int);
364 void SetNoiseTextureSize(
int length);
365 vtkGetMacro(NoiseTextureSize,
int);
372 void SetNoiseGrainSize(
int val);
373 vtkGetMacro(NoiseGrainSize,
int);
383 void SetMinNoiseValue(
double val);
384 void SetMaxNoiseValue(
double val);
385 vtkGetMacro(MinNoiseValue,
double);
386 vtkGetMacro(MaxNoiseValue,
double);
394 void SetNumberOfNoiseLevels(
int val);
395 vtkGetMacro(NumberOfNoiseLevels,
int);
403 void SetImpulseNoiseProbability(
double val);
404 vtkGetMacro(ImpulseNoiseProbability,
double);
411 void SetImpulseNoiseBackgroundValue(
double val);
412 vtkGetMacro(ImpulseNoiseBackgroundValue,
double);
419 void SetNoiseGeneratorSeed(
int val);
420 vtkGetMacro(NoiseGeneratorSeed,
int);
429 COMPOSITE_INPLACE_DISJOINT=1,
430 COMPOSITE_BALANCED=2,
433 void SetCompositeStrategy(
int val);
434 vtkGetMacro(CompositeStrategy,
int);
461 virtual void ReleaseGraphicsResources(
vtkWindow * win);
466 bool CanRenderSurfaceLIC(
vtkActor *actor);
500 void SetHasVectors(
bool val);
501 bool GetHasVectors();
507 void InitializeResources();
509 void PrepareForGeometry();
510 void CompletedGeometry();
511 void GatherVectors();
513 void CombineColorsAndLIC();
528 vtkGetMacro(Enable,
int);
545 virtual bool NeedToUpdateCommunicator();
547 bool NeedToGatherVectors();
548 bool NeedToComputeLIC();
549 bool NeedToColorLIC();
void SetMaskColor(double r, double g, double b)
The MaskColor is used on masked fragments.
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
double ImpulseNoiseBackgroundValue
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
vtkSurfaceLICHelper * Internals
double HighColorContrastEnhancementFactor
window superclass for vtkRenderWindow
a simple class to control print indentation
double LowLICContrastEnhancementFactor
topologically and geometrically regular array of data
virtual void WriteTimerLog(const char *)
Methods used for parallel benchmarks.
abstract superclass for arrays of numeric data
double LowColorContrastEnhancementFactor
virtual void GetGlobalMinMax(vtkPainterCommunicator *, float &, float &)
Get the min/max across all ranks.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a window for renderers to draw into
public API for surface lic parameters arbitrary geometry.
A communicator that can safely be used inside a painter.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
general representation of visualization data
double HighLICContrastEnhancementFactor
A small collection of noise routines for LIC.
double ImpulseNoiseProbability