VTK
dox/Views/Infovis/vtkRenderedSurfaceRepresentation.h
Go to the documentation of this file.
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 "vtkViewsInfovisModule.h" // For export macro
00037 #include "vtkRenderedRepresentation.h"
00038 
00039 class vtkActor;
00040 class vtkAlgorithmOutput;
00041 class vtkApplyColors;
00042 class vtkDataObject;
00043 class vtkGeometryFilter;
00044 class vtkPolyDataMapper;
00045 class vtkRenderView;
00046 class vtkScalarsToColors;
00047 class vtkSelection;
00048 class vtkTransformFilter;
00049 class vtkView;
00050 
00051 class VTKVIEWSINFOVIS_EXPORT vtkRenderedSurfaceRepresentation : public vtkRenderedRepresentation
00052 {
00053 public:
00054   static vtkRenderedSurfaceRepresentation *New();
00055   vtkTypeMacro(vtkRenderedSurfaceRepresentation, vtkRenderedRepresentation);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059 
00060   virtual void SetCellColorArrayName(const char* arrayName);
00061   virtual const char* GetCellColorArrayName()
00062     { return this->GetCellColorArrayNameInternal(); }
00064 
00066   virtual void ApplyViewTheme(vtkViewTheme* theme);
00067 
00068 protected:
00069   vtkRenderedSurfaceRepresentation();
00070   ~vtkRenderedSurfaceRepresentation();
00071 
00073 
00074   virtual int RequestData(
00075     vtkInformation* request,
00076     vtkInformationVector** inputVector,
00077     vtkInformationVector* outputVector);
00079 
00081   virtual void PrepareForRendering(vtkRenderView* view);
00082 
00085   virtual bool AddToView(vtkView* view);
00086 
00089   virtual bool RemoveFromView(vtkView* view);
00090 
00094   virtual vtkSelection* ConvertSelection(vtkView* view, vtkSelection* selection);
00095 
00097 
00098   vtkTransformFilter*   TransformFilter;
00099   vtkApplyColors*       ApplyColors;
00100   vtkGeometryFilter*    GeometryFilter;
00101   vtkPolyDataMapper*    Mapper;
00102   vtkActor*             Actor;
00104 
00105   vtkGetStringMacro(CellColorArrayNameInternal);
00106   vtkSetStringMacro(CellColorArrayNameInternal);
00107   char* CellColorArrayNameInternal;
00108 
00109 private:
00110   vtkRenderedSurfaceRepresentation(const vtkRenderedSurfaceRepresentation&);  // Not implemented.
00111   void operator=(const vtkRenderedSurfaceRepresentation&);  // Not implemented.
00112 };
00113 
00114 #endif