• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Infovis/vtkGraphLayout.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkGraphLayout.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 -------------------------------------------------------------------------*/
00036 #ifndef __vtkGraphLayout_h
00037 #define __vtkGraphLayout_h
00038 
00039 #include "vtkGraphAlgorithm.h"
00040 
00041 class vtkEventForwarderCommand;
00042 class vtkGraphLayoutStrategy;
00043 
00044 class VTK_INFOVIS_EXPORT vtkGraphLayout : public vtkGraphAlgorithm 
00045 {
00046 public:
00047   static vtkGraphLayout *New();
00048   vtkTypeRevisionMacro(vtkGraphLayout, vtkGraphAlgorithm);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy);
00054   vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
00056   
00058   virtual int IsLayoutComplete();
00059 
00061   virtual unsigned long GetMTime();
00062 
00063 protected:
00064   vtkGraphLayout();
00065   ~vtkGraphLayout();
00066 
00067   vtkGraphLayoutStrategy* LayoutStrategy;
00068 
00070 
00072   vtkEventForwarderCommand *EventForwarder;
00073   unsigned long ObserverTag;
00075 
00076   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00077   
00078 private:
00079 
00080   vtkGraph* LastInput;
00081   vtkGraph* InternalGraph;
00082   unsigned long LastInputMTime;
00083   bool StrategyChanged;
00084 
00085   vtkGraphLayout(const vtkGraphLayout&);  // Not implemented.
00086   void operator=(const vtkGraphLayout&);  // Not implemented.
00087 };
00088 
00089 #endif

Generated by  doxygen 1.7.1