00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkSurfaceRepresentation.h,v $ 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 __vtkSurfaceRepresentation_h 00034 #define __vtkSurfaceRepresentation_h 00035 00036 #include "vtkDataRepresentation.h" 00037 00038 class vtkActor; 00039 class vtkAlgorithmOutput; 00040 class vtkDataObject; 00041 class vtkExtractSelection; 00042 class vtkGeometryFilter; 00043 class vtkPolyDataMapper; 00044 class vtkSelection; 00045 class vtkView; 00046 00047 class VTK_VIEWS_EXPORT vtkSurfaceRepresentation : public vtkDataRepresentation 00048 { 00049 public: 00050 static vtkSurfaceRepresentation *New(); 00051 vtkTypeRevisionMacro(vtkSurfaceRepresentation, vtkDataRepresentation); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 virtual void SetInputConnection(vtkAlgorithmOutput* conn); 00056 00058 virtual void SetSelectionLink(vtkSelectionLink* link); 00059 00060 protected: 00061 vtkSurfaceRepresentation(); 00062 ~vtkSurfaceRepresentation(); 00063 00066 virtual bool AddToView(vtkView* view); 00067 00070 virtual bool RemoveFromView(vtkView* view); 00071 00075 virtual vtkSelection* ConvertSelection(vtkView* view, vtkSelection* selection); 00076 00078 00079 vtkGeometryFilter* GeometryFilter; 00080 vtkPolyDataMapper* Mapper; 00081 vtkActor* Actor; 00082 vtkExtractSelection* ExtractSelection; 00083 vtkGeometryFilter* SelectionGeometryFilter; 00084 vtkPolyDataMapper* SelectionMapper; 00085 vtkActor* SelectionActor; 00087 00088 private: 00089 vtkSurfaceRepresentation(const vtkSurfaceRepresentation&); // Not implemented. 00090 void operator=(const vtkSurfaceRepresentation&); // Not implemented. 00091 }; 00092 00093 #endif