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 "vtkPVClientServerCoreRenderingModule.h" //needed for exports
28 
29 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkGeometryRepresentationWithFaces
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38  {
39  FOLLOW_FRONTFACE = 400,
40  CULL_BACKFACE = 401,
41  CULL_FRONTFACE = 402
42  };
43 
51  vtkInformation* outInfo) override;
52 
57  void SetVisibility(bool val) override;
58 
60 
63  vtkSetClampMacro(BackfaceRepresentation, int, POINTS, CULL_FRONTFACE);
64  vtkGetMacro(BackfaceRepresentation, int);
66 
67  //***************************************************************************
68  // Forwarded to vtkProperty(BackfaceProperty)
69  void SetBackfaceAmbientColor(double r, double g, double b);
70  void SetBackfaceDiffuseColor(double r, double g, double b);
71  void SetBackfaceOpacity(double val);
72 
73 protected:
76 
83  void SetupDefaults() override;
84 
90  bool AddToView(vtkView* view) override;
91 
97  bool RemoveFromView(vtkView* view) override;
98 
102  void UpdateColoringParameters() override;
103 
104  bool NeedsOrderedCompositing() override;
105 
111 
112 private:
114  void operator=(const vtkGeometryRepresentationWithFaces&) = delete;
115 };
116 
117 #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.