COPASI API  4.16.103
CLGlobalRenderInformation.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLGlobalRenderInformation.h,v $
3 // $Revision: 1.6 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/30 16:35:21 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #ifndef CLGlobalRenderInformation_H__
15 #define CLGlobalRenderInformation_H__
16 
17 #include <string>
18 
21 
23 
24 class CCopasiContainer;
25 class GlobalRenderInformation;
26 
28 {
29 protected:
31 
32 public:
33  /**
34  * Constructor.
35  */
37 
38  /**
39  * Copy Constructor.
40  */
42 
43  /**
44  * Constructor to generate object from the corresponding SBML object.
45  */
46  CLGlobalRenderInformation(const GlobalRenderInformation& source,
47  /*
48  std::map<std::string,std::string>& colorIdToKeyMap,
49  std::map<std::string,std::string>& gradientIdToKeyMap,
50  std::map<std::string,std::string>& lineEndingIdToKeyMap,
51  */
52  CCopasiContainer* pParent = NULL);
53 
54  /**
55  * Returns the number of styles.
56  */
57  size_t getNumStyles() const;
58 
59  /**
60  * Returns a pointer to the LitOfStyles object.
61  */
63 
64  /**
65  * Returns a pointer to the LitOfStyles object.
66  */
68 
69  /**
70  * Returns a pointer to the style with the given index.
71  * If the index is invalid, NULL is returned.
72  */
73  CLStyle* getStyle(size_t i);
74 
75  /**
76  * Returns a pointer to the style with the given index.
77  * If the index is invalid, NULL is returned.
78  */
79  const CLStyle* getStyle(size_t i) const;
80 
82 
83  void addStyle(const CLGlobalStyle* pStyle);
84 
85  /**
86  * Converts this object to the corresponding SBML object.
87  */
88  bool toSBML(GlobalRenderInformation* pGRI, unsigned int level, unsigned int version) const;
89 };
90 
91 #endif /* CLGlobalRenderInformation_H__ */
CLGlobalRenderInformation(CCopasiContainer *pParent=NULL)
void addStyle(const CLGlobalStyle *pStyle)
CCopasiVector< CLGlobalStyle > * getListOfStyles()
bool toSBML(GlobalRenderInformation *pGRI, unsigned int level, unsigned int version) const
CCopasiVector< CLGlobalStyle > mListOfStyles