16 #ifndef vtkHyperTreeGridRepresentation_h 17 #define vtkHyperTreeGridRepresentation_h 24 #include "vtkRemotingViewsModule.h" 31 class vtkOpenGLHyperTreeGridMapper;
65 vtkGetMacro(AdaptiveDecimation,
bool);
66 vtkSetMacro(AdaptiveDecimation,
bool);
67 vtkBooleanMacro(AdaptiveDecimation,
bool);
81 vtkSetMacro(Ambient,
double);
82 vtkSetMacro(Diffuse,
double);
83 vtkSetMacro(Specular,
double);
84 vtkGetMacro(Ambient,
double);
85 vtkGetMacro(Diffuse,
double);
86 vtkGetMacro(Specular,
double);
101 vtkSetClampMacro(Representation,
int, WIREFRAME, SURFACE_WITH_EDGES);
102 vtkGetMacro(Representation,
int);
109 virtual void SetRepresentation(
const char*);
119 void SetUseOutline(
int);
126 virtual void SetAmbientColor(
double r,
double g,
double b);
127 virtual void SetBaseIOR(
double val);
128 virtual void SetBaseColorTexture(
vtkTexture* tex);
129 virtual void SetCoatIOR(
double val);
130 virtual void SetCoatStrength(
double val);
131 virtual void SetCoatRoughness(
double val);
132 virtual void SetCoatColor(
double a,
double b,
double c);
133 virtual void SetCoatNormalScale(
double val);
134 virtual void SetColor(
double r,
double g,
double b);
135 virtual void SetDiffuseColor(
double r,
double g,
double b);
136 virtual void SetEdgeColor(
double r,
double g,
double b);
137 virtual void SetEdgeTint(
double r,
double g,
double b);
138 virtual void SetEmissiveFactor(
double rval,
double gval,
double bval);
139 virtual void SetEmissiveTexture(
vtkTexture* tex);
140 virtual void SetInteractiveSelectionColor(
double r,
double g,
double b);
141 virtual void SetInterpolation(
int val);
142 virtual void SetLineWidth(
double val);
143 virtual void SetMaterial(std::string name);
144 virtual void SetMaterialTexture(
vtkTexture* tex);
145 virtual void SetMetallic(
double val);
146 virtual void SetNormalScale(
double val);
147 virtual void SetNormalTexture(
vtkTexture* tex);
148 virtual void SetOcclusionStrength(
double val);
149 virtual void SetOpacity(
double val);
150 virtual void SetPointSize(
double val);
151 virtual void SetRenderLinesAsTubes(
bool);
152 virtual void SetRenderPointsAsSpheres(
bool);
153 virtual void SetRoughness(
double val);
154 virtual void SetSpecularColor(
double r,
double g,
double b);
155 virtual void SetSpecularPower(
double val);
163 virtual void SetFlipTextures(
bool);
164 virtual void SetOrientation(
double,
double,
double);
165 virtual void SetOrigin(
double,
double,
double);
166 virtual void SetPickable(
int val);
167 virtual void SetPosition(
double,
double,
double);
168 virtual void SetScale(
double,
double,
double);
170 virtual void SetUserTransform(
const double[16]);
178 virtual void SetEnableScaling(
int val);
179 virtual void SetScalingArrayName(
const char* val);
181 virtual void SetMaterial(
const char* val);
182 virtual void SetLuminosity(
double val);
190 virtual void SetRepeatTextures(
bool);
191 vtkGetMacro(RepeatTextures,
bool);
192 virtual void SetInterpolateTextures(
bool);
193 vtkGetMacro(InterpolateTextures,
bool);
194 virtual void SetUseMipmapTextures(
bool);
195 vtkGetMacro(UseMipmapTextures,
bool);
203 virtual void SetInterpolateScalarsBeforeMapping(
int val);
214 virtual void SetMapScalars(
bool val);
222 virtual void SetStatic(
int val);
241 const char* GetColorArrayName();
247 virtual void SetUseShaderReplacements(
bool);
248 vtkGetMacro(UseShaderReplacements,
bool);
255 void AddBlockSelector(
const char* selector);
256 void RemoveAllBlockSelectors();
257 void SetBlockColor(
const char* selector,
double r,
double g,
double b);
258 void RemoveAllBlockColors();
259 void SetBlockOpacity(
const char* selector,
double opacity);
260 void RemoveAllBlockOpacities();
269 virtual void SetShaderReplacements(
const char*);
281 virtual void SetupDefaults();
322 virtual void UpdateColoringParameters();
332 void UpdateShaderReplacements();
340 virtual bool NeedsOrderedCompositing();
348 bool AdaptiveDecimation =
true;
354 int Representation = SURFACE;
355 bool RepeatTextures =
false;
356 bool InterpolateTextures =
false;
357 bool UseMipmapTextures =
false;
358 double Ambient = 0.0;
359 double Specular = 0.0;
360 double Diffuse = 1.0;
361 double VisibleDataBounds[6];
362 bool UseShaderReplacements =
false;
366 std::vector<std::string> BlockSelectors;
367 std::vector<std::pair<std::string, vtkVector3d>> BlockColors;
368 std::vector<std::pair<std::string, double>> BlockOpacities;
virtual vtkDataObject * GetRenderedDataObject(int vtkNotUsed(port))
Returns the data object that is rendered from the given input port.
vtkPVDataRepresentation adds some ParaView specific API to data representations.
bool AddToView(vtkView *view) override
Making these methods public.
vtkNew< vtkPVLODActor > Actor
Geometry filter that does outlines for volumes.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
std::string ShaderReplacementsString
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
vtkNew< vtkProperty > Property
vtkNew< vtkOpenGLHyperTreeGridMapper > Mapper
bool RemoveFromView(vtkView *view) override
Making these methods public.
static vtkDataRepresentation * New()
vtkActor * GetActor()
Provides access to the actor used by this representation.
representation for showing vtkHyperTreeGrid with optimized memory usage.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual vtkActor * GetRenderedProp()
Used in ConvertSelection to locate the prop used for actual rendering.