VTK
dox/Infovis/Core/vtkPruneTreeFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPruneTreeFilter.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 -------------------------------------------------------------------------*/
00031 #ifndef __vtkPruneTreeFilter_h
00032 #define __vtkPruneTreeFilter_h
00033 
00034 #include "vtkInfovisCoreModule.h" // For export macro
00035 #include "vtkTreeAlgorithm.h"
00036 
00037 class vtkTree;
00038 class vtkPVXMLElement;
00039 
00040 class VTKINFOVISCORE_EXPORT vtkPruneTreeFilter : public vtkTreeAlgorithm
00041 {
00042 public:
00043   static vtkPruneTreeFilter* New();
00044   vtkTypeMacro(vtkPruneTreeFilter,vtkTreeAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00049   vtkGetMacro(ParentVertex, vtkIdType);
00050   vtkSetMacro(ParentVertex, vtkIdType);
00052 
00054 
00056   vtkGetMacro(ShouldPruneParentVertex, bool);
00057   vtkSetMacro(ShouldPruneParentVertex, bool);
00059 
00060 protected:
00061   vtkPruneTreeFilter();
00062   ~vtkPruneTreeFilter();
00063 
00064   vtkIdType ParentVertex;
00065   bool ShouldPruneParentVertex;
00066 
00067   int RequestData(
00068     vtkInformation*,
00069     vtkInformationVector**,
00070     vtkInformationVector*);
00071 
00072 private:
00073   vtkPruneTreeFilter(const vtkPruneTreeFilter&); // Not implemented
00074   void operator=(const vtkPruneTreeFilter&);   // Not implemented
00075 };
00076 
00077 #endif
00078