00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkRenderedSurfaceRepresentation.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00033 #ifndef __vtkRenderedSurfaceRepresentation_h 00034 #define __vtkRenderedSurfaceRepresentation_h 00035 00036 #include "vtkRenderedRepresentation.h" 00037 00038 class vtkActor; 00039 class vtkAlgorithmOutput; 00040 class vtkApplyColors; 00041 class vtkDataObject; 00042 class vtkGeometryFilter; 00043 class vtkPolyDataMapper; 00044 class vtkRenderView; 00045 class vtkScalarsToColors; 00046 class vtkSelection; 00047 class vtkTransformFilter; 00048 class vtkView; 00049 00050 class VTK_VIEWS_EXPORT vtkRenderedSurfaceRepresentation : public vtkRenderedRepresentation 00051 { 00052 public: 00053 static vtkRenderedSurfaceRepresentation *New(); 00054 vtkTypeMacro(vtkRenderedSurfaceRepresentation, vtkRenderedRepresentation); 00055 void PrintSelf(ostream& os, vtkIndent indent); 00056 00058 00059 virtual void SetCellColorArrayName(const char* arrayName); 00060 virtual const char* GetCellColorArrayName() 00061 { return this->GetCellColorArrayNameInternal(); } 00063 00065 virtual void ApplyViewTheme(vtkViewTheme* theme); 00066 00067 protected: 00068 vtkRenderedSurfaceRepresentation(); 00069 ~vtkRenderedSurfaceRepresentation(); 00070 00072 00073 virtual int RequestData( 00074 vtkInformation* request, 00075 vtkInformationVector** inputVector, 00076 vtkInformationVector* outputVector); 00078 00080 virtual void PrepareForRendering(vtkRenderView* view); 00081 00084 virtual bool AddToView(vtkView* view); 00085 00088 virtual bool RemoveFromView(vtkView* view); 00089 00093 virtual vtkSelection* ConvertSelection(vtkView* view, vtkSelection* selection); 00094 00096 00097 vtkTransformFilter* TransformFilter; 00098 vtkApplyColors* ApplyColors; 00099 vtkGeometryFilter* GeometryFilter; 00100 vtkPolyDataMapper* Mapper; 00101 vtkActor* Actor; 00103 00104 vtkGetStringMacro(CellColorArrayNameInternal); 00105 vtkSetStringMacro(CellColorArrayNameInternal); 00106 char* CellColorArrayNameInternal; 00107 00108 private: 00109 vtkRenderedSurfaceRepresentation(const vtkRenderedSurfaceRepresentation&); // Not implemented. 00110 void operator=(const vtkRenderedSurfaceRepresentation&); // Not implemented. 00111 }; 00112 00113 #endif