vtkGeometryRepresentationWithFaces.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkGeometryRepresentationWithFaces_h
12 #define vtkGeometryRepresentationWithFaces_h
13 
15 #include "vtkRemotingViewsModule.h" //needed for exports
16 
18 {
19 public:
22  void PrintSelf(ostream& os, vtkIndent indent) override;
23 
25  {
26  FOLLOW_FRONTFACE = 400,
27  CULL_BACKFACE = 401,
28  CULL_FRONTFACE = 402
29  };
30 
38  vtkInformation* outInfo) override;
39 
44  void SetVisibility(bool val) override;
45 
47 
50  vtkSetClampMacro(BackfaceRepresentation, int, POINTS, CULL_FRONTFACE);
51  vtkGetMacro(BackfaceRepresentation, int);
53 
54  //***************************************************************************
55  // Forwarded to vtkProperty(BackfaceProperty)
56  void SetBackfaceAmbientColor(double r, double g, double b);
57  void SetBackfaceDiffuseColor(double r, double g, double b);
58  void SetBackfaceOpacity(double val);
59 
60 protected:
63 
70  void SetupDefaults() override;
71 
77  bool AddToView(vtkView* view) override;
78 
84  bool RemoveFromView(vtkView* view) override;
85 
89  void UpdateColoringParameters() override;
90 
91  bool NeedsOrderedCompositing() override;
92 
98 
99 private:
101  void operator=(const vtkGeometryRepresentationWithFaces&) = delete;
102 };
103 
104 #endif
int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) override
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkGeometryRepresentationWithFaces extends vtkGeometryRepresentation to add support for rendering bac...
virtual void SetupDefaults()
This method is called in the constructor.
#define VTKREMOTINGVIEWS_EXPORT
representation for showing any datasets as external shell of polygons.
static vtkGeometryRepresentation * New()
void SetVisibility(bool val) override
Get/Set the visibility for this representation.
virtual void UpdateColoringParameters()
Passes on parameters to vtkProperty and vtkMapper.
bool AddToView(vtkView *view) override
Adds the representation to the view.
bool RemoveFromView(vtkView *view) override
Removes the representation to the view.
an actor that supports multiple levels of detail
Definition: vtkPVLODActor.h:25
void PrintSelf(ostream &os, vtkIndent indent) override
virtual bool NeedsOrderedCompositing()
Returns true if this representation has translucent geometry.