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
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:43
vtkRenderedSurfaceRepresentation::vtkRenderedSurfaceRepresentation
vtkRenderedSurfaceRepresentation()
vtkRenderView
A view containing a renderer.
Definition: vtkRenderView.h:62
vtkRenderedSurfaceRepresentation::~vtkRenderedSurfaceRepresentation
~vtkRenderedSurfaceRepresentation()
vtkRenderedRepresentation
Definition: vtkRenderedRepresentation.h:43
vtkRenderedSurfaceRepresentation::GeometryFilter
vtkGeometryFilter * GeometryFilter
Definition: vtkRenderedSurfaceRepresentation.h:113
vtkRenderedSurfaceRepresentation
Displays a geometric dataset as a surface.
Definition: vtkRenderedSurfaceRepresentation.h:53
vtkGeometryFilter
extract geometry from data (or convert data to polygonal type)
Definition: vtkGeometryFilter.h:68
vtkRenderedSurfaceRepresentation::ApplyColors
vtkApplyColors * ApplyColors
Definition: vtkRenderedSurfaceRepresentation.h:112
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkRenderedSurfaceRepresentation::GetCellColorArrayName
virtual const char * GetCellColorArrayName()
Definition: vtkRenderedSurfaceRepresentation.h:63
vtkRenderedSurfaceRepresentation::Mapper
vtkPolyDataMapper * Mapper
Definition: vtkRenderedSurfaceRepresentation.h:114
vtkRenderedSurfaceRepresentation::ConvertSelection
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
vtkApplyColors
apply colors to a data set.
Definition: vtkApplyColors.h:87
vtkSelection
A node in a selection tree.
Definition: vtkSelection.h:44
vtkRenderedSurfaceRepresentation::SetCellColorArrayName
virtual void SetCellColorArrayName(const char *arrayName)
Sets the color array name.
vtkRenderedRepresentation.h
vtkRenderedSurfaceRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkView
The superclass for all views.
Definition: vtkView.h:61
vtkViewTheme
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:49
vtkRenderedSurfaceRepresentation::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Sets the input pipeline connection to this representation.
vtkRenderedSurfaceRepresentation::New
static vtkRenderedSurfaceRepresentation * New()
vtkRenderedSurfaceRepresentation::CellColorArrayNameInternal
char * CellColorArrayNameInternal
Definition: vtkRenderedSurfaceRepresentation.h:119
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:67
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkRenderedSurfaceRepresentation::Actor
vtkActor * Actor
Definition: vtkRenderedSurfaceRepresentation.h:115
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkRenderedSurfaceRepresentation::PrepareForRendering
virtual void PrepareForRendering(vtkRenderView *view)
Performs per-render operations.
vtkRenderedSurfaceRepresentation::TransformFilter
vtkTransformFilter * TransformFilter
Internal pipeline objects.
Definition: vtkRenderedSurfaceRepresentation.h:111
vtkTransformFilter
transform points and associated normals and vectors
Definition: vtkTransformFilter.h:50
vtkRenderedSurfaceRepresentation::AddToView
virtual bool AddToView(vtkView *view)
Adds the representation to the view.
vtkRenderedSurfaceRepresentation::ApplyViewTheme
virtual void ApplyViewTheme(vtkViewTheme *theme)
Apply a theme to this representation.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkRenderedSurfaceRepresentation::RemoveFromView
virtual bool RemoveFromView(vtkView *view)
Removes the representation to the view.