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 
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
vtkGeometryRepresentation
representation for showing any datasets as external shell of polygons.
Definition: vtkGeometryRepresentation.h:43
vtkGeometryRepresentation::AddToView
bool AddToView(vtkView *view) override
Adds the representation to the view.
vtkGeometryRepresentation::ProcessViewRequest
int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) override
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkGeometryRepresentation::SetVisibility
void SetVisibility(bool val) override
Get/Set the visibility for this representation.
vtkGeometryRepresentationWithFaces::BackfaceMapper
vtkMapper * BackfaceMapper
Definition: vtkGeometryRepresentationWithFaces.h:93
vtkGeometryRepresentation::UpdateColoringParameters
virtual void UpdateColoringParameters()
Passes on parameters to vtkProperty and vtkMapper.
vtkGeometryRepresentation::SetupDefaults
virtual void SetupDefaults()
This method is called in the constructor.
vtkGeometryRepresentationWithFaces::BackfaceRepresentation
int BackfaceRepresentation
Definition: vtkGeometryRepresentationWithFaces.h:97
vtkGeometryRepresentationWithFaces::LODBackfaceMapper
vtkMapper * LODBackfaceMapper
Definition: vtkGeometryRepresentationWithFaces.h:94
vtkMapper
vtkGeometryRepresentationWithFaces::BackfaceActor
vtkPVLODActor * BackfaceActor
Definition: vtkGeometryRepresentationWithFaces.h:95
vtkView
vtkIndent
vtkGeometryRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Removes the representation to the view.
vtkInformationRequestKey
vtkGeometryRepresentation::NeedsOrderedCompositing
virtual bool NeedsOrderedCompositing()
Returns true if this representation has translucent geometry.
vtkGeometryRepresentation::New
static vtkGeometryRepresentation * New()
vtkInformation
vtkGeometryRepresentation.h
vtkGeometryRepresentationWithFaces::BackfaceProperty
vtkProperty * BackfaceProperty
Definition: vtkGeometryRepresentationWithFaces.h:96
vtkProperty
vtkPVLODActor
an actor that supports multiple levels of detail
Definition: vtkPVLODActor.h:25
vtkGeometryRepresentationWithFaces
Definition: vtkGeometryRepresentationWithFaces.h:17
vtkGeometryRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkGeometryRepresentationWithFaces::RepresentationTypesEx
RepresentationTypesEx
Definition: vtkGeometryRepresentationWithFaces.h:24