COPASI API  4.16.103
CLGraphicalPrimitive2D.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLGraphicalPrimitive2D.h,v $
3 // $Revision: 1.3 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/30 16:35:20 $
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 CLGraphicalPrimitvide2D_H__
15 #define CLGraphicalPrimitvide2D_H__
16 
19 
20 #include <string>
21 
22 class GraphicalPrimitive2D;
23 
25 {
26 public:
27  enum FILL_RULE
28  {
33  };
34 
35 protected:
37  std::string mFill;
38 
39 public:
40  /**
41  * Constructor.
42  */
44 
45  /**
46  * Constructor to generate object from the corresponding SBML object.
47  */
48  CLGraphicalPrimitive2D(const GraphicalPrimitive2D& source);
49 
50  /**
51  * Set fill color.
52  */
53  void setFillColor(const std::string& color);
54 
55  /**
56  * Sets the fill rule
57  */
58  void setFillRule(FILL_RULE rule);
59 
60  /**
61  * Returns the fill color.
62  */
63  const std::string& getFillColor() const;
64 
65  /**
66  * Returns the fill rule.
67  */
68  FILL_RULE getFillRule() const;
69 
70  /**
71  * Returns true if the fill attribute is set or false otherwise.
72  */
73  bool isSetFill() const;
74 
75  /**
76  * Returns true if the fill rule attribute is set or false otherwise.
77  */
78  bool isSetFillRule() const;
79 
80  /**
81  * Adds the attributes for a 2d graphical primitive object to the passed in.
82  * object.
83  */
84  virtual void addSBMLAttributes(GraphicalPrimitive2D* pPrimitive) const;
85 };
86 
87 #endif /* CLGraphicalPrimitive2D_H__ */
virtual void addSBMLAttributes(GraphicalPrimitive2D *pPrimitive) const
void setFillColor(const std::string &color)
Header file of class CCopasiContainer.
const std::string & getFillColor() const
void setFillRule(FILL_RULE rule)