VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGeoEdgeStrategy.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 -------------------------------------------------------------------------*/ 00038 #ifndef __vtkGeoEdgeStrategy_h 00039 #define __vtkGeoEdgeStrategy_h 00040 00041 #include "vtkInfovisLayoutModule.h" // For export macro 00042 #include "vtkEdgeLayoutStrategy.h" 00043 00044 class VTKINFOVISLAYOUT_EXPORT vtkGeoEdgeStrategy : public vtkEdgeLayoutStrategy 00045 { 00046 public: 00047 static vtkGeoEdgeStrategy *New(); 00048 vtkTypeMacro(vtkGeoEdgeStrategy,vtkEdgeLayoutStrategy); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00055 vtkSetMacro(GlobeRadius, double); 00056 vtkGetMacro(GlobeRadius, double); 00058 00060 00064 vtkSetMacro(ExplodeFactor, double); 00065 vtkGetMacro(ExplodeFactor, double); 00067 00069 00070 vtkSetMacro(NumberOfSubdivisions, int); 00071 vtkGetMacro(NumberOfSubdivisions, int); 00073 00075 virtual void Layout(); 00076 00077 protected: 00078 vtkGeoEdgeStrategy(); 00079 ~vtkGeoEdgeStrategy() {} 00080 00081 double GlobeRadius; 00082 double ExplodeFactor; 00083 int NumberOfSubdivisions; 00084 00085 private: 00086 vtkGeoEdgeStrategy(const vtkGeoEdgeStrategy&); // Not implemented. 00087 void operator=(const vtkGeoEdgeStrategy&); // Not implemented. 00088 }; 00089 00090 #endif