vtkSurfaceLICRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 // .NAME vtkSurfaceLICRepresentation
4 // .SECTION Description
5 // vtkSurfaceLICRepresentation extends vtkGeometryRepresentation to use surface
6 // lic when rendering surfaces.
7 
8 #ifndef vtkSurfaceLICRepresentation_h
9 #define vtkSurfaceLICRepresentation_h
10 
12 #include "vtkRemotingViewsModule.h" // for export macro
13 
14 class vtkInformation;
16 
18 
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27  // Description:
28  // vtkAlgorithm::ProcessRequest() equivalent for rendering passes. This is
29  // typically called by the vtkView to request meta-data from the
30  // representations or ask them to perform certain tasks e.g.
31  // PrepareForRendering.
33  vtkInformation* outInfo) override;
34 
35  // Description:
36  // Indicates whether LIC should be used when doing LOD rendering.
37  void SetUseLICForLOD(bool val);
38 
39  //***************************************************************************
40  // Forwarded to vtkSurfaceLICPainter
41  void SetEnable(bool val);
42 
43  void SetNumberOfSteps(int val);
44  void SetStepSize(double val);
45  void SetNormalizeVectors(int val);
46 
47  void SetEnhancedLIC(int val);
48 
49  // Description:
50  // When enabled, uses the vector field's sign to orient the LIC pattern,
51  // producing a directional (arrow-like) appearance instead of a symmetric
52  // streak pattern.
53  void SetOrientedLIC(bool val);
54 
55  void SetEnhanceContrast(int val);
56  void SetLowLICContrastEnhancementFactor(double val);
57  void SetHighLICContrastEnhancementFactor(double val);
58  void SetLowColorContrastEnhancementFactor(double val);
59  void SetHighColorContrastEnhancementFactor(double val);
60  void SetAntiAlias(int val);
61 
62  void SetColorMode(int val);
63  void SetMapModeBias(double val);
64  void SetLICIntensity(double val);
65 
66  void SetMaskOnSurface(int val);
67  void SetMaskThreshold(double val);
68  void SetMaskColor(double* val);
69  void SetMaskColor(double r, double g, double b)
70  {
71  double rgb[3] = { r, g, b };
72  this->SetMaskColor(rgb);
73  }
74  void SetMaskIntensity(double val);
75 
76  void SetGenerateNoiseTexture(int val);
77  void SetNoiseType(int val);
78  void SetNoiseTextureSize(int val);
79  void SetNoiseGrainSize(int val);
80  void SetMinNoiseValue(double val);
81  void SetMaxNoiseValue(double val);
82  void SetNumberOfNoiseLevels(int val);
83  void SetImpulseNoiseProbability(double val);
84  void SetImpulseNoiseBackgroundValue(double val);
85  void SetNoiseGeneratorSeed(int val);
86 
87  void SetCompositeStrategy(int val);
88 
89  void WriteTimerLog(const char* fileName);
90 
91  void SelectInputVectors(int, int, int, int attributeMode, const char* name);
92 
93 protected:
95  ~vtkSurfaceLICRepresentation() override;
96 
97  // Description:
98  // Overridden method to set parameters on vtkProperty and vtkMapper.
99  void UpdateColoringParameters() override;
100 
103 
105 
106 private:
108  void operator=(const vtkSurfaceLICRepresentation&) = delete;
109 };
110 
111 #endif
static vtkGeometryRepresentationWithFaces * New()
vtkGeometryRepresentationWithFaces extends vtkGeometryRepresentation to add support for rendering bac...
#define VTKREMOTINGVIEWS_EXPORT
void UpdateColoringParameters() override
Passes on parameters to vtkProperty and vtkMapper.
vtkCompositeSurfaceLICMapper * SurfaceLICMapper
void SetMaskColor(double r, double g, double b)
vtkCompositeSurfaceLICMapper * SurfaceLICLODMapper
void PrintSelf(ostream &os, vtkIndent indent) override
name
int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) override
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.