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 
17 class VTKREMOTINGVIEWS_EXPORT vtkGeometryRepresentationWithFaces : public vtkGeometryRepresentation
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 
63  void SetRelativeCoincidentTopologyPolygonOffsetParameters(double factor, double units) override;
64 
65 protected:
68 
75  void SetupDefaults() override;
76 
82  bool AddToView(vtkView* view) override;
83 
89  bool RemoveFromView(vtkView* view) override;
90 
94  void UpdateColoringParameters() override;
95 
96  bool NeedsOrderedCompositing() override;
97 
103 
104 private:
106  void operator=(const vtkGeometryRepresentationWithFaces&) = delete;
107 };
108 
109 #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.
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.
virtual void SetRelativeCoincidentTopologyPolygonOffsetParameters(double factor, double units)
Pass the factor and units to the mappers.
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.