casa
$Rev:20696$
|
00001 #ifndef PLOTTERIMPLEMENTATIONS_H_ 00002 #define PLOTTERIMPLEMENTATIONS_H_ 00003 00004 #include <graphics/GenericPlotter/SimplePlotter.h> 00005 00006 #include <casa/namespace.h> 00007 00008 namespace casa { 00009 00010 // The plotterImplementation function is a global function 00011 // within the casa namespace. Any implementation of the 00012 // generic plotter interface should: 00013 // 1) add itself to the Implementation enum in the 00014 // graphics/implementation/Plotter.h file, 00015 // 2) add a case statement to this function to return a 00016 // new instance of the factory for that implementation. 00017 PlotFactoryPtr plotterImplementation( 00018 Plotter::Implementation which = Plotter::DEFAULT, 00019 bool smartDelete = true); 00020 00021 // The simplePlotter function is a global function 00022 // within the casa namespace. 00023 SimplePlotterPtr simplePlotter(Plotter::Implementation which= Plotter::DEFAULT, 00024 bool smartDelete = true); 00025 00026 class PlotterImplementations { 00027 public: 00028 static String implementationName(Plotter::Implementation i); 00029 00030 static String implementationAbout(Plotter::Implementation i, 00031 bool useHTML = true); 00032 00033 static String implementationVersion(Plotter::Implementation i); 00034 00035 static String implementationLink(Plotter::Implementation i, 00036 bool useHTML = true); 00037 }; 00038 00039 } 00040 00041 #endif /* PLOTTERIMPLEMENTATIONS_H_ */