/home/kolos/working/oh/oh/core/Graph2D.h

00001 #ifndef GRAPH2D_H
00002 #define GRAPH2D_H
00003 
00004 #include <oh/core/Object.h>
00005 #include <oh/core/Axis.h>
00006 #include <string>
00007 #include <vector>
00008 
00009 
00010 // <<BeginUserCode>>
00011 
00012 // <<EndUserCode>>
00013 
00014 namespace oh
00015 {
00023 class Graph2D : public Object {
00024 public:
00025     enum ErrorStyle {None,Symmetric};
00026 
00027 
00031     std::string                   title;
00032 
00036     unsigned long                 entries;
00037 
00041     std::vector<double>           errors;
00042 
00046     ErrorStyle                    errorStyle;
00047 
00051     std::vector<double>           points;
00052 
00056     std::vector<Axis>             axes;
00057 
00058 
00059     static const ISType & type() {
00060         static const ISType type_ = Graph2D( ).ISInfo::type();
00061         return type_;
00062     }
00063 
00064     Graph2D( )
00065       : Object( "Graph2D" )
00066     {
00067         initialize();
00068     }
00069 
00070     ~Graph2D(){
00071 
00072 // <<BeginUserCode>>
00073 
00074 // <<EndUserCode>>
00075     }
00076 
00077 protected:
00078     Graph2D( const std::string & type )
00079       : Object( type )
00080     {
00081         initialize();
00082     }
00083 
00084     void publishGuts( ISostream & out ){
00085         Object::publishGuts( out );
00086         out << title << entries << errors << errorStyle << points << axes;
00087     }
00088 
00089     void refreshGuts( ISistream & in ){
00090         Object::refreshGuts( in );
00091         in >> title >> entries >> errors >> errorStyle >> points >> axes;
00092     }
00093 
00094 private:
00095     void initialize()
00096     {
00097         errorStyle = None;
00098 
00099 // <<BeginUserCode>>
00100 
00101 // <<EndUserCode>>
00102     }
00103 
00104 
00105 // <<BeginUserCode>>
00106 
00107 // <<EndUserCode>>
00108 };
00109 
00110 // <<BeginUserCode>>
00111 
00112 // <<EndUserCode>>
00113 }
00114 
00115 #endif // GRAPH2D_H

Generated on Thu Dec 21 16:26:02 2006 for OH User API by  doxygen 1.4.7