VTK
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 -------------------------------------------------------------------------*/
34 #ifndef vtkRenderedSurfaceRepresentation_h
35 #define vtkRenderedSurfaceRepresentation_h
36 
37 #include "vtkViewsInfovisModule.h" // For export macro
39 
40 class vtkActor;
41 class vtkAlgorithmOutput;
42 class vtkApplyColors;
43 class vtkDataObject;
44 class vtkGeometryFilter;
45 class vtkPolyDataMapper;
46 class vtkRenderView;
47 class vtkScalarsToColors;
48 class vtkSelection;
49 class vtkTransformFilter;
50 class vtkView;
51 
52 class VTKVIEWSINFOVIS_EXPORT vtkRenderedSurfaceRepresentation : public vtkRenderedRepresentation
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
62  virtual void SetCellColorArrayName(const char* arrayName);
63  virtual const char* GetCellColorArrayName()
64  { return this->GetCellColorArrayNameInternal(); }
65 
69  virtual void ApplyViewTheme(vtkViewTheme* theme);
70 
71 protected:
74 
78  virtual int RequestData(
79  vtkInformation* request,
80  vtkInformationVector** inputVector,
81  vtkInformationVector* outputVector);
82 
86  virtual void PrepareForRendering(vtkRenderView* view);
87 
92  virtual bool AddToView(vtkView* view);
93 
98  virtual bool RemoveFromView(vtkView* view);
99 
105  virtual vtkSelection* ConvertSelection(vtkView* view, vtkSelection* selection);
106 
108 
117 
118  vtkGetStringMacro(CellColorArrayNameInternal);
119  vtkSetStringMacro(CellColorArrayNameInternal);
121 
122 private:
124  void operator=(const vtkRenderedSurfaceRepresentation&) VTK_DELETE_FUNCTION;
125 };
126 
127 #endif
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
Apply a theme to this representation.
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
vtkTransformFilter * TransformFilter
Internal pipeline objects.
vtkActor * Actor
Internal pipeline objects.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
A node in a selection tree.
Definition: vtkSelection.h:43
vtkPolyDataMapper * Mapper
Internal pipeline objects.
vtkApplyColors * ApplyColors
Internal pipeline objects.
virtual bool AddToView(vtkView *vtkNotUsed(view))
Adds the representation to the view.
vtkGeometryFilter * GeometryFilter
Internal pipeline objects.
static vtkRenderedRepresentation * New()
Proxy object to connect input/output ports.
Superclass for mapping scalar values to colors.
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:48
The superclass for all views.
Definition: vtkView.h:60
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
Removes the representation to the view.
virtual void PrepareForRendering(vtkRenderView *view)
The view will call this method before every render.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses should override this to connect inputs to the internal pipeline as necessary.
map vtkPolyData to graphics primitives
A view containing a renderer.
Definition: vtkRenderView.h:61
transform points and associated normals and vectors
Store zero or more vtkInformation instances.
apply colors to a data set.
extract geometry from data (or convert data to polygonal type)
Displays a geometric dataset as a surface.
general representation of visualization data
Definition: vtkDataObject.h:64