VTK  9.1.0
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
37class vtkActor;
39class vtkApplyColors;
40class vtkDataObject;
43class vtkRenderView;
45class vtkSelection;
47class vtkView;
48
50{
51public:
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
67protected:
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
116private:
118 void operator=(const vtkRenderedSurfaceRepresentation&) = delete;
119};
120
121#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:84
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.
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.
static vtkRenderedSurfaceRepresentation * New()
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:163
transform points and associated normals and vectors
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:132
The superclass for all views.
Definition: vtkView.h:64