58 #ifndef vtkSurfaceLICMapper_h
59 #define vtkSurfaceLICMapper_h
61 #include "vtkRenderingLICOpenGL2Module.h"
62 #include "vtkOpenGLPolyDataMapper.h"
92 void SetEnable(
int val);
93 vtkGetMacro(Enable,
int);
100 void SetNumberOfSteps(
int val);
101 vtkGetMacro(NumberOfSteps,
int);
106 void SetStepSize(
double val);
107 vtkGetMacro(StepSize,
double);
120 void SetNormalizeVectors(
int val);
121 vtkBooleanMacro(NormalizeVectors,
int);
122 vtkGetMacro(NormalizeVectors,
int);
129 void SetMaskOnSurface(
int val);
130 vtkBooleanMacro(MaskOnSurface,
int);
131 vtkGetMacro(MaskOnSurface,
int);
148 void SetMaskThreshold(
double val);
149 vtkGetMacro(MaskThreshold,
double);
156 void SetMaskColor(
double *val);
158 {
double rgb[3]={r,g,b}; this->SetMaskColor(rgb); }
159 vtkGetVector3Macro(MaskColor,
double);
167 void SetMaskIntensity(
double val);
168 vtkGetMacro(MaskIntensity,
double);
175 void SetEnhancedLIC(
int val);
176 vtkGetMacro(EnhancedLIC,
int);
177 vtkBooleanMacro(EnhancedLIC,
int);
203 ENHANCE_CONTRAST_OFF=0,
204 ENHANCE_CONTRAST_LIC=1,
205 ENHANCE_CONTRAST_COLOR=3,
206 ENHANCE_CONTRAST_BOTH=4
208 void SetEnhanceContrast(
int val);
209 vtkGetMacro(EnhanceContrast,
int);
225 vtkGetMacro(LowLICContrastEnhancementFactor,
double);
226 vtkGetMacro(HighLICContrastEnhancementFactor,
double);
227 void SetLowLICContrastEnhancementFactor(
double val);
228 void SetHighLICContrastEnhancementFactor(
double val);
230 vtkGetMacro(LowColorContrastEnhancementFactor,
double);
231 vtkGetMacro(HighColorContrastEnhancementFactor,
double);
232 void SetLowColorContrastEnhancementFactor(
double val);
233 void SetHighColorContrastEnhancementFactor(
double val);
241 void SetAntiAlias(
int val);
242 vtkBooleanMacro(AntiAlias,
int);
243 vtkGetMacro(AntiAlias,
int);
258 vtkGetMacro(ColorMode,
int);
267 void SetLICIntensity(
double val);
268 vtkGetMacro(LICIntensity,
double);
277 void SetMapModeBias(
double val);
278 vtkGetMacro(MapModeBias,
double);
306 void SetGenerateNoiseTexture(
int shouldGenerate);
307 vtkGetMacro(GenerateNoiseTexture,
int);
315 NOISE_TYPE_UNIFORM=0,
316 NOISE_TYPE_GAUSSIAN=1,
319 void SetNoiseType(
int type);
320 vtkGetMacro(NoiseType,
int);
326 void SetNoiseTextureSize(
int length);
327 vtkGetMacro(NoiseTextureSize,
int);
332 void SetNoiseGrainSize(
int val);
333 vtkGetMacro(NoiseGrainSize,
int);
341 void SetMinNoiseValue(
double val);
342 void SetMaxNoiseValue(
double val);
343 vtkGetMacro(MinNoiseValue,
double);
344 vtkGetMacro(MaxNoiseValue,
double);
350 void SetNumberOfNoiseLevels(
int val);
351 vtkGetMacro(NumberOfNoiseLevels,
int);
358 void SetImpulseNoiseProbability(
double val);
359 vtkGetMacro(ImpulseNoiseProbability,
double);
365 void SetImpulseNoiseBackgroundValue(
double val);
366 vtkGetMacro(ImpulseNoiseBackgroundValue,
double);
371 void SetNoiseGeneratorSeed(
int val);
372 vtkGetMacro(NoiseGeneratorSeed,
int);
379 COMPOSITE_INPLACE_DISJOINT=1,
380 COMPOSITE_BALANCED=2,
383 void SetCompositeStrategy(
int val);
384 vtkGetMacro(CompositeStrategy,
int);
447 bool NeedToUpdateOutputData();
448 virtual bool NeedToUpdateCommunicator();
450 bool NeedToGatherVectors();
451 bool NeedToComputeLIC();
452 bool NeedToColorLIC();
458 bool PrepareOutput();
459 void InitializeResources();
470 bool CanRenderSurfaceLIC(
vtkActor *actor);
521 std::map<vtkShader::Type, vtkShader *> shaders,
a PolyDataMapper for the OpenGL library
double HighColorContrastEnhancementFactor
represents an object (geometry & properties) in a rendered scene
double ImpulseNoiseBackgroundValue
static vtkOpenGLPolyDataMapper * New()
mapper that performs LIC on the surface of arbitrary geometry.
double LowLICContrastEnhancementFactor
abstract class to specify dataset behavior
void SetMaskColor(double r, double g, double b)
abstract specification for renderers
virtual void SetColorMode(int)
double LowColorContrastEnhancementFactor
Detect and break reference loops.
virtual void ReportReferences(vtkGarbageCollector *)
window superclass for vtkRenderWindow
virtual void StartTimerEvent(const char *)
a simple class to control print indentation
topologically and geometrically regular array of data
abstract superclass for arrays of numeric data
virtual void WriteTimerLog(const char *)
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
abstract class specifies interface to map data
void ShallowCopy(vtkAbstractMapper *m)
create a window for renderers to draw into
virtual void EndTimerEvent(const char *)
virtual void RenderPiece(vtkRenderer *ren, vtkActor *a)
double ImpulseNoiseProbability
void ReleaseGraphicsResources(vtkWindow *)
double HighLICContrastEnhancementFactor
general representation of visualization data
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
virtual void GetGlobalMinMax(vtkPainterCommunicator *, float &, float &)