COPASI API  4.16.103
CPlotSpecification.h
Go to the documentation of this file.
1 /* Begin CVS Header
2  $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/plot/CPlotSpecification.h,v $
3  $Revision: 1.12 $
4  $Name: $
5  $Author: gauges $
6  $Date: 2006/10/15 07:48:56 $
7  End CVS Header */
8 
9 // Copyright 2005 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc. and EML Research, gGmbH.
11 // All rights reserved.
12 
13 /**
14  *
15  */
16 
17 #ifndef COPASI_PLOT_SPECIFICATION
18 #define COPASI_PLOT_SPECIFICATION
19 
20 #include <string>
21 
22 #include "plot/CPlotItem.h"
24 
25 class CModel;
26 
28  {
29  private:
30 
32  bool mActive;
33 
34  /**
35  * Initialize the contained CCopasiObjects
36  */
37  void initObjects();
38 
39  public:
40  CPlotSpecification(const std::string & name = "NoName",
41  const CCopasiContainer * pParent = NULL,
42  const CPlotItem::Type & type = plot2d);
43 
45  const CCopasiContainer * pParent = NULL);
46 
47  /**
48  * Destructor
49  */
50  virtual ~CPlotSpecification();
51 
52  virtual void cleanup();
53 
54  const CCopasiVector<CPlotItem> & getItems() const {return items;};
55 
57 
58  CPlotItem* createItem(const std::string & name, CPlotItem::Type type);
59 
60  bool createDefaultPlot(const CModel* model);
61 
62  void setActive(const bool & active);
63 
64  const bool & isActive() const;
65 
66  bool isLogX() const;
67  bool isLogY() const;
68 
69  void setLogX(bool l);
70  void setLogY(bool l);
71  };
72 
73 #endif
CCopasiVector< CPlotItem > & getItems()
bool createDefaultPlot(const CModel *model)
void setActive(const bool &active)
const bool & isActive() const
CCopasiVector< CPlotItem > items
CPlotItem * createItem(const std::string &name, CPlotItem::Type type)
const CCopasiVector< CPlotItem > & getItems() const
Definition: CModel.h:50
CPlotSpecification(const std::string &name="NoName", const CCopasiContainer *pParent=NULL, const CPlotItem::Type &type=plot2d)