copasi API
0.1
|
00001 // Begin CVS Header 00002 // $Source: /fs/turing/cvs/copasi_dev/copasi/barChart/qwt3dColor.h,v $ 00003 // $Revision: 1.1 $ 00004 // $Name: Build-33 $ 00005 // $Author: akoenig $ 00006 // $Date: 2007/11/12 17:01:07 $ 00007 // End CVS Header 00008 00009 // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual 00010 // Properties, Inc. and EML Research, gGmbH. 00011 // All rights reserved. 00012 00013 #ifndef BAR_COLOR_H 00014 #define BAR_COLOR_H 00015 00016 #include "qwt3d_plot.h" 00017 00018 class QWT3D_EXPORT BarColor : public Qwt3D::Color 00019 { 00020 public: 00022 explicit BarColor(Qwt3D::Plot3D* data, unsigned size = 100, double min = 0, double max = 0); 00023 Qwt3D::RGBA operator()(double x, double y, double z) const; 00024 void setColorVector(Qwt3D::ColorVector const& cv); 00025 void reset(unsigned size = 100); 00026 void setAlpha(double a); 00027 00033 Qwt3D::ColorVector& createVector(Qwt3D::ColorVector& vec) {vec = colors_; return vec;} 00034 00035 double maxZ; 00036 double minZ; 00037 protected: 00038 Qwt3D::ColorVector colors_; 00039 Qwt3D::Plot3D* data_; 00040 }; 00041 00042 #endif // BAR_COLOR_H