VTK  9.0.1
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
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:36
vtkDataRepresentation::AddToView
virtual bool AddToView(vtkView *vtkNotUsed(view))
Adds the representation to the view.
Definition: vtkDataRepresentation.h:306
vtkRenderView
A view containing a renderer.
Definition: vtkRenderView.h:64
vtkDataRepresentation::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses should override this to connect inputs to the internal pipeline as necessary.
Definition: vtkDataRepresentation.h:260
vtkRenderedRepresentation
Definition: vtkRenderedRepresentation.h:42
vtkRenderedSurfaceRepresentation::GeometryFilter
vtkGeometryFilter * GeometryFilter
Definition: vtkRenderedSurfaceRepresentation.h:107
vtkRenderedSurfaceRepresentation
Displays a geometric dataset as a surface.
Definition: vtkRenderedSurfaceRepresentation.h:49
vtkGeometryFilter
extract geometry from data (or convert data to polygonal type)
Definition: vtkGeometryFilter.h:61
vtkRenderedSurfaceRepresentation::ApplyColors
vtkApplyColors * ApplyColors
Definition: vtkRenderedSurfaceRepresentation.h:106
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkRenderedSurfaceRepresentation::GetCellColorArrayName
virtual const char * GetCellColorArrayName()
Definition: vtkRenderedSurfaceRepresentation.h:60
vtkRenderedSurfaceRepresentation::Mapper
vtkPolyDataMapper * Mapper
Definition: vtkRenderedSurfaceRepresentation.h:108
vtkApplyColors
apply colors to a data set.
Definition: vtkApplyColors.h:86
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:57
vtkDataRepresentation::RemoveFromView
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
Removes the representation to the view.
Definition: vtkDataRepresentation.h:313
vtkRenderedRepresentation.h
vtkView
The superclass for all views.
Definition: vtkView.h:63
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:42
vtkRenderedSurfaceRepresentation::CellColorArrayNameInternal
char * CellColorArrayNameInternal
Definition: vtkRenderedSurfaceRepresentation.h:113
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataRepresentation::ConvertSelection
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:59
vtkRenderedRepresentation::PrepareForRendering
virtual void PrepareForRendering(vtkRenderView *view)
The view will call this method before every render.
vtkRenderedSurfaceRepresentation::Actor
vtkActor * Actor
Definition: vtkRenderedSurfaceRepresentation.h:109
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkRenderedRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkRenderedSurfaceRepresentation::TransformFilter
vtkTransformFilter * TransformFilter
Internal pipeline objects.
Definition: vtkRenderedSurfaceRepresentation.h:105
vtkTransformFilter
transform points and associated normals and vectors
Definition: vtkTransformFilter.h:46
vtkDataRepresentation::ApplyViewTheme
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to this representation.
Definition: vtkDataRepresentation.h:100
vtkRenderedRepresentation::New
static vtkRenderedRepresentation * New()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59