VTK
|
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 "vtkInfovisLayoutModule.h" // For export macro 00031 #include "vtkGraphLayoutStrategy.h" 00032 #include "vtkSmartPointer.h" // For SP ivars 00033 00034 class vtkAssignCoordinates; 00035 00036 class VTKINFOVISLAYOUT_EXPORT vtkAssignCoordinatesLayoutStrategy : public vtkGraphLayoutStrategy 00037 { 00038 public: 00039 static vtkAssignCoordinatesLayoutStrategy *New(); 00040 vtkTypeMacro(vtkAssignCoordinatesLayoutStrategy, vtkGraphLayoutStrategy); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 00045 virtual void SetXCoordArrayName(const char* name); 00046 virtual const char* GetXCoordArrayName(); 00048 00050 00051 virtual void SetYCoordArrayName(const char* name); 00052 virtual const char* GetYCoordArrayName(); 00054 00056 00057 virtual void SetZCoordArrayName(const char* name); 00058 virtual const char* GetZCoordArrayName(); 00060 00062 void Layout(); 00063 00064 protected: 00065 vtkAssignCoordinatesLayoutStrategy(); 00066 ~vtkAssignCoordinatesLayoutStrategy(); 00067 00068 //BTX 00069 vtkSmartPointer<vtkAssignCoordinates> AssignCoordinates; 00070 //ETX 00071 00072 private: 00073 vtkAssignCoordinatesLayoutStrategy(const vtkAssignCoordinatesLayoutStrategy&); // Not implemented. 00074 void operator=(const vtkAssignCoordinatesLayoutStrategy&); // Not implemented. 00075 }; 00076 00077 #endif 00078