VTK  9.0.3
vtkRenderedSurfaceRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderedSurfaceRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
31 #ifndef vtkRenderedSurfaceRepresentation_h
32 #define vtkRenderedSurfaceRepresentation_h
33 
35 #include "vtkViewsInfovisModule.h" // For export macro
36 
37 class vtkActor;
38 class vtkAlgorithmOutput;
39 class vtkApplyColors;
40 class vtkDataObject;
41 class vtkGeometryFilter;
42 class vtkPolyDataMapper;
43 class vtkRenderView;
44 class vtkScalarsToColors;
45 class vtkSelection;
46 class vtkTransformFilter;
47 class vtkView;
48 
49 class VTKVIEWSINFOVIS_EXPORT vtkRenderedSurfaceRepresentation : public vtkRenderedRepresentation
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
59  virtual void SetCellColorArrayName(const char* arrayName);
60  virtual const char* GetCellColorArrayName() { return this->GetCellColorArrayNameInternal(); }
61 
65  void ApplyViewTheme(vtkViewTheme* theme) override;
66 
67 protected:
70 
74  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector) override;
76 
80  void PrepareForRendering(vtkRenderView* view) override;
81 
86  bool AddToView(vtkView* view) override;
87 
92  bool RemoveFromView(vtkView* view) override;
93 
99  vtkSelection* ConvertSelection(vtkView* view, vtkSelection* selection) override;
100 
102 
111 
112  vtkGetStringMacro(CellColorArrayNameInternal);
113  vtkSetStringMacro(CellColorArrayNameInternal);
115 
116 private:
118  void operator=(const vtkRenderedSurfaceRepresentation&) = delete;
119 };
120 
121 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
Proxy object to connect input/output ports.
apply colors to a data set.
general representation of visualization data
Definition: vtkDataObject.h:60
extract geometry from data (or convert data to polygonal type)
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:59
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.
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.
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:58
transform points and associated normals and vectors
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:43
The superclass for all views.
Definition: vtkView.h:55