ParaView
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);
36 
38  {
39  FOLLOW_FRONTFACE = 400,
40  CULL_BACKFACE = 401,
41  CULL_FRONTFACE = 402
42  };
43 
50  virtual int ProcessViewRequest(
51  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
52 
57  virtual void SetVisibility(bool val);
58 
60 
63  vtkSetClampMacro(BackfaceRepresentation, int, POINTS, CULL_FRONTFACE);
64  vtkGetMacro(BackfaceRepresentation, int);
66 
67  //***************************************************************************
68  // Forwaded 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  virtual void SetupDefaults();
84 
90  virtual bool AddToView(vtkView* view);
91 
97  virtual bool RemoveFromView(vtkView* view);
98 
102  virtual void UpdateColoringParameters();
103 
104  vtkMapper* BackfaceMapper;
105  vtkMapper* LODBackfaceMapper;
107  vtkProperty* BackfaceProperty;
109 
110 private:
112  void operator=(const vtkGeometryRepresentationWithFaces&) VTK_DELETE_FUNCTION;
113 };
114 
115 #endif
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()
virtual bool RemoveFromView(vtkView *view)
Removes the representation to the view.
virtual bool AddToView(vtkView *view)
Adds the representation to the view.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual void UpdateColoringParameters()
Passes on parameters to vtkProperty and vtkMapper.
void PrintSelf(ostream &os, vtkIndent indent)
an actor that supports multiple levels of detail
Definition: vtkPVLODActor.h:37
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.