Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

RepBase.sip

Go to the documentation of this file.
00001 /* -*- mode:c++ -*- */
00002 
00018 class RepBase
00019 {
00020 %TypeHeaderCode
00021 #include "reps/RepBase.h"
00022 %End
00023 
00024 public:
00025 
00026   RepBase ();
00027 
00028 
00030   virtual ~RepBase();
00031 
00034   virtual RepBase * clone() = 0;
00035 
00038   const std:: string & name () const;
00039 
00041   virtual void setColor ( const Color & );
00042 
00047   virtual void setStyle ( unsigned int  );
00048 
00053   virtual unsigned int getStyle ( ) const;
00054 
00056   void setText ( const std::string &  );
00057 
00059   virtual const Color & getColor () const;
00060 
00065   virtual const Color & color () const;
00066 
00070   virtual void setSelected ( bool yes = true );
00071 
00075   virtual bool isSelected () const;
00076 
00078   float size () const;
00079 
00081   void setSize ( float  );
00082 
00086   virtual bool xError () const;
00087 
00091   virtual bool yError () const;
00092 
00095   virtual void setErrorOn ( const std::string & , bool yes = true );
00096 
00097 //   /** Returns the value transform.  A value transform changes a binary
00098 //       value to some graphical representations such as color. The
00099 //       implementation in this base class returns a null pointer.
00100 //       Derived classes that implement value transform should return a
00101 //       pointer to the object it uses.
00102 //   */
00103 //   virtual  const BinToColor * getValueTransform ( ) const;
00104 
00105 //   /** Sets the value transform.  The implementation in this base class
00106 //       does nothing.  Derived classes that implement a value transform
00107 //       should override this method and take possession of the received
00108 //       object.
00109 
00110 //       @todo Should have base class that doesn't know about color and
00111 //       BinToColor class should derive from it.
00112 //   */
00113 //   virtual void setValueTransform ( BinToColor * );
00114 
00115 //   /** Draws the projected values.  Draws the projected values
00116 //       contained in the DataSource @a ntuple.  Each row of the %NTuple is
00117 //       data point tuple of some dimension.  Derived classes expect the
00118 //       DataSoruce to be of the correct dimension.  The drawn points
00119 //       undergo a transform represented by @a transform and are draw to
00120 //       the view @a view.
00121 //   */
00122 //   virtual void drawProjectedValues ( const DataSource * ,
00123 //                                   TransformBase * ,
00124 //                                   ViewBase *  ) = 0;
00125 
00126 
00127 };

Generated on Wed Sep 7 14:51:29 2005 for SiHippo by  doxygen 1.4.3