vtkGeometryRepresentationWithFaces.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkGeometryRepresentationWithFaces.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkGeometryRepresentationWithFaces_h
24 #define vtkGeometryRepresentationWithFaces_h
25 
27 #include "vtkRemotingViewsModule.h" //needed for exports
28 
29 class VTKREMOTINGVIEWS_EXPORT vtkGeometryRepresentationWithFaces : public vtkGeometryRepresentation
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37  {
38  FOLLOW_FRONTFACE = 400,
39  CULL_BACKFACE = 401,
40  CULL_FRONTFACE = 402
41  };
42 
50  vtkInformation* outInfo) override;
51 
56  void SetVisibility(bool val) override;
57 
59 
62  vtkSetClampMacro(BackfaceRepresentation, int, POINTS, CULL_FRONTFACE);
63  vtkGetMacro(BackfaceRepresentation, int);
65 
66  //***************************************************************************
67  // Forwarded to vtkProperty(BackfaceProperty)
68  void SetBackfaceAmbientColor(double r, double g, double b);
69  void SetBackfaceDiffuseColor(double r, double g, double b);
70  void SetBackfaceOpacity(double val);
71 
72 protected:
75 
82  void SetupDefaults() override;
83 
89  bool AddToView(vtkView* view) override;
90 
96  bool RemoveFromView(vtkView* view) override;
97 
101  void UpdateColoringParameters() override;
102 
103  bool NeedsOrderedCompositing() override;
104 
110 
111 private:
113  void operator=(const vtkGeometryRepresentationWithFaces&) = delete;
114 };
115 
116 #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.
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:37
void PrintSelf(ostream &os, vtkIndent indent) override
virtual bool NeedsOrderedCompositing()
Returns true if this representation has translucent geometry.