VTK  9.3.20240419
vtkRenderedSurfaceRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
18 #ifndef vtkRenderedSurfaceRepresentation_h
19 #define vtkRenderedSurfaceRepresentation_h
20 
22 #include "vtkViewsInfovisModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkActor;
26 class vtkAlgorithmOutput;
27 class vtkApplyColors;
28 class vtkDataObject;
29 class vtkGeometryFilter;
30 class vtkPolyDataMapper;
31 class vtkRenderView;
32 class vtkScalarsToColors;
33 class vtkSelection;
34 class vtkTransformFilter;
35 class vtkView;
36 
37 class VTKVIEWSINFOVIS_EXPORT vtkRenderedSurfaceRepresentation : public vtkRenderedRepresentation
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  virtual void SetCellColorArrayName(const char* arrayName);
48  virtual const char* GetCellColorArrayName() { return this->GetCellColorArrayNameInternal(); }
49 
53  void ApplyViewTheme(vtkViewTheme* theme) override;
54 
55 protected:
58 
62  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
63  vtkInformationVector* outputVector) override;
64 
68  void PrepareForRendering(vtkRenderView* view) override;
69 
74  bool AddToView(vtkView* view) override;
75 
80  bool RemoveFromView(vtkView* view) override;
81 
87  vtkSelection* ConvertSelection(vtkView* view, vtkSelection* selection) override;
88 
90 
99 
100  vtkGetStringMacro(CellColorArrayNameInternal);
101  vtkSetStringMacro(CellColorArrayNameInternal);
103 
104 private:
106  void operator=(const vtkRenderedSurfaceRepresentation&) = delete;
107 };
108 
109 VTK_ABI_NAMESPACE_END
110 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:151
Proxy object to connect input/output ports.
apply colors to a data set.
general representation of visualization data
extract boundary geometry from dataset (or convert data to polygonal type)
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:69
Displays a geometric dataset as a surface.
bool AddToView(vtkView *view) override
Adds the representation to the view.
vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection) override
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
bool RemoveFromView(vtkView *view) override
Removes the representation to the view.
vtkApplyColors * ApplyColors
Internal pipeline objects.
vtkGeometryFilter * GeometryFilter
Internal pipeline objects.
void PrepareForRendering(vtkRenderView *view) override
Performs per-render operations.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Sets the input pipeline connection to this representation.
vtkActor * Actor
Internal pipeline objects.
vtkPolyDataMapper * Mapper
Internal pipeline objects.
static vtkRenderedSurfaceRepresentation * New()
void ApplyViewTheme(vtkViewTheme *theme) override
Apply a theme to this representation.
virtual void SetCellColorArrayName(const char *arrayName)
Sets the color array name.
vtkTransformFilter * TransformFilter
Internal pipeline objects.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for mapping scalar values to colors.
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:159
transform points and associated normals and vectors
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:123
The superclass for all views.
Definition: vtkView.h:49