VTK
dox/Infovis/vtkAssignCoordinatesLayoutStrategy.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkAssignCoordinatesLayoutStrategy.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 -------------------------------------------------------------------------*/
00027 #ifndef __vtkAssignCoordinatesLayoutStrategy_h
00028 #define __vtkAssignCoordinatesLayoutStrategy_h
00029 
00030 #include "vtkGraphLayoutStrategy.h"
00031 #include "vtkSmartPointer.h" // For SP ivars
00032 
00033 class vtkAssignCoordinates;
00034 
00035 class VTK_INFOVIS_EXPORT vtkAssignCoordinatesLayoutStrategy : public vtkGraphLayoutStrategy 
00036 {
00037 public:
00038   static vtkAssignCoordinatesLayoutStrategy *New();
00039   vtkTypeMacro(vtkAssignCoordinatesLayoutStrategy, vtkGraphLayoutStrategy);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   virtual void SetXCoordArrayName(const char* name);
00045   virtual const char* GetXCoordArrayName();
00047 
00049 
00050   virtual void SetYCoordArrayName(const char* name);
00051   virtual const char* GetYCoordArrayName();
00053 
00055 
00056   virtual void SetZCoordArrayName(const char* name);
00057   virtual const char* GetZCoordArrayName();
00059 
00061   void Layout();
00062 
00063 protected:
00064   vtkAssignCoordinatesLayoutStrategy();
00065   ~vtkAssignCoordinatesLayoutStrategy();
00066 
00067   //BTX
00068   vtkSmartPointer<vtkAssignCoordinates> AssignCoordinates;
00069   //ETX
00070 
00071 private:
00072   vtkAssignCoordinatesLayoutStrategy(const vtkAssignCoordinatesLayoutStrategy&);  // Not implemented.
00073   void operator=(const vtkAssignCoordinatesLayoutStrategy&);  // Not implemented.
00074 };
00075 
00076 #endif
00077