1 /**
2  * @file DefaultValues.cpp
3  * @brief Implementation of the DefaultValues class.
4  * @author SBMLTeam
5  *
6  * <!--------------------------------------------------------------------------
7  * This file is part of libSBML. Please visit http://sbml.org for more
8  * information about SBML, and the latest version of libSBML.
9  *
10  * Copyright (C) 2020 jointly by the following organizations:
11  *     1. California Institute of Technology, Pasadena, CA, USA
12  *     2. University of Heidelberg, Heidelberg, Germany
13  *     3. University College London, London, UK
14  *
15  * Copyright (C) 2019 jointly by the following organizations:
16  *     1. California Institute of Technology, Pasadena, CA, USA
17  *     2. University of Heidelberg, Heidelberg, Germany
18  *
19  * Copyright (C) 2013-2018 jointly by the following organizations:
20  * 1. California Institute of Technology, Pasadena, CA, USA
21  * 2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK
22  * 3. University of Heidelberg, Heidelberg, Germany
23  *
24  * Copyright (C) 2009-2013 jointly by the following organizations:
25  * 1. California Institute of Technology, Pasadena, CA, USA
26  * 2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK
27  *
28  * Copyright (C) 2006-2008 by the California Institute of Technology,
29  * Pasadena, CA, USA
30  *
31  * Copyright (C) 2002-2005 jointly by the following organizations:
32  * 1. California Institute of Technology, Pasadena, CA, USA
33  * 2. Japan Science and Technology Agency, Japan
34  *
35  * This library is free software; you can redistribute it and/or modify it
36  * under the terms of the GNU Lesser General Public License as published by the
37  * Free Software Foundation. A copy of the license agreement is provided in the
38  * file named "LICENSE.txt" included with this software distribution and also
39  * available online as http://sbml.org/software/libsbml/license.html
40  * ------------------------------------------------------------------------ -->
41  */
42 #include <sbml/packages/render/sbml/DefaultValues.h>
43 
44 
45 using namespace std;
46 
47 
48 
49 LIBSBML_CPP_NAMESPACE_BEGIN
50 
51 
52 
53 
54 #ifdef __cplusplus
55 
56 
57 /*
58  * Creates a new DefaultValues using the given SBML Level, Version and
59  * &ldquo;render&rdquo; package version.
60  */
DefaultValues(unsigned int level,unsigned int version,unsigned int pkgVersion)61 DefaultValues::DefaultValues(unsigned int level,
62                              unsigned int version,
63                              unsigned int pkgVersion)
64   : SBase(level, version)
65   , mBackgroundColor ("#FFFFFFFF")
66   , mSpreadMethod (GRADIENT_SPREADMETHOD_PAD)
67   , mLinearGradient_x1 (RelAbsVector(0.0, 0.0))
68   , mLinearGradient_y1 (RelAbsVector(0.0, 0.0))
69   , mLinearGradient_z1 (RelAbsVector(0.0, 0.0))
70   , mLinearGradient_x2 (RelAbsVector(0.0, 100.0))
71   , mLinearGradient_y2 (RelAbsVector(0.0, 100.0))
72   , mLinearGradient_z2 (RelAbsVector(0.0, 100.0))
73   , mRadialGradient_cx (RelAbsVector(0.0, 50.0))
74   , mRadialGradient_cy (RelAbsVector(0.0, 50.0))
75   , mRadialGradient_cz (RelAbsVector(0.0, 50.0))
76   , mRadialGradient_r (RelAbsVector(0.0, 50.0))
77   , mRadialGradient_fx (RelAbsVector(0.0, 50.0))
78   , mRadialGradient_fy (RelAbsVector(0.0, 50.0))
79   , mRadialGradient_fz (RelAbsVector(0.0, 50.0))
80   , mFill ("none")
81   , mFillRule (FILL_RULE_NONZERO)
82   , mDefault_z (RelAbsVector(0.0, 0.0))
83   , mStroke ("none")
84   , mStrokeWidth (0)
85   , mIsSetStrokeWidth(false)
86   , mFontFamily ("sans-serif")
87   , mFontSize (RelAbsVector(0.0, 0.0))
88   , mFontWeight (FONT_WEIGHT_NORMAL)
89   , mFontStyle (FONT_STYLE_NORMAL)
90   , mTextAnchor (H_TEXTANCHOR_START)
91   , mVTextAnchor (V_TEXTANCHOR_TOP)
92   , mStartHead ("")
93   , mEndHead ("")
94   , mEnableRotationalMapping (true)
95   , mIsSetEnableRotationalMapping (true)
96 {
97   setSBMLNamespacesAndOwn(new RenderPkgNamespaces(level, version, pkgVersion));
98   connectToChild();
99 }
100 
101 
102 /*
103  * Creates a new DefaultValues using the given RenderPkgNamespaces object.
104  */
DefaultValues(RenderPkgNamespaces * renderns)105 DefaultValues::DefaultValues(RenderPkgNamespaces *renderns)
106   : SBase(renderns)
107   , mBackgroundColor("#FFFFFFFF")
108   , mSpreadMethod(GRADIENT_SPREADMETHOD_PAD)
109   , mLinearGradient_x1(RelAbsVector(0.0, 0.0))
110   , mLinearGradient_y1(RelAbsVector(0.0, 0.0))
111   , mLinearGradient_z1(RelAbsVector(0.0, 0.0))
112   , mLinearGradient_x2(RelAbsVector(0.0, 100.0))
113   , mLinearGradient_y2(RelAbsVector(0.0, 100.0))
114   , mLinearGradient_z2(RelAbsVector(0.0, 100.0))
115   , mRadialGradient_cx(RelAbsVector(0.0, 50.0))
116   , mRadialGradient_cy(RelAbsVector(0.0, 50.0))
117   , mRadialGradient_cz(RelAbsVector(0.0, 50.0))
118   , mRadialGradient_r(RelAbsVector(0.0, 50.0))
119   , mRadialGradient_fx(RelAbsVector(0.0, 50.0))
120   , mRadialGradient_fy(RelAbsVector(0.0, 50.0))
121   , mRadialGradient_fz(RelAbsVector(0.0, 50.0))
122   , mFill("none")
123   , mFillRule(FILL_RULE_NONZERO)
124   , mDefault_z(RelAbsVector(0.0, 0.0))
125   , mStroke("none")
126   , mStrokeWidth(0)
127   , mIsSetStrokeWidth(false)
128   , mFontFamily("sans-serif")
129   , mFontSize(RelAbsVector(0.0, 0.0))
130   , mFontWeight(FONT_WEIGHT_NORMAL)
131   , mFontStyle(FONT_STYLE_NORMAL)
132   , mTextAnchor(H_TEXTANCHOR_START)
133   , mVTextAnchor(V_TEXTANCHOR_TOP)
134   , mStartHead("")
135   , mEndHead("")
136   , mEnableRotationalMapping(true)
137   , mIsSetEnableRotationalMapping(true)
138 {
139   setElementNamespace(renderns->getURI());
140   connectToChild();
141   loadPlugins(renderns);
142 }
143 
144 
145 /*
146  * Copy constructor for DefaultValues.
147  */
DefaultValues(const DefaultValues & orig)148 DefaultValues::DefaultValues(const DefaultValues& orig)
149   : SBase( orig )
150   , mBackgroundColor ( orig.mBackgroundColor )
151   , mSpreadMethod ( orig.mSpreadMethod )
152   , mLinearGradient_x1 ( orig.mLinearGradient_x1 )
153   , mLinearGradient_y1 ( orig.mLinearGradient_y1 )
154   , mLinearGradient_z1 ( orig.mLinearGradient_z1 )
155   , mLinearGradient_x2 ( orig.mLinearGradient_x2 )
156   , mLinearGradient_y2 ( orig.mLinearGradient_y2 )
157   , mLinearGradient_z2 ( orig.mLinearGradient_z2 )
158   , mRadialGradient_cx ( orig.mRadialGradient_cx )
159   , mRadialGradient_cy ( orig.mRadialGradient_cy )
160   , mRadialGradient_cz ( orig.mRadialGradient_cz )
161   , mRadialGradient_r ( orig.mRadialGradient_r )
162   , mRadialGradient_fx ( orig.mRadialGradient_fx )
163   , mRadialGradient_fy ( orig.mRadialGradient_fy )
164   , mRadialGradient_fz ( orig.mRadialGradient_fz )
165   , mFill ( orig.mFill )
166   , mFillRule ( orig.mFillRule )
167   , mDefault_z ( orig.mDefault_z )
168   , mStroke ( orig.mStroke )
169   , mStrokeWidth ( orig.mStrokeWidth )
170   , mIsSetStrokeWidth(orig.mIsSetStrokeWidth)
171   , mFontFamily(orig.mFontFamily)
172   , mFontSize ( orig.mFontSize )
173   , mFontWeight ( orig.mFontWeight )
174   , mFontStyle ( orig.mFontStyle )
175   , mTextAnchor ( orig.mTextAnchor )
176   , mVTextAnchor ( orig.mVTextAnchor )
177   , mStartHead ( orig.mStartHead )
178   , mEndHead ( orig.mEndHead )
179   , mEnableRotationalMapping ( orig.mEnableRotationalMapping )
180   , mIsSetEnableRotationalMapping ( orig.mIsSetEnableRotationalMapping )
181 {
182 }
183 
184 
185 /*
186  * Assignment operator for DefaultValues.
187  */
188 DefaultValues&
operator =(const DefaultValues & rhs)189 DefaultValues::operator=(const DefaultValues& rhs)
190 {
191   if (&rhs != this)
192   {
193     SBase::operator=(rhs);
194     mBackgroundColor = rhs.mBackgroundColor;
195     mSpreadMethod = rhs.mSpreadMethod;
196     mLinearGradient_x1 = rhs.mLinearGradient_x1;
197     mLinearGradient_y1 = rhs.mLinearGradient_y1;
198     mLinearGradient_z1 = rhs.mLinearGradient_z1;
199     mLinearGradient_x2 = rhs.mLinearGradient_x2;
200     mLinearGradient_y2 = rhs.mLinearGradient_y2;
201     mLinearGradient_z2 = rhs.mLinearGradient_z2;
202     mRadialGradient_cx = rhs.mRadialGradient_cx;
203     mRadialGradient_cy = rhs.mRadialGradient_cy;
204     mRadialGradient_cz = rhs.mRadialGradient_cz;
205     mRadialGradient_r = rhs.mRadialGradient_r;
206     mRadialGradient_fx = rhs.mRadialGradient_fx;
207     mRadialGradient_fy = rhs.mRadialGradient_fy;
208     mRadialGradient_fz = rhs.mRadialGradient_fz;
209     mFill = rhs.mFill;
210     mFillRule = rhs.mFillRule;
211     mDefault_z = rhs.mDefault_z;
212     mStroke = rhs.mStroke;
213     mStrokeWidth = rhs.mStrokeWidth;
214     mIsSetStrokeWidth = rhs.mIsSetStrokeWidth;
215     mFontFamily = rhs.mFontFamily;
216     mFontSize = rhs.mFontSize;
217     mFontWeight = rhs.mFontWeight;
218     mFontStyle = rhs.mFontStyle;
219     mTextAnchor = rhs.mTextAnchor;
220     mVTextAnchor = rhs.mVTextAnchor;
221     mStartHead = rhs.mStartHead;
222     mEndHead = rhs.mEndHead;
223     mEnableRotationalMapping = rhs.mEnableRotationalMapping;
224     mIsSetEnableRotationalMapping = rhs.mIsSetEnableRotationalMapping;
225   }
226 
227   return *this;
228 }
229 
230 
231 /*
232  * Creates and returns a deep copy of this DefaultValues object.
233  */
234 DefaultValues*
clone() const235 DefaultValues::clone() const
236 {
237   return new DefaultValues(*this);
238 }
239 
240 
241 /*
242  * Destructor for DefaultValues.
243  */
~DefaultValues()244 DefaultValues::~DefaultValues()
245 {
246 }
247 
248 
249 /*
250  * Returns the value of the "backgroundColor" attribute of this DefaultValues.
251  */
252 const std::string&
getBackgroundColor() const253 DefaultValues::getBackgroundColor() const
254 {
255   return mBackgroundColor;
256 }
257 
258 
259 /*
260  * Returns the value of the "spreadMethod" attribute of this DefaultValues.
261  */
262 GradientSpreadMethod_t
getSpreadMethod() const263 DefaultValues::getSpreadMethod() const
264 {
265   return (GradientSpreadMethod_t)(mSpreadMethod);
266 }
267 
268 
269 /*
270  * Returns the value of the "spreadMethod" attribute of this DefaultValues.
271  */
272 std::string
getSpreadMethodAsString() const273 DefaultValues::getSpreadMethodAsString() const
274 {
275   std::string code_str =
276     GradientSpreadMethod_toString((GradientSpreadMethod_t)(mSpreadMethod));
277   return code_str;
278 }
279 
280 
281 /*
282  * Returns the value of the "linearGradient_x1" attribute of this
283  * DefaultValues.
284  */
285 const RelAbsVector&
getLinearGradient_x1() const286 DefaultValues::getLinearGradient_x1() const
287 {
288   return mLinearGradient_x1;
289 }
290 
291 
292 /*
293  * Returns the value of the "linearGradient_y1" attribute of this
294  * DefaultValues.
295  */
296 const RelAbsVector&
getLinearGradient_y1() const297 DefaultValues::getLinearGradient_y1() const
298 {
299   return mLinearGradient_y1;
300 }
301 
302 
303 /*
304  * Returns the value of the "linearGradient_z1" attribute of this
305  * DefaultValues.
306  */
307 const RelAbsVector&
getLinearGradient_z1() const308 DefaultValues::getLinearGradient_z1() const
309 {
310   return mLinearGradient_z1;
311 }
312 
313 
314 /*
315  * Returns the value of the "linearGradient_x2" attribute of this
316  * DefaultValues.
317  */
318 const RelAbsVector&
getLinearGradient_x2() const319 DefaultValues::getLinearGradient_x2() const
320 {
321   return mLinearGradient_x2;
322 }
323 
324 
325 /*
326  * Returns the value of the "linearGradient_y2" attribute of this
327  * DefaultValues.
328  */
329 const RelAbsVector&
getLinearGradient_y2() const330 DefaultValues::getLinearGradient_y2() const
331 {
332   return mLinearGradient_y2;
333 }
334 
335 
336 /*
337  * Returns the value of the "linearGradient_z2" attribute of this
338  * DefaultValues.
339  */
340 const RelAbsVector&
getLinearGradient_z2() const341 DefaultValues::getLinearGradient_z2() const
342 {
343   return mLinearGradient_z2;
344 }
345 
346 
347 /*
348  * Returns the value of the "radialGradient_cx" attribute of this
349  * DefaultValues.
350  */
351 const RelAbsVector&
getRadialGradient_cx() const352 DefaultValues::getRadialGradient_cx() const
353 {
354   return mRadialGradient_cx;
355 }
356 
357 
358 /*
359  * Returns the value of the "radialGradient_cy" attribute of this
360  * DefaultValues.
361  */
362 const RelAbsVector&
getRadialGradient_cy() const363 DefaultValues::getRadialGradient_cy() const
364 {
365   return mRadialGradient_cy;
366 }
367 
368 
369 /*
370  * Returns the value of the "radialGradient_cz" attribute of this
371  * DefaultValues.
372  */
373 const RelAbsVector&
getRadialGradient_cz() const374 DefaultValues::getRadialGradient_cz() const
375 {
376   return mRadialGradient_cz;
377 }
378 
379 
380 /*
381  * Returns the value of the "radialGradient_r" attribute of this DefaultValues.
382  */
383 const RelAbsVector&
getRadialGradient_r() const384 DefaultValues::getRadialGradient_r() const
385 {
386   return mRadialGradient_r;
387 }
388 
389 
390 /*
391  * Returns the value of the "radialGradient_fx" attribute of this
392  * DefaultValues.
393  */
394 const RelAbsVector&
getRadialGradient_fx() const395 DefaultValues::getRadialGradient_fx() const
396 {
397   return mRadialGradient_fx;
398 }
399 
400 
401 /*
402  * Returns the value of the "radialGradient_fy" attribute of this
403  * DefaultValues.
404  */
405 const RelAbsVector&
getRadialGradient_fy() const406 DefaultValues::getRadialGradient_fy() const
407 {
408   return mRadialGradient_fy;
409 }
410 
411 
412 /*
413  * Returns the value of the "radialGradient_fz" attribute of this
414  * DefaultValues.
415  */
416 const RelAbsVector&
getRadialGradient_fz() const417 DefaultValues::getRadialGradient_fz() const
418 {
419   return mRadialGradient_fz;
420 }
421 
422 
423 /*
424  * Returns the value of the "fill" attribute of this DefaultValues.
425  */
426 const std::string&
getFill() const427 DefaultValues::getFill() const
428 {
429   return mFill;
430 }
431 
432 
433 /*
434  * Returns the value of the "fill-rule" attribute of this DefaultValues.
435  */
436 int
getFillRule() const437 DefaultValues::getFillRule() const
438 {
439   return mFillRule;
440 }
441 
442 
443 /*
444  * Returns the value of the "fill-rule" attribute of this DefaultValues.
445  */
446 std::string
getFillRuleAsString() const447 DefaultValues::getFillRuleAsString() const
448 {
449   std::string code_str = FillRule_toString((FillRule_t)(mFillRule));
450   return code_str;
451 }
452 
453 
454 /*
455  * Returns the value of the "default_z" attribute of this DefaultValues.
456  */
457 const RelAbsVector&
getDefault_z() const458 DefaultValues::getDefault_z() const
459 {
460   return mDefault_z;
461 }
462 
463 
464 /*
465  * Returns the value of the "stroke" attribute of this DefaultValues.
466  */
467 const std::string&
getStroke() const468 DefaultValues::getStroke() const
469 {
470   return mStroke;
471 }
472 
473 
474 /*
475  * Returns the value of the "stroke-width" attribute of this DefaultValues.
476  */
477 double
getStrokeWidth() const478 DefaultValues::getStrokeWidth() const
479 {
480   return mStrokeWidth;
481 }
482 
483 
484 /*
485  * Returns the value of the "font-family" attribute of this DefaultValues.
486  */
487 const std::string&
getFontFamily() const488 DefaultValues::getFontFamily() const
489 {
490   return mFontFamily;
491 }
492 
493 
494 /*
495  * Returns the value of the "font-size" attribute of this DefaultValues.
496  */
497 const RelAbsVector&
getFontSize() const498 DefaultValues::getFontSize() const
499 {
500   return mFontSize;
501 }
502 
503 
504 /*
505  * Returns the value of the "font-weight" attribute of this DefaultValues.
506  */
507 FontWeight_t
getFontWeight() const508 DefaultValues::getFontWeight() const
509 {
510   return (FontWeight_t)(mFontWeight);
511 }
512 
513 
514 /*
515  * Returns the value of the "font-weight" attribute of this DefaultValues.
516  */
517 std::string
getFontWeightAsString() const518 DefaultValues::getFontWeightAsString() const
519 {
520   std::string code_str = FontWeight_toString((FontWeight_t)(mFontWeight));
521   return code_str;
522 }
523 
524 
525 /*
526  * Returns the value of the "font-style" attribute of this DefaultValues.
527  */
528 FontStyle_t
getFontStyle() const529 DefaultValues::getFontStyle() const
530 {
531   return (FontStyle_t)(mFontStyle);
532 }
533 
534 
535 /*
536  * Returns the value of the "font-style" attribute of this DefaultValues.
537  */
538 std::string
getFontStyleAsString() const539 DefaultValues::getFontStyleAsString() const
540 {
541   std::string code_str = FontStyle_toString((FontStyle_t)(mFontStyle));
542   return code_str;
543 }
544 
545 
546 /*
547  * Returns the value of the "text-anchor" attribute of this DefaultValues.
548  */
549 HTextAnchor_t
getTextAnchor() const550 DefaultValues::getTextAnchor() const
551 {
552   return (HTextAnchor_t)(mTextAnchor);
553 }
554 
555 
556 /*
557  * Returns the value of the "text-anchor" attribute of this DefaultValues.
558  */
559 std::string
getTextAnchorAsString() const560 DefaultValues::getTextAnchorAsString() const
561 {
562   std::string code_str = HTextAnchor_toString((HTextAnchor_t)(mTextAnchor));
563   return code_str;
564 }
565 
566 
567 /*
568  * Returns the value of the "vtext-anchor" attribute of this DefaultValues.
569  */
570 VTextAnchor_t
getVTextAnchor() const571 DefaultValues::getVTextAnchor() const
572 {
573   return (VTextAnchor_t)(mVTextAnchor);
574 }
575 
576 
577 /*
578  * Returns the value of the "vtext-anchor" attribute of this DefaultValues.
579  */
580 std::string
getVTextAnchorAsString() const581 DefaultValues::getVTextAnchorAsString() const
582 {
583   std::string code_str = VTextAnchor_toString((VTextAnchor_t)(mVTextAnchor));
584   return code_str;
585 }
586 
587 
588 /*
589  * Returns the value of the "startHead" attribute of this DefaultValues.
590  */
591 const std::string&
getStartHead() const592 DefaultValues::getStartHead() const
593 {
594   return mStartHead;
595 }
596 
597 
598 /*
599  * Returns the value of the "endHead" attribute of this DefaultValues.
600  */
601 const std::string&
getEndHead() const602 DefaultValues::getEndHead() const
603 {
604   return mEndHead;
605 }
606 
607 
608 /*
609  * Returns the value of the "enableRotationalMapping" attribute of this
610  * DefaultValues.
611  */
612 bool
getEnableRotationalMapping() const613 DefaultValues::getEnableRotationalMapping() const
614 {
615   return mEnableRotationalMapping;
616 }
617 
618 
619 /*
620  * Predicate returning @c true if this DefaultValues's "backgroundColor"
621  * attribute is set.
622  */
623 bool
isSetBackgroundColor() const624 DefaultValues::isSetBackgroundColor() const
625 {
626   return (mBackgroundColor.empty() == false);
627 }
628 
629 
630 /*
631  * Predicate returning @c true if this DefaultValues's "spreadMethod" attribute
632  * is set.
633  */
634 bool
isSetSpreadMethod() const635 DefaultValues::isSetSpreadMethod() const
636 {
637   return (mSpreadMethod != GradientBase::INVALID);
638 }
639 
640 
641 /*
642  * Predicate returning @c true if this DefaultValues's "linearGradient_x1"
643  * attribute is set.
644  */
645 bool
isSetLinearGradient_x1() const646 DefaultValues::isSetLinearGradient_x1() const
647 {
648   return (mLinearGradient_x1.empty() == false);
649 }
650 
651 
652 /*
653  * Predicate returning @c true if this DefaultValues's "linearGradient_y1"
654  * attribute is set.
655  */
656 bool
isSetLinearGradient_y1() const657 DefaultValues::isSetLinearGradient_y1() const
658 {
659   return (mLinearGradient_y1.empty() == false);
660 }
661 
662 
663 /*
664  * Predicate returning @c true if this DefaultValues's "linearGradient_z1"
665  * attribute is set.
666  */
667 bool
isSetLinearGradient_z1() const668 DefaultValues::isSetLinearGradient_z1() const
669 {
670   return (mLinearGradient_z1.empty() == false);
671 }
672 
673 
674 /*
675  * Predicate returning @c true if this DefaultValues's "linearGradient_x2"
676  * attribute is set.
677  */
678 bool
isSetLinearGradient_x2() const679 DefaultValues::isSetLinearGradient_x2() const
680 {
681   return (mLinearGradient_x2.empty() == false);
682 }
683 
684 
685 /*
686  * Predicate returning @c true if this DefaultValues's "linearGradient_y2"
687  * attribute is set.
688  */
689 bool
isSetLinearGradient_y2() const690 DefaultValues::isSetLinearGradient_y2() const
691 {
692   return (mLinearGradient_y2.empty() == false);
693 }
694 
695 
696 /*
697  * Predicate returning @c true if this DefaultValues's "linearGradient_z2"
698  * attribute is set.
699  */
700 bool
isSetLinearGradient_z2() const701 DefaultValues::isSetLinearGradient_z2() const
702 {
703   return (mLinearGradient_z2.empty() == false);
704 }
705 
706 
707 /*
708  * Predicate returning @c true if this DefaultValues's "radialGradient_cx"
709  * attribute is set.
710  */
711 bool
isSetRadialGradient_cx() const712 DefaultValues::isSetRadialGradient_cx() const
713 {
714   return (mRadialGradient_cx.empty() == false);
715 }
716 
717 
718 /*
719  * Predicate returning @c true if this DefaultValues's "radialGradient_cy"
720  * attribute is set.
721  */
722 bool
isSetRadialGradient_cy() const723 DefaultValues::isSetRadialGradient_cy() const
724 {
725   return (mRadialGradient_cy.empty() == false);
726 }
727 
728 
729 /*
730  * Predicate returning @c true if this DefaultValues's "radialGradient_cz"
731  * attribute is set.
732  */
733 bool
isSetRadialGradient_cz() const734 DefaultValues::isSetRadialGradient_cz() const
735 {
736   return (mRadialGradient_cz.empty() == false);
737 }
738 
739 
740 /*
741  * Predicate returning @c true if this DefaultValues's "radialGradient_r"
742  * attribute is set.
743  */
744 bool
isSetRadialGradient_r() const745 DefaultValues::isSetRadialGradient_r() const
746 {
747   return (mRadialGradient_r.empty() == false);
748 }
749 
750 
751 /*
752  * Predicate returning @c true if this DefaultValues's "radialGradient_fx"
753  * attribute is set.
754  */
755 bool
isSetRadialGradient_fx() const756 DefaultValues::isSetRadialGradient_fx() const
757 {
758   return (mRadialGradient_fx.empty() == false);
759 }
760 
761 
762 /*
763  * Predicate returning @c true if this DefaultValues's "radialGradient_fy"
764  * attribute is set.
765  */
766 bool
isSetRadialGradient_fy() const767 DefaultValues::isSetRadialGradient_fy() const
768 {
769   return (mRadialGradient_fy.empty() == false);
770 }
771 
772 
773 /*
774  * Predicate returning @c true if this DefaultValues's "radialGradient_fz"
775  * attribute is set.
776  */
777 bool
isSetRadialGradient_fz() const778 DefaultValues::isSetRadialGradient_fz() const
779 {
780   return (mRadialGradient_fz.empty() == false);
781 }
782 
783 
784 /*
785  * Predicate returning @c true if this DefaultValues's "fill" attribute is set.
786  */
787 bool
isSetFill() const788 DefaultValues::isSetFill() const
789 {
790   return (mFill.empty() == false);
791 }
792 
793 
794 /*
795  * Predicate returning @c true if this DefaultValues's "fill-rule" attribute is
796  * set.
797  */
798 bool
isSetFillRule() const799 DefaultValues::isSetFillRule() const
800 {
801   return (mFillRule != GraphicalPrimitive2D::INVALID);
802 }
803 
804 
805 /*
806  * Predicate returning @c true if this DefaultValues's "default_z" attribute is
807  * set.
808  */
809 bool
isSetDefault_z() const810 DefaultValues::isSetDefault_z() const
811 {
812   return (mDefault_z.empty() == false);
813 }
814 
815 
816 /*
817  * Predicate returning @c true if this DefaultValues's "stroke" attribute is
818  * set.
819  */
820 bool
isSetStroke() const821 DefaultValues::isSetStroke() const
822 {
823   return (mStroke.empty() == false);
824 }
825 
826 
827 /*
828  * Predicate returning @c true if this DefaultValues's "stroke-width" attribute
829  * is set.
830  */
831 bool
isSetStrokeWidth() const832 DefaultValues::isSetStrokeWidth() const
833 {
834   return mIsSetStrokeWidth;
835 }
836 
837 
838 /*
839  * Predicate returning @c true if this DefaultValues's "font-family" attribute
840  * is set.
841  */
842 bool
isSetFontFamily() const843 DefaultValues::isSetFontFamily() const
844 {
845   return (mFontFamily.empty() == false);
846 }
847 
848 
849 /*
850  * Predicate returning @c true if this DefaultValues's "font-size" attribute is
851  * set.
852  */
853 bool
isSetFontSize() const854 DefaultValues::isSetFontSize() const
855 {
856   return (mFontSize.empty() == false);
857 }
858 
859 
860 /*
861  * Predicate returning @c true if this DefaultValues's "font-weight" attribute
862  * is set.
863  */
864 bool
isSetFontWeight() const865 DefaultValues::isSetFontWeight() const
866 {
867   return (mFontWeight != Text::WEIGHT_INVALID );
868 }
869 
870 
871 /*
872  * Predicate returning @c true if this DefaultValues's "font-style" attribute is
873  * set.
874  */
875 bool
isSetFontStyle() const876 DefaultValues::isSetFontStyle() const
877 {
878   return (mFontStyle != Text::STYLE_INVALID);
879 }
880 
881 
882 /*
883  * Predicate returning @c true if this DefaultValues's "text-anchor" attribute
884  * is set.
885  */
886 bool
isSetTextAnchor() const887 DefaultValues::isSetTextAnchor() const
888 {
889   return (mTextAnchor != Text::ANCHOR_INVALID);
890 }
891 
892 
893 /*
894  * Predicate returning @c true if this DefaultValues's "vtext-anchor" attribute
895  * is set.
896  */
897 bool
isSetVTextAnchor() const898 DefaultValues::isSetVTextAnchor() const
899 {
900   return (mVTextAnchor != Text::ANCHOR_INVALID);
901 }
902 
903 
904 /*
905  * Predicate returning @c true if this DefaultValues's "startHead" attribute is
906  * set.
907  */
908 bool
isSetStartHead() const909 DefaultValues::isSetStartHead() const
910 {
911   return (mStartHead.empty() == false);
912 }
913 
914 
915 /*
916  * Predicate returning @c true if this DefaultValues's "endHead" attribute is
917  * set.
918  */
919 bool
isSetEndHead() const920 DefaultValues::isSetEndHead() const
921 {
922   return (mEndHead.empty() == false);
923 }
924 
925 
926 /*
927  * Predicate returning @c true if this DefaultValues's
928  * "enableRotationalMapping" attribute is set.
929  */
930 bool
isSetEnableRotationalMapping() const931 DefaultValues::isSetEnableRotationalMapping() const
932 {
933   return mIsSetEnableRotationalMapping;
934 }
935 
936 
937 /*
938  * Sets the value of the "backgroundColor" attribute of this DefaultValues.
939  */
940 int
setBackgroundColor(const std::string & backgroundColor)941 DefaultValues::setBackgroundColor(const std::string& backgroundColor)
942 {
943   mBackgroundColor = backgroundColor;
944   return LIBSBML_OPERATION_SUCCESS;
945 }
946 
947 
948 /*
949  * Sets the value of the "spreadMethod" attribute of this DefaultValues.
950  */
951 int
setSpreadMethod(const GradientBase::SPREADMETHOD spreadMethod)952 DefaultValues::setSpreadMethod(const GradientBase::SPREADMETHOD spreadMethod)
953 {
954   mSpreadMethod = spreadMethod;
955   return LIBSBML_OPERATION_SUCCESS;
956 }
957 
958 
959 /*
960  * Sets the value of the "spreadMethod" attribute of this DefaultValues.
961  */
962 int
setSpreadMethod(const GradientSpreadMethod_t spreadMethod)963 DefaultValues::setSpreadMethod(const GradientSpreadMethod_t spreadMethod)
964 {
965   if (GradientSpreadMethod_isValid(spreadMethod) == 0)
966   {
967     mSpreadMethod = GRADIENT_SPREAD_METHOD_INVALID;
968     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
969   }
970   else
971   {
972     mSpreadMethod = spreadMethod;
973     return LIBSBML_OPERATION_SUCCESS;
974   }
975 }
976 
977 
978 /*
979  * Sets the value of the "spreadMethod" attribute of this DefaultValues.
980  */
981 int
setSpreadMethod(const std::string & spreadMethod)982 DefaultValues::setSpreadMethod(const std::string& spreadMethod)
983 {
984   mSpreadMethod = SpreadMethod_fromString(spreadMethod.c_str());
985   if (mSpreadMethod == GradientBase::INVALID)
986     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
987   return LIBSBML_OPERATION_SUCCESS;
988 }
989 
990 
991 /*
992  * Sets the value of the "linearGradient_x1" attribute of this DefaultValues.
993  */
994 int
setLinearGradient_x1(const RelAbsVector & linearGradient_x1)995 DefaultValues::setLinearGradient_x1(const RelAbsVector& linearGradient_x1)
996 {
997   mLinearGradient_x1 = linearGradient_x1;
998   return LIBSBML_OPERATION_SUCCESS;
999 }
1000 
1001 
1002 /*
1003  * Sets the value of the "linearGradient_y1" attribute of this DefaultValues.
1004  */
1005 int
setLinearGradient_y1(const RelAbsVector & linearGradient_y1)1006 DefaultValues::setLinearGradient_y1(const RelAbsVector& linearGradient_y1)
1007 {
1008   mLinearGradient_y1 = linearGradient_y1;
1009   return LIBSBML_OPERATION_SUCCESS;
1010 }
1011 
1012 
1013 /*
1014  * Sets the value of the "linearGradient_z1" attribute of this DefaultValues.
1015  */
1016 int
setLinearGradient_z1(const RelAbsVector & linearGradient_z1)1017 DefaultValues::setLinearGradient_z1(const RelAbsVector& linearGradient_z1)
1018 {
1019   mLinearGradient_z1 = linearGradient_z1;
1020   return LIBSBML_OPERATION_SUCCESS;
1021 }
1022 
1023 
1024 /*
1025  * Sets the value of the "linearGradient_x2" attribute of this DefaultValues.
1026  */
1027 int
setLinearGradient_x2(const RelAbsVector & linearGradient_x2)1028 DefaultValues::setLinearGradient_x2(const RelAbsVector& linearGradient_x2)
1029 {
1030   mLinearGradient_x2 = linearGradient_x2;
1031   return LIBSBML_OPERATION_SUCCESS;
1032 }
1033 
1034 
1035 /*
1036  * Sets the value of the "linearGradient_y2" attribute of this DefaultValues.
1037  */
1038 int
setLinearGradient_y2(const RelAbsVector & linearGradient_y2)1039 DefaultValues::setLinearGradient_y2(const RelAbsVector& linearGradient_y2)
1040 {
1041   mLinearGradient_y2 = linearGradient_y2;
1042   return LIBSBML_OPERATION_SUCCESS;
1043 }
1044 
1045 
1046 /*
1047  * Sets the value of the "linearGradient_z2" attribute of this DefaultValues.
1048  */
1049 int
setLinearGradient_z2(const RelAbsVector & linearGradient_z2)1050 DefaultValues::setLinearGradient_z2(const RelAbsVector& linearGradient_z2)
1051 {
1052   mLinearGradient_z2 = linearGradient_z2;
1053   return LIBSBML_OPERATION_SUCCESS;
1054 }
1055 
1056 
1057 /*
1058  * Sets the value of the "radialGradient_cx" attribute of this DefaultValues.
1059  */
1060 int
setRadialGradient_cx(const RelAbsVector & radialGradient_cx)1061 DefaultValues::setRadialGradient_cx(const RelAbsVector& radialGradient_cx)
1062 {
1063   mRadialGradient_cx = radialGradient_cx;
1064   return LIBSBML_OPERATION_SUCCESS;
1065 }
1066 
1067 
1068 /*
1069  * Sets the value of the "radialGradient_cy" attribute of this DefaultValues.
1070  */
1071 int
setRadialGradient_cy(const RelAbsVector & radialGradient_cy)1072 DefaultValues::setRadialGradient_cy(const RelAbsVector& radialGradient_cy)
1073 {
1074   mRadialGradient_cy = radialGradient_cy;
1075   return LIBSBML_OPERATION_SUCCESS;
1076 }
1077 
1078 
1079 /*
1080  * Sets the value of the "radialGradient_cz" attribute of this DefaultValues.
1081  */
1082 int
setRadialGradient_cz(const RelAbsVector & radialGradient_cz)1083 DefaultValues::setRadialGradient_cz(const RelAbsVector& radialGradient_cz)
1084 {
1085   mRadialGradient_cz = radialGradient_cz;
1086   return LIBSBML_OPERATION_SUCCESS;
1087 }
1088 
1089 
1090 /*
1091  * Sets the value of the "radialGradient_r" attribute of this DefaultValues.
1092  */
1093 int
setRadialGradient_r(const RelAbsVector & radialGradient_r)1094 DefaultValues::setRadialGradient_r(const RelAbsVector& radialGradient_r)
1095 {
1096   mRadialGradient_r = radialGradient_r;
1097   return LIBSBML_OPERATION_SUCCESS;
1098 }
1099 
1100 
1101 /*
1102  * Sets the value of the "radialGradient_fx" attribute of this DefaultValues.
1103  */
1104 int
setRadialGradient_fx(const RelAbsVector & radialGradient_fx)1105 DefaultValues::setRadialGradient_fx(const RelAbsVector& radialGradient_fx)
1106 {
1107   mRadialGradient_fx = radialGradient_fx;
1108   return LIBSBML_OPERATION_SUCCESS;
1109 }
1110 
1111 
1112 /*
1113  * Sets the value of the "radialGradient_fy" attribute of this DefaultValues.
1114  */
1115 int
setRadialGradient_fy(const RelAbsVector & radialGradient_fy)1116 DefaultValues::setRadialGradient_fy(const RelAbsVector& radialGradient_fy)
1117 {
1118   mRadialGradient_fy = radialGradient_fy;
1119   return LIBSBML_OPERATION_SUCCESS;
1120 }
1121 
1122 
1123 /*
1124  * Sets the value of the "radialGradient_fz" attribute of this DefaultValues.
1125  */
1126 int
setRadialGradient_fz(const RelAbsVector & radialGradient_fz)1127 DefaultValues::setRadialGradient_fz(const RelAbsVector& radialGradient_fz)
1128 {
1129   mRadialGradient_fz = radialGradient_fz;
1130   return LIBSBML_OPERATION_SUCCESS;
1131 }
1132 
1133 
1134 /*
1135  * Sets the value of the "fill" attribute of this DefaultValues.
1136  */
1137 int
setFill(const std::string & fill)1138 DefaultValues::setFill(const std::string& fill)
1139 {
1140   mFill = fill;
1141   return LIBSBML_OPERATION_SUCCESS;
1142 }
1143 
1144 
1145 /*
1146  * Sets the value of the "fill-rule" attribute of this DefaultValues.
1147  */
1148 int
setFillRule(const GraphicalPrimitive2D::FILL_RULE fillRule)1149 DefaultValues::setFillRule(const GraphicalPrimitive2D::FILL_RULE fillRule)
1150 {
1151     mFillRule = fillRule;
1152     return LIBSBML_OPERATION_SUCCESS;
1153 }
1154 
1155 
1156 /*
1157  * Sets the value of the "fill-rule" attribute of this DefaultValues.
1158  */
1159 int
setFillRule(const FillRule_t fillRule)1160 DefaultValues::setFillRule(const FillRule_t fillRule)
1161 {
1162   if (FillRule_isValid(fillRule) == 0)
1163   {
1164     mFillRule = FILL_RULE_INVALID;
1165     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1166   }
1167   else
1168   {
1169     mFillRule = fillRule;
1170     return LIBSBML_OPERATION_SUCCESS;
1171   }
1172 }
1173 
1174 
1175 /*
1176  * Sets the value of the "fill-rule" attribute of this DefaultValues.
1177  */
1178 int
setFillRule(const std::string & fillRule)1179 DefaultValues::setFillRule(const std::string& fillRule)
1180 {
1181   mFillRule = FillRule_fromString(fillRule.c_str());
1182   if (mFillRule == GraphicalPrimitive2D::INVALID)
1183     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1184 
1185   return LIBSBML_OPERATION_SUCCESS;
1186 }
1187 
1188 
1189 /*
1190  * Sets the value of the "default_z" attribute of this DefaultValues.
1191  */
1192 int
setDefault_z(const RelAbsVector & default_z)1193 DefaultValues::setDefault_z(const RelAbsVector& default_z)
1194 {
1195   mDefault_z = default_z;
1196   return LIBSBML_OPERATION_SUCCESS;
1197 }
1198 
1199 
1200 /*
1201  * Sets the value of the "stroke" attribute of this DefaultValues.
1202  */
1203 int
setStroke(const std::string & stroke)1204 DefaultValues::setStroke(const std::string& stroke)
1205 {
1206   mStroke = stroke;
1207   return LIBSBML_OPERATION_SUCCESS;
1208 }
1209 
1210 
1211 /*
1212  * Sets the value of the "stroke-width" attribute of this DefaultValues.
1213  */
1214 int
setStrokeWidth(double strokeWidth)1215 DefaultValues::setStrokeWidth(double strokeWidth)
1216 {
1217   mStrokeWidth = strokeWidth;
1218   mIsSetStrokeWidth = true;
1219   return LIBSBML_OPERATION_SUCCESS;
1220 }
1221 
1222 
1223 /*
1224  * Sets the value of the "font-family" attribute of this DefaultValues.
1225  */
1226 int
setFontFamily(const std::string & fontFamily)1227 DefaultValues::setFontFamily(const std::string& fontFamily)
1228 {
1229   mFontFamily = fontFamily;
1230   return LIBSBML_OPERATION_SUCCESS;
1231 }
1232 
1233 
1234 /*
1235  * Sets the value of the "font-size" attribute of this DefaultValues.
1236  */
1237 int
setFontSize(const RelAbsVector & fontSize)1238 DefaultValues::setFontSize(const RelAbsVector& fontSize)
1239 {
1240   mFontSize = fontSize;
1241   return LIBSBML_OPERATION_SUCCESS;
1242 }
1243 
1244 
1245 /*
1246  * Sets the value of the "font-weight" attribute of this DefaultValues.
1247  */
1248 int
setFontWeight(const Text::FONT_WEIGHT fontWeight)1249 DefaultValues::setFontWeight(const Text::FONT_WEIGHT fontWeight)
1250 {
1251   mFontWeight = fontWeight;
1252   return LIBSBML_OPERATION_SUCCESS;
1253 }
1254 
1255 
1256 /*
1257  * Sets the value of the "font-weight" attribute of this DefaultValues.
1258  */
1259 int
setFontWeight(const FontWeight_t fontWeight)1260 DefaultValues::setFontWeight(const FontWeight_t fontWeight)
1261 {
1262   if (FontWeight_isValid(fontWeight) == 0)
1263   {
1264     mFontWeight = FONT_WEIGHT_INVALID;
1265     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1266   }
1267   else
1268   {
1269     mFontWeight = fontWeight;
1270     return LIBSBML_OPERATION_SUCCESS;
1271   }
1272 }
1273 
1274 
1275 /*
1276  * Sets the value of the "font-weight" attribute of this DefaultValues.
1277  */
1278 int
setFontWeight(const std::string & fontWeight)1279 DefaultValues::setFontWeight(const std::string& fontWeight)
1280 {
1281   mFontWeight = FontWeight_fromString(fontWeight.c_str());
1282   if (mFontWeight == Text::WEIGHT_INVALID)
1283   {
1284     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1285   }
1286 
1287   return LIBSBML_OPERATION_SUCCESS;
1288 }
1289 
1290 
1291 /*
1292  * Sets the value of the "font-style" attribute of this DefaultValues.
1293  */
1294 int
setFontStyle(const Text::FONT_STYLE fontStyle)1295 DefaultValues::setFontStyle(const Text::FONT_STYLE fontStyle)
1296 {
1297     mFontStyle = fontStyle;
1298     return LIBSBML_OPERATION_SUCCESS;
1299 }
1300 
1301 
1302 /*
1303  * Sets the value of the "font-style" attribute of this DefaultValues.
1304  */
1305 int
setFontStyle(const FontStyle_t fontStyle)1306 DefaultValues::setFontStyle(const FontStyle_t fontStyle)
1307 {
1308   if (FontStyle_isValid(fontStyle) == 0)
1309   {
1310     mFontStyle = FONT_STYLE_INVALID;
1311     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1312   }
1313   else
1314   {
1315     mFontStyle = fontStyle;
1316     return LIBSBML_OPERATION_SUCCESS;
1317   }
1318 }
1319 
1320 /*
1321  * Sets the value of the "font-style" attribute of this DefaultValues.
1322  */
1323 int
setFontStyle(const std::string & fontStyle)1324 DefaultValues::setFontStyle(const std::string& fontStyle)
1325 {
1326   mFontStyle = FontStyle_fromString(fontStyle.c_str());
1327   if (mFontStyle == Text::STYLE_INVALID)
1328   {
1329     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1330   }
1331 
1332   return LIBSBML_OPERATION_SUCCESS;
1333 }
1334 
1335 
1336 /*
1337  * Sets the value of the "text-anchor" attribute of this DefaultValues.
1338  */
1339 int
setTextAnchor(const Text::TEXT_ANCHOR textAnchor)1340 DefaultValues::setTextAnchor(const Text::TEXT_ANCHOR textAnchor)
1341 {
1342   mTextAnchor = textAnchor;
1343   return LIBSBML_OPERATION_SUCCESS;
1344 }
1345 
1346 
1347 /*
1348  * Sets the value of the "text-anchor" attribute of this DefaultValues.
1349  */
1350 int
setTextAnchor(const HTextAnchor_t textAnchor)1351 DefaultValues::setTextAnchor(const HTextAnchor_t textAnchor)
1352 {
1353   if (HTextAnchor_isValid(textAnchor) == 0)
1354   {
1355     mTextAnchor = H_TEXTANCHOR_INVALID;
1356     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1357   }
1358   else
1359   {
1360     mTextAnchor = textAnchor;
1361     return LIBSBML_OPERATION_SUCCESS;
1362   }
1363 }
1364 
1365 
1366 /*
1367  * Sets the value of the "text-anchor" attribute of this DefaultValues.
1368  */
1369 int
setTextAnchor(const std::string & textAnchor)1370 DefaultValues::setTextAnchor(const std::string& textAnchor)
1371 {
1372   mTextAnchor = TextAnchor_fromString(textAnchor.c_str());
1373   if (mTextAnchor == Text::ANCHOR_INVALID)
1374     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1375 
1376   return LIBSBML_OPERATION_SUCCESS;
1377 }
1378 
1379 
1380 /*
1381  * Sets the value of the "vtext-anchor" attribute of this DefaultValues.
1382  */
1383 int
setVTextAnchor(const Text::TEXT_ANCHOR vtextAnchor)1384 DefaultValues::setVTextAnchor(const Text::TEXT_ANCHOR vtextAnchor)
1385 {
1386   mVTextAnchor = vtextAnchor;
1387   return LIBSBML_OPERATION_SUCCESS;
1388 }
1389 
1390 
1391 /*
1392  * Sets the value of the "vtext-anchor" attribute of this DefaultValues.
1393  */
1394 int
setVTextAnchor(const VTextAnchor_t vtextAnchor)1395 DefaultValues::setVTextAnchor(const VTextAnchor_t vtextAnchor)
1396 {
1397   if (VTextAnchor_isValid(vtextAnchor) == 0)
1398   {
1399     mVTextAnchor = V_TEXTANCHOR_INVALID;
1400     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1401   }
1402   else
1403   {
1404     mVTextAnchor = vtextAnchor;
1405     return LIBSBML_OPERATION_SUCCESS;
1406   }
1407 }
1408 
1409 
1410 /*
1411  * Sets the value of the "vtext-anchor" attribute of this DefaultValues.
1412  */
1413 int
setVTextAnchor(const std::string & vtextAnchor)1414 DefaultValues::setVTextAnchor(const std::string& vtextAnchor)
1415 {
1416   mVTextAnchor = TextAnchor_fromString(vtextAnchor.c_str());
1417   if (mVTextAnchor == Text::ANCHOR_INVALID)
1418     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1419 
1420   return LIBSBML_OPERATION_SUCCESS;
1421 }
1422 
1423 
1424 /*
1425  * Sets the value of the "startHead" attribute of this DefaultValues.
1426  */
1427 int
setStartHead(const std::string & startHead)1428 DefaultValues::setStartHead(const std::string& startHead)
1429 {
1430   if (!(SyntaxChecker::isValidInternalSId(startHead)))
1431   {
1432     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1433   }
1434   else
1435   {
1436     mStartHead = startHead;
1437     return LIBSBML_OPERATION_SUCCESS;
1438   }
1439 }
1440 
1441 
1442 /*
1443  * Sets the value of the "endHead" attribute of this DefaultValues.
1444  */
1445 int
setEndHead(const std::string & endHead)1446 DefaultValues::setEndHead(const std::string& endHead)
1447 {
1448   if (!(SyntaxChecker::isValidInternalSId(endHead)))
1449   {
1450     return LIBSBML_INVALID_ATTRIBUTE_VALUE;
1451   }
1452   else
1453   {
1454     mEndHead = endHead;
1455     return LIBSBML_OPERATION_SUCCESS;
1456   }
1457 }
1458 
1459 
1460 /*
1461  * Sets the value of the "enableRotationalMapping" attribute of this
1462  * DefaultValues.
1463  */
1464 int
setEnableRotationalMapping(bool enableRotationalMapping)1465 DefaultValues::setEnableRotationalMapping(bool enableRotationalMapping)
1466 {
1467   mEnableRotationalMapping = enableRotationalMapping;
1468   mIsSetEnableRotationalMapping = true;
1469   return LIBSBML_OPERATION_SUCCESS;
1470 }
1471 
1472 
1473 /*
1474  * Unsets the value of the "backgroundColor" attribute of this DefaultValues.
1475  */
1476 int
unsetBackgroundColor()1477 DefaultValues::unsetBackgroundColor()
1478 {
1479   mBackgroundColor.erase();
1480 
1481   if (mBackgroundColor.empty() == true)
1482   {
1483     return LIBSBML_OPERATION_SUCCESS;
1484   }
1485   else
1486   {
1487     return LIBSBML_OPERATION_FAILED;
1488   }
1489 }
1490 
1491 
1492 /*
1493  * Unsets the value of the "spreadMethod" attribute of this DefaultValues.
1494  */
1495 int
unsetSpreadMethod()1496 DefaultValues::unsetSpreadMethod()
1497 {
1498   mSpreadMethod = GradientBase::INVALID;
1499   return LIBSBML_OPERATION_SUCCESS;
1500 }
1501 
1502 
1503 /*
1504  * Unsets the value of the "linearGradient_x1" attribute of this DefaultValues.
1505  */
1506 int
unsetLinearGradient_x1()1507 DefaultValues::unsetLinearGradient_x1()
1508 {
1509   mLinearGradient_x1.erase();
1510 
1511   if (mLinearGradient_x1.empty() == true)
1512   {
1513     return LIBSBML_OPERATION_SUCCESS;
1514   }
1515   else
1516   {
1517     return LIBSBML_OPERATION_FAILED;
1518   }
1519 }
1520 
1521 
1522 /*
1523  * Unsets the value of the "linearGradient_y1" attribute of this DefaultValues.
1524  */
1525 int
unsetLinearGradient_y1()1526 DefaultValues::unsetLinearGradient_y1()
1527 {
1528   mLinearGradient_y1.erase();
1529 
1530   if (mLinearGradient_y1.empty() == true)
1531   {
1532     return LIBSBML_OPERATION_SUCCESS;
1533   }
1534   else
1535   {
1536     return LIBSBML_OPERATION_FAILED;
1537   }
1538 }
1539 
1540 
1541 /*
1542  * Unsets the value of the "linearGradient_z1" attribute of this DefaultValues.
1543  */
1544 int
unsetLinearGradient_z1()1545 DefaultValues::unsetLinearGradient_z1()
1546 {
1547   mLinearGradient_z1.erase();
1548 
1549   if (mLinearGradient_z1.empty() == true)
1550   {
1551     return LIBSBML_OPERATION_SUCCESS;
1552   }
1553   else
1554   {
1555     return LIBSBML_OPERATION_FAILED;
1556   }
1557 }
1558 
1559 
1560 /*
1561  * Unsets the value of the "linearGradient_x2" attribute of this DefaultValues.
1562  */
1563 int
unsetLinearGradient_x2()1564 DefaultValues::unsetLinearGradient_x2()
1565 {
1566   mLinearGradient_x2.erase();
1567 
1568   if (mLinearGradient_x2.empty() == true)
1569   {
1570     return LIBSBML_OPERATION_SUCCESS;
1571   }
1572   else
1573   {
1574     return LIBSBML_OPERATION_FAILED;
1575   }
1576 }
1577 
1578 
1579 /*
1580  * Unsets the value of the "linearGradient_y2" attribute of this DefaultValues.
1581  */
1582 int
unsetLinearGradient_y2()1583 DefaultValues::unsetLinearGradient_y2()
1584 {
1585   mLinearGradient_y2.erase();
1586 
1587   if (mLinearGradient_y2.empty() == true)
1588   {
1589     return LIBSBML_OPERATION_SUCCESS;
1590   }
1591   else
1592   {
1593     return LIBSBML_OPERATION_FAILED;
1594   }
1595 }
1596 
1597 
1598 /*
1599  * Unsets the value of the "linearGradient_z2" attribute of this DefaultValues.
1600  */
1601 int
unsetLinearGradient_z2()1602 DefaultValues::unsetLinearGradient_z2()
1603 {
1604   mLinearGradient_z2.erase();
1605 
1606   if (mLinearGradient_z2.empty() == true)
1607   {
1608     return LIBSBML_OPERATION_SUCCESS;
1609   }
1610   else
1611   {
1612     return LIBSBML_OPERATION_FAILED;
1613   }
1614 }
1615 
1616 
1617 /*
1618  * Unsets the value of the "radialGradient_cx" attribute of this DefaultValues.
1619  */
1620 int
unsetRadialGradient_cx()1621 DefaultValues::unsetRadialGradient_cx()
1622 {
1623   mRadialGradient_cx.erase();
1624 
1625   if (mRadialGradient_cx.empty() == true)
1626   {
1627     return LIBSBML_OPERATION_SUCCESS;
1628   }
1629   else
1630   {
1631     return LIBSBML_OPERATION_FAILED;
1632   }
1633 }
1634 
1635 
1636 /*
1637  * Unsets the value of the "radialGradient_cy" attribute of this DefaultValues.
1638  */
1639 int
unsetRadialGradient_cy()1640 DefaultValues::unsetRadialGradient_cy()
1641 {
1642   mRadialGradient_cy.erase();
1643 
1644   if (mRadialGradient_cy.empty() == true)
1645   {
1646     return LIBSBML_OPERATION_SUCCESS;
1647   }
1648   else
1649   {
1650     return LIBSBML_OPERATION_FAILED;
1651   }
1652 }
1653 
1654 
1655 /*
1656  * Unsets the value of the "radialGradient_cz" attribute of this DefaultValues.
1657  */
1658 int
unsetRadialGradient_cz()1659 DefaultValues::unsetRadialGradient_cz()
1660 {
1661   mRadialGradient_cz.erase();
1662 
1663   if (mRadialGradient_cz.empty() == true)
1664   {
1665     return LIBSBML_OPERATION_SUCCESS;
1666   }
1667   else
1668   {
1669     return LIBSBML_OPERATION_FAILED;
1670   }
1671 }
1672 
1673 
1674 /*
1675  * Unsets the value of the "radialGradient_r" attribute of this DefaultValues.
1676  */
1677 int
unsetRadialGradient_r()1678 DefaultValues::unsetRadialGradient_r()
1679 {
1680   mRadialGradient_r.erase();
1681 
1682   if (mRadialGradient_r.empty() == true)
1683   {
1684     return LIBSBML_OPERATION_SUCCESS;
1685   }
1686   else
1687   {
1688     return LIBSBML_OPERATION_FAILED;
1689   }
1690 }
1691 
1692 
1693 /*
1694  * Unsets the value of the "radialGradient_fx" attribute of this DefaultValues.
1695  */
1696 int
unsetRadialGradient_fx()1697 DefaultValues::unsetRadialGradient_fx()
1698 {
1699   mRadialGradient_fx.erase();
1700 
1701   if (mRadialGradient_fx.empty() == true)
1702   {
1703     return LIBSBML_OPERATION_SUCCESS;
1704   }
1705   else
1706   {
1707     return LIBSBML_OPERATION_FAILED;
1708   }
1709 }
1710 
1711 
1712 /*
1713  * Unsets the value of the "radialGradient_fy" attribute of this DefaultValues.
1714  */
1715 int
unsetRadialGradient_fy()1716 DefaultValues::unsetRadialGradient_fy()
1717 {
1718   mRadialGradient_fy.erase();
1719 
1720   if (mRadialGradient_fy.empty() == true)
1721   {
1722     return LIBSBML_OPERATION_SUCCESS;
1723   }
1724   else
1725   {
1726     return LIBSBML_OPERATION_FAILED;
1727   }
1728 }
1729 
1730 
1731 /*
1732  * Unsets the value of the "radialGradient_fz" attribute of this DefaultValues.
1733  */
1734 int
unsetRadialGradient_fz()1735 DefaultValues::unsetRadialGradient_fz()
1736 {
1737   mRadialGradient_fz.erase();
1738 
1739   if (mRadialGradient_fz.empty() == true)
1740   {
1741     return LIBSBML_OPERATION_SUCCESS;
1742   }
1743   else
1744   {
1745     return LIBSBML_OPERATION_FAILED;
1746   }
1747 }
1748 
1749 
1750 /*
1751  * Unsets the value of the "fill" attribute of this DefaultValues.
1752  */
1753 int
unsetFill()1754 DefaultValues::unsetFill()
1755 {
1756   mFill.erase();
1757 
1758   if (mFill.empty() == true)
1759   {
1760     return LIBSBML_OPERATION_SUCCESS;
1761   }
1762   else
1763   {
1764     return LIBSBML_OPERATION_FAILED;
1765   }
1766 }
1767 
1768 
1769 /*
1770  * Unsets the value of the "fill-rule" attribute of this DefaultValues.
1771  */
1772 int
unsetFillRule()1773 DefaultValues::unsetFillRule()
1774 {
1775   mFillRule = GraphicalPrimitive2D::INVALID;
1776   return LIBSBML_OPERATION_SUCCESS;
1777 }
1778 
1779 
1780 /*
1781  * Unsets the value of the "default_z" attribute of this DefaultValues.
1782  */
1783 int
unsetDefault_z()1784 DefaultValues::unsetDefault_z()
1785 {
1786   mDefault_z.erase();
1787 
1788   if (mDefault_z.empty() == true)
1789   {
1790     return LIBSBML_OPERATION_SUCCESS;
1791   }
1792   else
1793   {
1794     return LIBSBML_OPERATION_FAILED;
1795   }
1796 }
1797 
1798 
1799 /*
1800  * Unsets the value of the "stroke" attribute of this DefaultValues.
1801  */
1802 int
unsetStroke()1803 DefaultValues::unsetStroke()
1804 {
1805   mStroke.erase();
1806 
1807   if (mStroke.empty() == true)
1808   {
1809     return LIBSBML_OPERATION_SUCCESS;
1810   }
1811   else
1812   {
1813     return LIBSBML_OPERATION_FAILED;
1814   }
1815 }
1816 
1817 
1818 /*
1819  * Unsets the value of the "stroke-width" attribute of this DefaultValues.
1820  */
1821 int
unsetStrokeWidth()1822 DefaultValues::unsetStrokeWidth()
1823 {
1824   mStrokeWidth = util_NaN();
1825   mIsSetStrokeWidth = false;
1826 
1827   if (isSetStrokeWidth() == false)
1828   {
1829     return LIBSBML_OPERATION_SUCCESS;
1830   }
1831   else
1832   {
1833     return LIBSBML_OPERATION_FAILED;
1834   }
1835 }
1836 
1837 
1838 /*
1839  * Unsets the value of the "font-family" attribute of this DefaultValues.
1840  */
1841 int
unsetFontFamily()1842 DefaultValues::unsetFontFamily()
1843 {
1844   mFontFamily.erase();
1845 
1846   if (mFontFamily.empty() == true)
1847   {
1848     return LIBSBML_OPERATION_SUCCESS;
1849   }
1850   else
1851   {
1852     return LIBSBML_OPERATION_FAILED;
1853   }
1854 }
1855 
1856 
1857 /*
1858  * Unsets the value of the "font-size" attribute of this DefaultValues.
1859  */
1860 int
unsetFontSize()1861 DefaultValues::unsetFontSize()
1862 {
1863   mFontSize.erase();
1864 
1865   if (mFontSize.empty() == true)
1866   {
1867     return LIBSBML_OPERATION_SUCCESS;
1868   }
1869   else
1870   {
1871     return LIBSBML_OPERATION_FAILED;
1872   }
1873 }
1874 
1875 
1876 /*
1877  * Unsets the value of the "font-weight" attribute of this DefaultValues.
1878  */
1879 int
unsetFontWeight()1880 DefaultValues::unsetFontWeight()
1881 {
1882   mFontWeight = Text::WEIGHT_INVALID;
1883   return LIBSBML_OPERATION_SUCCESS;
1884 }
1885 
1886 
1887 /*
1888  * Unsets the value of the "font-style" attribute of this DefaultValues.
1889  */
1890 int
unsetFontStyle()1891 DefaultValues::unsetFontStyle()
1892 {
1893   mFontStyle = Text::STYLE_INVALID;
1894   return LIBSBML_OPERATION_SUCCESS;
1895 }
1896 
1897 
1898 /*
1899  * Unsets the value of the "text-anchor" attribute of this DefaultValues.
1900  */
1901 int
unsetTextAnchor()1902 DefaultValues::unsetTextAnchor()
1903 {
1904   mTextAnchor = Text::ANCHOR_INVALID;
1905   return LIBSBML_OPERATION_SUCCESS;
1906 }
1907 
1908 
1909 /*
1910  * Unsets the value of the "vtext-anchor" attribute of this DefaultValues.
1911  */
1912 int
unsetVTextAnchor()1913 DefaultValues::unsetVTextAnchor()
1914 {
1915   mVTextAnchor = Text::ANCHOR_INVALID;
1916   return LIBSBML_OPERATION_SUCCESS;
1917 }
1918 
1919 
1920 /*
1921  * Unsets the value of the "startHead" attribute of this DefaultValues.
1922  */
1923 int
unsetStartHead()1924 DefaultValues::unsetStartHead()
1925 {
1926   mStartHead.erase();
1927 
1928   if (mStartHead.empty() == true)
1929   {
1930     return LIBSBML_OPERATION_SUCCESS;
1931   }
1932   else
1933   {
1934     return LIBSBML_OPERATION_FAILED;
1935   }
1936 }
1937 
1938 
1939 /*
1940  * Unsets the value of the "endHead" attribute of this DefaultValues.
1941  */
1942 int
unsetEndHead()1943 DefaultValues::unsetEndHead()
1944 {
1945   mEndHead.erase();
1946 
1947   if (mEndHead.empty() == true)
1948   {
1949     return LIBSBML_OPERATION_SUCCESS;
1950   }
1951   else
1952   {
1953     return LIBSBML_OPERATION_FAILED;
1954   }
1955 }
1956 
1957 
1958 /*
1959  * Unsets the value of the "enableRotationalMapping" attribute of this
1960  * DefaultValues.
1961  */
1962 int
unsetEnableRotationalMapping()1963 DefaultValues::unsetEnableRotationalMapping()
1964 {
1965   mEnableRotationalMapping = false;
1966   mIsSetEnableRotationalMapping = false;
1967 
1968   if (isSetEnableRotationalMapping() == false)
1969   {
1970     return LIBSBML_OPERATION_SUCCESS;
1971   }
1972   else
1973   {
1974     return LIBSBML_OPERATION_FAILED;
1975   }
1976 }
1977 
1978 
1979 /*
1980  * @copydoc doc_renamesidref_common
1981  */
1982 void
renameSIdRefs(const std::string & oldid,const std::string & newid)1983 DefaultValues::renameSIdRefs(const std::string& oldid,
1984                              const std::string& newid)
1985 {
1986   SBase::renameSIdRefs(oldid, newid);
1987   if (isSetStartHead() && mStartHead == oldid)
1988   {
1989     setStartHead(newid);
1990   }
1991 
1992   if (isSetEndHead() && mEndHead == oldid)
1993   {
1994     setEndHead(newid);
1995   }
1996 }
1997 
1998 
1999 /*
2000  * Returns the XML element name of this DefaultValues object.
2001  */
2002 const std::string&
getElementName() const2003 DefaultValues::getElementName() const
2004 {
2005   static const string name = "defaultValues";
2006   return name;
2007 }
2008 
2009 
2010 /*
2011  * Returns the libSBML type code for this DefaultValues object.
2012  */
2013 int
getTypeCode() const2014 DefaultValues::getTypeCode() const
2015 {
2016   return SBML_RENDER_DEFAULTS;
2017 }
2018 
2019 
2020 /*
2021  * Predicate returning @c true if all the required attributes for this
2022  * DefaultValues object have been set.
2023  */
2024 bool
hasRequiredAttributes() const2025 DefaultValues::hasRequiredAttributes() const
2026 {
2027   bool allPresent = true;
2028 
2029   return allPresent;
2030 }
2031 
2032 
2033 
2034 /** @cond doxygenLibsbmlInternal */
2035 
2036 /*
2037  * Write any contained elements
2038  */
2039 void
writeElements(XMLOutputStream & stream) const2040 DefaultValues::writeElements(XMLOutputStream& stream) const
2041 {
2042   SBase::writeElements(stream);
2043 
2044   SBase::writeExtensionElements(stream);
2045 }
2046 
2047 /** @endcond */
2048 
2049 
2050 
2051 /** @cond doxygenLibsbmlInternal */
2052 
2053 /*
2054  * Accepts the given SBMLVisitor
2055  */
2056 bool
accept(SBMLVisitor & v) const2057 DefaultValues::accept(SBMLVisitor& v) const
2058 {
2059   return v.visit(*this);
2060 }
2061 
2062 /** @endcond */
2063 
2064 
2065 
2066 /** @cond doxygenLibsbmlInternal */
2067 
2068 /*
2069  * Sets the parent SBMLDocument
2070  */
2071 void
setSBMLDocument(SBMLDocument * d)2072 DefaultValues::setSBMLDocument(SBMLDocument* d)
2073 {
2074   SBase::setSBMLDocument(d);
2075 }
2076 
2077 /** @endcond */
2078 
2079 
2080 
2081 /** @cond doxygenLibsbmlInternal */
2082 
2083 /*
2084  * Enables/disables the given package with this element
2085  */
2086 void
enablePackageInternal(const std::string & pkgURI,const std::string & pkgPrefix,bool flag)2087 DefaultValues::enablePackageInternal(const std::string& pkgURI,
2088                                      const std::string& pkgPrefix,
2089                                      bool flag)
2090 {
2091   SBase::enablePackageInternal(pkgURI, pkgPrefix, flag);
2092 }
2093 
2094 /** @endcond */
2095 
2096 
2097 
2098 /** @cond doxygenLibsbmlInternal */
2099 
2100 /*
2101  * Returns the value of the "attributeName" attribute of this DefaultValues.
2102  */
2103 int
getAttribute(const std::string & attributeName,bool & value) const2104 DefaultValues::getAttribute(const std::string& attributeName,
2105                             bool& value) const
2106 {
2107   int return_value = SBase::getAttribute(attributeName, value);
2108 
2109   if (return_value == LIBSBML_OPERATION_SUCCESS)
2110   {
2111     return return_value;
2112   }
2113 
2114   if (attributeName == "enableRotationalMapping")
2115   {
2116     value = getEnableRotationalMapping();
2117     return_value = LIBSBML_OPERATION_SUCCESS;
2118   }
2119 
2120   return return_value;
2121 }
2122 
2123 /** @endcond */
2124 
2125 
2126 
2127 /** @cond doxygenLibsbmlInternal */
2128 
2129 /*
2130  * Returns the value of the "attributeName" attribute of this DefaultValues.
2131  */
2132 int
getAttribute(const std::string & attributeName,int & value) const2133 DefaultValues::getAttribute(const std::string& attributeName,
2134                             int& value) const
2135 {
2136   int return_value = SBase::getAttribute(attributeName, value);
2137 
2138   return return_value;
2139 }
2140 
2141 /** @endcond */
2142 
2143 
2144 
2145 /** @cond doxygenLibsbmlInternal */
2146 
2147 /*
2148  * Returns the value of the "attributeName" attribute of this DefaultValues.
2149  */
2150 int
getAttribute(const std::string & attributeName,double & value) const2151 DefaultValues::getAttribute(const std::string& attributeName,
2152                             double& value) const
2153 {
2154   int return_value = SBase::getAttribute(attributeName, value);
2155 
2156   if (attributeName == "stroke-width")
2157   {
2158     value = getStrokeWidth();
2159     return_value = LIBSBML_OPERATION_SUCCESS;
2160   }
2161 
2162   return return_value;
2163 }
2164 
2165 /** @endcond */
2166 
2167 
2168 
2169 /** @cond doxygenLibsbmlInternal */
2170 
2171 /*
2172  * Returns the value of the "attributeName" attribute of this DefaultValues.
2173  */
2174 int
getAttribute(const std::string & attributeName,unsigned int & value) const2175 DefaultValues::getAttribute(const std::string& attributeName,
2176                             unsigned int& value) const
2177 {
2178   int return_value = SBase::getAttribute(attributeName, value);
2179 
2180   return return_value;
2181 }
2182 
2183 /** @endcond */
2184 
2185 
2186 
2187 /** @cond doxygenLibsbmlInternal */
2188 
2189 /*
2190  * Returns the value of the "attributeName" attribute of this DefaultValues.
2191  */
2192 int
getAttribute(const std::string & attributeName,std::string & value) const2193 DefaultValues::getAttribute(const std::string& attributeName,
2194                             std::string& value) const
2195 {
2196   int return_value = SBase::getAttribute(attributeName, value);
2197 
2198   if (return_value == LIBSBML_OPERATION_SUCCESS)
2199   {
2200     return return_value;
2201   }
2202 
2203   if (attributeName == "backgroundColor")
2204   {
2205     value = getBackgroundColor();
2206     return_value = LIBSBML_OPERATION_SUCCESS;
2207   }
2208   else if (attributeName == "spreadMethod")
2209   {
2210     value = getSpreadMethodAsString();
2211     return_value = LIBSBML_OPERATION_SUCCESS;
2212   }
2213   else if (attributeName == "linearGradient_x1")
2214   {
2215     value = getLinearGradient_x1().toString();
2216     return_value = LIBSBML_OPERATION_SUCCESS;
2217   }
2218   else if (attributeName == "linearGradient_y1")
2219   {
2220     value = getLinearGradient_y1().toString();
2221     return_value = LIBSBML_OPERATION_SUCCESS;
2222   }
2223   else if (attributeName == "linearGradient_z1")
2224   {
2225     value = getLinearGradient_z1().toString();
2226     return_value = LIBSBML_OPERATION_SUCCESS;
2227   }
2228   else if (attributeName == "linearGradient_x2")
2229   {
2230     value = getLinearGradient_x2().toString();
2231     return_value = LIBSBML_OPERATION_SUCCESS;
2232   }
2233   else if (attributeName == "linearGradient_y2")
2234   {
2235     value = getLinearGradient_y2().toString();
2236     return_value = LIBSBML_OPERATION_SUCCESS;
2237   }
2238   else if (attributeName == "linearGradient_z2")
2239   {
2240     value = getLinearGradient_z2().toString();
2241     return_value = LIBSBML_OPERATION_SUCCESS;
2242   }
2243   else if (attributeName == "radialGradient_cx")
2244   {
2245     value = getRadialGradient_cx().toString();
2246     return_value = LIBSBML_OPERATION_SUCCESS;
2247   }
2248   else if (attributeName == "radialGradient_cy")
2249   {
2250     value = getRadialGradient_cy().toString();
2251     return_value = LIBSBML_OPERATION_SUCCESS;
2252   }
2253   else if (attributeName == "radialGradient_cz")
2254   {
2255     value = getRadialGradient_cz().toString();
2256     return_value = LIBSBML_OPERATION_SUCCESS;
2257   }
2258   else if (attributeName == "radialGradient_r")
2259   {
2260     value = getRadialGradient_r().toString();
2261     return_value = LIBSBML_OPERATION_SUCCESS;
2262   }
2263   else if (attributeName == "radialGradient_fx")
2264   {
2265     value = getRadialGradient_fx().toString();
2266     return_value = LIBSBML_OPERATION_SUCCESS;
2267   }
2268   else if (attributeName == "radialGradient_fy")
2269   {
2270     value = getRadialGradient_fy().toString();
2271     return_value = LIBSBML_OPERATION_SUCCESS;
2272   }
2273   else if (attributeName == "radialGradient_fz")
2274   {
2275     value = getRadialGradient_fz().toString();
2276     return_value = LIBSBML_OPERATION_SUCCESS;
2277   }
2278   else if (attributeName == "fill")
2279   {
2280     value = getFill();
2281     return_value = LIBSBML_OPERATION_SUCCESS;
2282   }
2283   else if (attributeName == "fill-rule")
2284   {
2285     value = getFillRuleAsString();
2286     return_value = LIBSBML_OPERATION_SUCCESS;
2287   }
2288   else if (attributeName == "default_z")
2289   {
2290     value = getDefault_z().toString();
2291     return_value = LIBSBML_OPERATION_SUCCESS;
2292   }
2293   else if (attributeName == "stroke")
2294   {
2295     value = getStroke();
2296     return_value = LIBSBML_OPERATION_SUCCESS;
2297   }
2298   else if (attributeName == "font-family")
2299   {
2300     value = getFontFamily();
2301     return_value = LIBSBML_OPERATION_SUCCESS;
2302   }
2303   else if (attributeName == "font-size")
2304   {
2305     value = getFontSize().toString();
2306     return_value = LIBSBML_OPERATION_SUCCESS;
2307   }
2308   else if (attributeName == "font-weight")
2309   {
2310     value = getFontWeightAsString();
2311     return_value = LIBSBML_OPERATION_SUCCESS;
2312   }
2313   else if (attributeName == "font-style")
2314   {
2315     value = getFontStyleAsString();
2316     return_value = LIBSBML_OPERATION_SUCCESS;
2317   }
2318   else if (attributeName == "text-anchor")
2319   {
2320     value = getTextAnchorAsString();
2321     return_value = LIBSBML_OPERATION_SUCCESS;
2322   }
2323   else if (attributeName == "vtext-anchor")
2324   {
2325     value = getVTextAnchorAsString();
2326     return_value = LIBSBML_OPERATION_SUCCESS;
2327   }
2328   else if (attributeName == "startHead")
2329   {
2330     value = getStartHead();
2331     return_value = LIBSBML_OPERATION_SUCCESS;
2332   }
2333   else if (attributeName == "endHead")
2334   {
2335     value = getEndHead();
2336     return_value = LIBSBML_OPERATION_SUCCESS;
2337   }
2338 
2339   return return_value;
2340 }
2341 
2342 /** @endcond */
2343 
2344 
2345 
2346 /** @cond doxygenLibsbmlInternal */
2347 
2348 /*
2349  * Predicate returning @c true if this DefaultValues's attribute
2350  * "attributeName" is set.
2351  */
2352 bool
isSetAttribute(const std::string & attributeName) const2353 DefaultValues::isSetAttribute(const std::string& attributeName) const
2354 {
2355   bool value = SBase::isSetAttribute(attributeName);
2356 
2357   if (attributeName == "backgroundColor")
2358   {
2359     value = isSetBackgroundColor();
2360   }
2361   else if (attributeName == "spreadMethod")
2362   {
2363     value = isSetSpreadMethod();
2364   }
2365   else if (attributeName == "linearGradient_x1")
2366   {
2367     value = isSetLinearGradient_x1();
2368   }
2369   else if (attributeName == "linearGradient_y1")
2370   {
2371     value = isSetLinearGradient_y1();
2372   }
2373   else if (attributeName == "linearGradient_z1")
2374   {
2375     value = isSetLinearGradient_z1();
2376   }
2377   else if (attributeName == "linearGradient_x2")
2378   {
2379     value = isSetLinearGradient_x2();
2380   }
2381   else if (attributeName == "linearGradient_y2")
2382   {
2383     value = isSetLinearGradient_y2();
2384   }
2385   else if (attributeName == "linearGradient_z2")
2386   {
2387     value = isSetLinearGradient_z2();
2388   }
2389   else if (attributeName == "radialGradient_cx")
2390   {
2391     value = isSetRadialGradient_cx();
2392   }
2393   else if (attributeName == "radialGradient_cy")
2394   {
2395     value = isSetRadialGradient_cy();
2396   }
2397   else if (attributeName == "radialGradient_cz")
2398   {
2399     value = isSetRadialGradient_cz();
2400   }
2401   else if (attributeName == "radialGradient_r")
2402   {
2403     value = isSetRadialGradient_r();
2404   }
2405   else if (attributeName == "radialGradient_fx")
2406   {
2407     value = isSetRadialGradient_fx();
2408   }
2409   else if (attributeName == "radialGradient_fy")
2410   {
2411     value = isSetRadialGradient_fy();
2412   }
2413   else if (attributeName == "radialGradient_fz")
2414   {
2415     value = isSetRadialGradient_fz();
2416   }
2417   else if (attributeName == "fill")
2418   {
2419     value = isSetFill();
2420   }
2421   else if (attributeName == "fill-rule")
2422   {
2423     value = isSetFillRule();
2424   }
2425   else if (attributeName == "default_z")
2426   {
2427     value = isSetDefault_z();
2428   }
2429   else if (attributeName == "stroke")
2430   {
2431     value = isSetStroke();
2432   }
2433   else if (attributeName == "stroke-width")
2434   {
2435     value = isSetStrokeWidth();
2436   }
2437   else if (attributeName == "font-family")
2438   {
2439     value = isSetFontFamily();
2440   }
2441   else if (attributeName == "font-size")
2442   {
2443     value = isSetFontSize();
2444   }
2445   else if (attributeName == "font-weight")
2446   {
2447     value = isSetFontWeight();
2448   }
2449   else if (attributeName == "font-style")
2450   {
2451     value = isSetFontStyle();
2452   }
2453   else if (attributeName == "text-anchor")
2454   {
2455     value = isSetTextAnchor();
2456   }
2457   else if (attributeName == "vtext-anchor")
2458   {
2459     value = isSetVTextAnchor();
2460   }
2461   else if (attributeName == "startHead")
2462   {
2463     value = isSetStartHead();
2464   }
2465   else if (attributeName == "endHead")
2466   {
2467     value = isSetEndHead();
2468   }
2469   else if (attributeName == "enableRotationalMapping")
2470   {
2471     value = isSetEnableRotationalMapping();
2472   }
2473 
2474   return value;
2475 }
2476 
2477 /** @endcond */
2478 
2479 
2480 
2481 /** @cond doxygenLibsbmlInternal */
2482 
2483 /*
2484  * Sets the value of the "attributeName" attribute of this DefaultValues.
2485  */
2486 int
setAttribute(const std::string & attributeName,bool value)2487 DefaultValues::setAttribute(const std::string& attributeName, bool value)
2488 {
2489   int return_value = SBase::setAttribute(attributeName, value);
2490 
2491   if (attributeName == "enableRotationalMapping")
2492   {
2493     return_value = setEnableRotationalMapping(value);
2494   }
2495 
2496   return return_value;
2497 }
2498 
2499 /** @endcond */
2500 
2501 
2502 
2503 /** @cond doxygenLibsbmlInternal */
2504 
2505 /*
2506  * Sets the value of the "attributeName" attribute of this DefaultValues.
2507  */
2508 int
setAttribute(const std::string & attributeName,int value)2509 DefaultValues::setAttribute(const std::string& attributeName, int value)
2510 {
2511   int return_value = SBase::setAttribute(attributeName, value);
2512 
2513   return return_value;
2514 }
2515 
2516 /** @endcond */
2517 
2518 
2519 
2520 /** @cond doxygenLibsbmlInternal */
2521 
2522 /*
2523  * Sets the value of the "attributeName" attribute of this DefaultValues.
2524  */
2525 int
setAttribute(const std::string & attributeName,double value)2526 DefaultValues::setAttribute(const std::string& attributeName, double value)
2527 {
2528   int return_value = SBase::setAttribute(attributeName, value);
2529 
2530   if (attributeName == "stroke-width")
2531   {
2532     return_value = setStrokeWidth(value);
2533   }
2534 
2535   return return_value;
2536 }
2537 
2538 /** @endcond */
2539 
2540 
2541 
2542 /** @cond doxygenLibsbmlInternal */
2543 
2544 /*
2545  * Sets the value of the "attributeName" attribute of this DefaultValues.
2546  */
2547 int
setAttribute(const std::string & attributeName,unsigned int value)2548 DefaultValues::setAttribute(const std::string& attributeName,
2549                             unsigned int value)
2550 {
2551   int return_value = SBase::setAttribute(attributeName, value);
2552 
2553   return return_value;
2554 }
2555 
2556 /** @endcond */
2557 
2558 
2559 
2560 /** @cond doxygenLibsbmlInternal */
2561 
2562 /*
2563  * Sets the value of the "attributeName" attribute of this DefaultValues.
2564  */
2565 int
setAttribute(const std::string & attributeName,const std::string & value)2566 DefaultValues::setAttribute(const std::string& attributeName,
2567                             const std::string& value)
2568 {
2569   int return_value = SBase::setAttribute(attributeName, value);
2570 
2571   if (attributeName == "backgroundColor")
2572   {
2573     return_value = setBackgroundColor(value);
2574   }
2575   else if (attributeName == "spreadMethod")
2576   {
2577     return_value = setSpreadMethod(value);
2578   }
2579   else if (attributeName == "linearGradient_x1")
2580   {
2581     return_value = setLinearGradient_x1(value);
2582   }
2583   else if (attributeName == "linearGradient_y1")
2584   {
2585     return_value = setLinearGradient_y1(value);
2586   }
2587   else if (attributeName == "linearGradient_z1")
2588   {
2589     return_value = setLinearGradient_z1(value);
2590   }
2591   else if (attributeName == "linearGradient_x2")
2592   {
2593     return_value = setLinearGradient_x2(value);
2594   }
2595   else if (attributeName == "linearGradient_y2")
2596   {
2597     return_value = setLinearGradient_y2(value);
2598   }
2599   else if (attributeName == "linearGradient_z2")
2600   {
2601     return_value = setLinearGradient_z2(value);
2602   }
2603   else if (attributeName == "radialGradient_cx")
2604   {
2605     return_value = setRadialGradient_cx(value);
2606   }
2607   else if (attributeName == "radialGradient_cy")
2608   {
2609     return_value = setRadialGradient_cy(value);
2610   }
2611   else if (attributeName == "radialGradient_cz")
2612   {
2613     return_value = setRadialGradient_cz(value);
2614   }
2615   else if (attributeName == "radialGradient_r")
2616   {
2617     return_value = setRadialGradient_r(value);
2618   }
2619   else if (attributeName == "radialGradient_fx")
2620   {
2621     return_value = setRadialGradient_fx(value);
2622   }
2623   else if (attributeName == "radialGradient_fy")
2624   {
2625     return_value = setRadialGradient_fy(value);
2626   }
2627   else if (attributeName == "radialGradient_fz")
2628   {
2629     return_value = setRadialGradient_fz(value);
2630   }
2631   else if (attributeName == "fill")
2632   {
2633     return_value = setFill(value);
2634   }
2635   else if (attributeName == "fill-rule")
2636   {
2637     return_value = setFillRule(value);
2638   }
2639   else if (attributeName == "default_z")
2640   {
2641     return_value = setDefault_z(value);
2642   }
2643   else if (attributeName == "stroke")
2644   {
2645     return_value = setStroke(value);
2646   }
2647   else if (attributeName == "font-family")
2648   {
2649     return_value = setFontFamily(value);
2650   }
2651   else if (attributeName == "font-size")
2652   {
2653     return_value = setFontSize(value);
2654   }
2655   else if (attributeName == "font-weight")
2656   {
2657     return_value = setFontWeight(value);
2658   }
2659   else if (attributeName == "font-style")
2660   {
2661     return_value = setFontStyle(value);
2662   }
2663   else if (attributeName == "text-anchor")
2664   {
2665     return_value = setTextAnchor(value);
2666   }
2667   else if (attributeName == "vtext-anchor")
2668   {
2669     return_value = setVTextAnchor(value);
2670   }
2671   else if (attributeName == "startHead")
2672   {
2673     return_value = setStartHead(value);
2674   }
2675   else if (attributeName == "endHead")
2676   {
2677     return_value = setEndHead(value);
2678   }
2679 
2680   return return_value;
2681 }
2682 
2683 /** @endcond */
2684 
2685 
2686 
2687 /** @cond doxygenLibsbmlInternal */
2688 
2689 
2690 /** @cond doxygenLibsbmlInternal */
2691 
2692 /*
2693  * Unsets the value of the "attributeName" attribute of this DefaultValues.
2694  */
2695 int
unsetAttribute(const std::string & attributeName)2696 DefaultValues::unsetAttribute(const std::string& attributeName)
2697 {
2698   int value = SBase::unsetAttribute(attributeName);
2699 
2700   if (attributeName == "backgroundColor")
2701   {
2702     value = unsetBackgroundColor();
2703   }
2704   else if (attributeName == "spreadMethod")
2705   {
2706     value = unsetSpreadMethod();
2707   }
2708   else if (attributeName == "linearGradient_x1")
2709   {
2710     value = unsetLinearGradient_x1();
2711   }
2712   else if (attributeName == "linearGradient_y1")
2713   {
2714     value = unsetLinearGradient_y1();
2715   }
2716   else if (attributeName == "linearGradient_z1")
2717   {
2718     value = unsetLinearGradient_z1();
2719   }
2720   else if (attributeName == "linearGradient_x2")
2721   {
2722     value = unsetLinearGradient_x2();
2723   }
2724   else if (attributeName == "linearGradient_y2")
2725   {
2726     value = unsetLinearGradient_y2();
2727   }
2728   else if (attributeName == "linearGradient_z2")
2729   {
2730     value = unsetLinearGradient_z2();
2731   }
2732   else if (attributeName == "radialGradient_cx")
2733   {
2734     value = unsetRadialGradient_cx();
2735   }
2736   else if (attributeName == "radialGradient_cy")
2737   {
2738     value = unsetRadialGradient_cy();
2739   }
2740   else if (attributeName == "radialGradient_cz")
2741   {
2742     value = unsetRadialGradient_cz();
2743   }
2744   else if (attributeName == "radialGradient_r")
2745   {
2746     value = unsetRadialGradient_r();
2747   }
2748   else if (attributeName == "radialGradient_fx")
2749   {
2750     value = unsetRadialGradient_fx();
2751   }
2752   else if (attributeName == "radialGradient_fy")
2753   {
2754     value = unsetRadialGradient_fy();
2755   }
2756   else if (attributeName == "radialGradient_fz")
2757   {
2758     value = unsetRadialGradient_fz();
2759   }
2760   else if (attributeName == "fill")
2761   {
2762     value = unsetFill();
2763   }
2764   else if (attributeName == "fill-rule")
2765   {
2766     value = unsetFillRule();
2767   }
2768   else if (attributeName == "default_z")
2769   {
2770     value = unsetDefault_z();
2771   }
2772   else if (attributeName == "stroke")
2773   {
2774     value = unsetStroke();
2775   }
2776   else if (attributeName == "stroke-width")
2777   {
2778     value = unsetStrokeWidth();
2779   }
2780   else if (attributeName == "font-family")
2781   {
2782     value = unsetFontFamily();
2783   }
2784   else if (attributeName == "font-size")
2785   {
2786     value = unsetFontSize();
2787   }
2788   else if (attributeName == "font-weight")
2789   {
2790     value = unsetFontWeight();
2791   }
2792   else if (attributeName == "font-style")
2793   {
2794     value = unsetFontStyle();
2795   }
2796   else if (attributeName == "text-anchor")
2797   {
2798     value = unsetTextAnchor();
2799   }
2800   else if (attributeName == "vtext-anchor")
2801   {
2802     value = unsetVTextAnchor();
2803   }
2804   else if (attributeName == "startHead")
2805   {
2806     value = unsetStartHead();
2807   }
2808   else if (attributeName == "endHead")
2809   {
2810     value = unsetEndHead();
2811   }
2812   else if (attributeName == "enableRotationalMapping")
2813   {
2814     value = unsetEnableRotationalMapping();
2815   }
2816 
2817   return value;
2818 }
2819 
2820 /** @endcond */
2821 
2822 
2823 
2824 /** @cond doxygenLibsbmlInternal */
2825 
2826 /*
2827  * Adds the expected attributes for this element
2828  */
2829 void
addExpectedAttributes(ExpectedAttributes & attributes)2830 DefaultValues::addExpectedAttributes(ExpectedAttributes& attributes)
2831 {
2832   SBase::addExpectedAttributes(attributes);
2833 
2834   attributes.add("backgroundColor");
2835 
2836   attributes.add("spreadMethod");
2837 
2838   attributes.add("linearGradient_x1");
2839 
2840   attributes.add("linearGradient_y1");
2841 
2842   attributes.add("linearGradient_z1");
2843 
2844   attributes.add("linearGradient_x2");
2845 
2846   attributes.add("linearGradient_y2");
2847 
2848   attributes.add("linearGradient_z2");
2849 
2850   attributes.add("radialGradient_cx");
2851 
2852   attributes.add("radialGradient_cy");
2853 
2854   attributes.add("radialGradient_cz");
2855 
2856   attributes.add("radialGradient_r");
2857 
2858   attributes.add("radialGradient_fx");
2859 
2860   attributes.add("radialGradient_fy");
2861 
2862   attributes.add("radialGradient_fz");
2863 
2864   attributes.add("fill");
2865 
2866   attributes.add("fill-rule");
2867 
2868   attributes.add("default_z");
2869 
2870   attributes.add("stroke");
2871 
2872   attributes.add("stroke-width");
2873 
2874   attributes.add("font-family");
2875 
2876   attributes.add("font-size");
2877 
2878   attributes.add("font-weight");
2879 
2880   attributes.add("font-style");
2881 
2882   attributes.add("text-anchor");
2883 
2884   attributes.add("vtext-anchor");
2885 
2886   attributes.add("startHead");
2887 
2888   attributes.add("endHead");
2889 
2890   attributes.add("enableRotationalMapping");
2891 }
2892 
2893 /** @endcond */
2894 
2895 
2896 
2897 /** @cond doxygenLibsbmlInternal */
2898 
2899 /*
2900  * Reads the expected attributes into the member data variables
2901  */
2902 void
readAttributes(const XMLAttributes & attributes,const ExpectedAttributes & expectedAttributes)2903 DefaultValues::readAttributes(const XMLAttributes& attributes,
2904                               const ExpectedAttributes& expectedAttributes)
2905 {
2906   unsigned int level = getLevel();
2907   unsigned int version = getVersion();
2908   //unsigned int pkgVersion = getPackageVersion();
2909   unsigned int numErrs;
2910   bool assigned = false;
2911   SBMLErrorLog* log = getErrorLog();
2912 
2913   SBase::readAttributes(attributes, expectedAttributes);
2914   numErrs = log->getNumErrors();
2915 
2916   //
2917   // backgroundColor string (use = "optional" )
2918   //
2919 
2920   assigned = attributes.readInto("backgroundColor", mBackgroundColor);
2921 
2922   if (assigned == true)
2923   {
2924     if (log && mBackgroundColor.empty() == true)
2925     {
2926       logEmptyString(mBackgroundColor, level, version, "<DefaultValues>");
2927     }
2928   }
2929 
2930   //
2931   // spreadMethod enum (use = "optional" )
2932   //
2933 
2934   std::string spreadmethod;
2935   assigned = attributes.readInto("spreadMethod", spreadmethod);
2936 
2937   if (assigned == true)
2938   {
2939     if (spreadmethod.empty() == true)
2940     {
2941       logEmptyString(spreadmethod, level, version, "<DefaultValues>");
2942     }
2943     else
2944     {
2945       mSpreadMethod = SpreadMethod_fromString(spreadmethod.c_str());
2946 
2947       if (mSpreadMethod == GradientBase::INVALID)
2948       {
2949         std::string msg = "The spreadMethod on the <DefaultValues> ";
2950 
2951         if (isSetId())
2952         {
2953           msg += "with id '" + getId() + "'";
2954         }
2955 
2956         msg += "is '" + spreadmethod + "', which is not a valid option.";
2957 
2958       }
2959     }
2960   }
2961 
2962   //
2963   // linearGradient_x1 string (use = "optional" )
2964   //
2965   std::string temp;
2966   assigned = attributes.readInto("linearGradient_x1", temp);
2967   mLinearGradient_x1 = RelAbsVector(temp);
2968   if (assigned == true)
2969   {
2970     if (mLinearGradient_x1.empty() == true)
2971     {
2972       logEmptyString(temp, level, version, "<DefaultValues>");
2973     }
2974   }
2975 
2976   //
2977   // linearGradient_y1 string (use = "optional" )
2978   //
2979 
2980   assigned = attributes.readInto("linearGradient_y1", temp);
2981   mLinearGradient_y1 = RelAbsVector(temp);
2982 
2983   if (assigned == true)
2984   {
2985     if (mLinearGradient_y1.empty() == true)
2986     {
2987       logEmptyString(temp, level, version, "<DefaultValues>");
2988     }
2989   }
2990 
2991   //
2992   // linearGradient_z1 string (use = "optional" )
2993   //
2994 
2995   assigned = attributes.readInto("linearGradient_z1", temp);
2996   mLinearGradient_z1 = RelAbsVector(temp);
2997 
2998   if (assigned == true)
2999   {
3000     if (mLinearGradient_z1.empty() == true)
3001     {
3002       logEmptyString(temp, level, version, "<DefaultValues>");
3003     }
3004   }
3005 
3006   //
3007   // linearGradient_x2 string (use = "optional" )
3008   //
3009 
3010   assigned = attributes.readInto("linearGradient_x2", temp);
3011   mLinearGradient_x2 = RelAbsVector(temp);
3012 
3013   if (assigned == true)
3014   {
3015     if (mLinearGradient_x2.empty() == true)
3016     {
3017       logEmptyString(temp, level, version, "<DefaultValues>");
3018     }
3019   }
3020 
3021   //
3022   // linearGradient_y2 string (use = "optional" )
3023   //
3024 
3025   assigned = attributes.readInto("linearGradient_y2", temp);
3026   mLinearGradient_y2 = RelAbsVector(temp);
3027 
3028   if (assigned == true)
3029   {
3030     if (mLinearGradient_y2.empty() == true)
3031     {
3032       logEmptyString(temp, level, version, "<DefaultValues>");
3033     }
3034   }
3035 
3036   //
3037   // linearGradient_z2 string (use = "optional" )
3038   //
3039 
3040   assigned = attributes.readInto("linearGradient_z2", temp);
3041   mLinearGradient_z2 = RelAbsVector(temp);
3042 
3043   if (assigned == true)
3044   {
3045     if (mLinearGradient_z2.empty() == true)
3046     {
3047       logEmptyString(temp, level, version, "<DefaultValues>");
3048     }
3049   }
3050 
3051   //
3052   // radialGradient_cx string (use = "optional" )
3053   //
3054 
3055   assigned = attributes.readInto("radialGradient_cx", temp);
3056   mRadialGradient_cx = RelAbsVector(temp);
3057 
3058   if (assigned == true)
3059   {
3060     if (mRadialGradient_cx.empty() == true)
3061     {
3062       logEmptyString(temp, level, version, "<DefaultValues>");
3063     }
3064   }
3065 
3066   //
3067   // radialGradient_cy string (use = "optional" )
3068   //
3069 
3070   assigned = attributes.readInto("radialGradient_cy", temp);
3071   mRadialGradient_cy = RelAbsVector(temp);
3072 
3073   if (assigned == true)
3074   {
3075     if (mRadialGradient_cy.empty() == true)
3076     {
3077       logEmptyString(temp, level, version, "<DefaultValues>");
3078     }
3079   }
3080 
3081   //
3082   // radialGradient_cz string (use = "optional" )
3083   //
3084 
3085   assigned = attributes.readInto("radialGradient_cz", temp);
3086   mRadialGradient_cz = RelAbsVector(temp);
3087 
3088   if (assigned == true)
3089   {
3090     if (mRadialGradient_cz.empty() == true)
3091     {
3092       logEmptyString(temp, level, version, "<DefaultValues>");
3093     }
3094   }
3095 
3096   //
3097   // radialGradient_r string (use = "optional" )
3098   //
3099 
3100   assigned = attributes.readInto("radialGradient_r", temp);
3101   mRadialGradient_r = RelAbsVector(temp);
3102 
3103   if (assigned == true)
3104   {
3105     if (mRadialGradient_r.empty() == true)
3106     {
3107       logEmptyString(temp, level, version, "<DefaultValues>");
3108     }
3109   }
3110 
3111   //
3112   // radialGradient_fx string (use = "optional" )
3113   //
3114 
3115   assigned = attributes.readInto("radialGradient_fx", temp);
3116   mRadialGradient_fx = RelAbsVector(temp);
3117 
3118   if (assigned == true)
3119   {
3120     if (mRadialGradient_fx.empty() == true)
3121     {
3122       logEmptyString(temp, level, version, "<DefaultValues>");
3123     }
3124   }
3125 
3126   //
3127   // radialGradient_fy string (use = "optional" )
3128   //
3129 
3130   assigned = attributes.readInto("radialGradient_fy", temp);
3131   mRadialGradient_fy = RelAbsVector(temp);
3132 
3133   if (assigned == true)
3134   {
3135     if (mRadialGradient_fy.empty() == true)
3136     {
3137       logEmptyString(temp, level, version, "<DefaultValues>");
3138     }
3139   }
3140 
3141   //
3142   // radialGradient_fz string (use = "optional" )
3143   //
3144 
3145   assigned = attributes.readInto("radialGradient_fz", temp);
3146   mRadialGradient_fz = RelAbsVector(temp);
3147 
3148   if (assigned == true)
3149   {
3150     if (mRadialGradient_fz.empty() == true)
3151     {
3152       logEmptyString(temp, level, version, "<DefaultValues>");
3153     }
3154   }
3155 
3156   //
3157   // fill string (use = "optional" )
3158   //
3159 
3160   assigned = attributes.readInto("fill", mFill);
3161 
3162   if (assigned == true)
3163   {
3164     if (mFill.empty() == true)
3165     {
3166       logEmptyString(mFill, level, version, "<DefaultValues>");
3167     }
3168   }
3169 
3170   //
3171   // fill-rule enum (use = "optional" )
3172   //
3173 
3174   std::string fillRule;
3175   assigned = attributes.readInto("fill-rule", fillRule);
3176 
3177   if (assigned == true)
3178   {
3179     if (fillRule.empty() == true)
3180     {
3181       logEmptyString(fillRule, level, version, "<DefaultValues>");
3182     }
3183     else
3184     {
3185       mFillRule = FillRule_fromString(fillRule.c_str());
3186 
3187       if (mFillRule == GraphicalPrimitive2D::INVALID)
3188       {
3189         std::string msg = "The fill-rule on the <DefaultValues> ";
3190 
3191         if (isSetId())
3192         {
3193           msg += "with id '" + getId() + "'";
3194         }
3195 
3196         msg += "is '" + fillRule + "', which is not a valid option.";
3197 
3198       }
3199     }
3200   }
3201 
3202   //
3203   // default_z string (use = "optional" )
3204   //
3205 
3206   assigned = attributes.readInto("default_z", temp);
3207   mDefault_z = RelAbsVector(temp);
3208 
3209   if (assigned == true)
3210   {
3211     if (mDefault_z.empty() == true)
3212     {
3213       logEmptyString(temp, level, version, "<DefaultValues>");
3214     }
3215   }
3216 
3217   //
3218   // stroke string (use = "optional" )
3219   //
3220 
3221   assigned = attributes.readInto("stroke", mStroke);
3222 
3223   if (assigned == true)
3224   {
3225     if (mStroke.empty() == true)
3226     {
3227       logEmptyString(mStroke, level, version, "<DefaultValues>");
3228     }
3229   }
3230 
3231   //
3232   // stroke-width string (use = "optional" )
3233   //
3234 
3235   mIsSetStrokeWidth = attributes.readInto("stroke-width", mStrokeWidth);
3236 
3237   //
3238   // font-family string (use = "optional" )
3239   //
3240 
3241   assigned = attributes.readInto("font-family", mFontFamily);
3242 
3243   if (assigned == true)
3244   {
3245     if (mFontFamily.empty() == true)
3246     {
3247       logEmptyString(mFontFamily, level, version, "<DefaultValues>");
3248     }
3249   }
3250 
3251   //
3252   // font-size string (use = "optional" )
3253   //
3254 
3255   assigned = attributes.readInto("font-size", temp);
3256   mFontSize = RelAbsVector(temp);
3257 
3258   if (assigned == true)
3259   {
3260     if (mFontSize.empty() == true)
3261     {
3262       logEmptyString(temp, level, version, "<DefaultValues>");
3263     }
3264   }
3265 
3266   //
3267   // font-weight enum (use = "optional" )
3268   //
3269 
3270   std::string fontWeight;
3271   assigned = attributes.readInto("font-weight", fontWeight);
3272 
3273   if (assigned == true)
3274   {
3275     if (fontWeight.empty() == true)
3276     {
3277       logEmptyString(fontWeight, level, version, "<DefaultValues>");
3278     }
3279     else
3280     {
3281       mFontWeight = FontWeight_fromString(fontWeight.c_str());
3282 
3283       if (mFontWeight == Text::WEIGHT_INVALID)
3284       {
3285         std::string msg = "The font-weight on the <DefaultValues> ";
3286 
3287         if (isSetId())
3288         {
3289           msg += "with id '" + getId() + "'";
3290         }
3291 
3292         msg += "is '" + fontWeight + "', which is not a valid option.";
3293 
3294       }
3295     }
3296   }
3297 
3298   //
3299   // font-style enum (use = "optional" )
3300   //
3301 
3302   std::string fontStyle;
3303   assigned = attributes.readInto("font-style", fontStyle);
3304 
3305   if (assigned == true)
3306   {
3307     if (fontStyle.empty() == true)
3308     {
3309       logEmptyString(fontStyle, level, version, "<DefaultValues>");
3310     }
3311     else
3312     {
3313       mFontStyle = FontStyle_fromString(fontStyle.c_str());
3314 
3315       if (mFontStyle == Text::STYLE_INVALID)
3316       {
3317         std::string msg = "The font-style on the <DefaultValues> ";
3318 
3319         if (isSetId())
3320         {
3321           msg += "with id '" + getId() + "'";
3322         }
3323 
3324         msg += "is '" + fontStyle + "', which is not a valid option.";
3325       }
3326     }
3327   }
3328 
3329   //
3330   // text-anchor enum (use = "optional" )
3331   //
3332 
3333   std::string textAnchor;
3334   assigned = attributes.readInto("text-anchor", textAnchor);
3335 
3336   if (assigned == true)
3337   {
3338     if (textAnchor.empty() == true)
3339     {
3340       logEmptyString(textAnchor, level, version, "<DefaultValues>");
3341     }
3342     else
3343     {
3344       mTextAnchor = TextAnchor_fromString(textAnchor.c_str());
3345 
3346       if (mTextAnchor == Text::ANCHOR_INVALID)
3347       {
3348         std::string msg = "The text-anchor on the <DefaultValues> ";
3349 
3350         if (isSetId())
3351         {
3352           msg += "with id '" + getId() + "'";
3353         }
3354 
3355         msg += "is '" + textAnchor + "', which is not a valid option.";
3356 
3357       }
3358     }
3359   }
3360 
3361   //
3362   // vtext-anchor enum (use = "optional" )
3363   //
3364 
3365   std::string vtextAnchor;
3366   assigned = attributes.readInto("vtext-anchor", vtextAnchor);
3367 
3368   if (assigned == true)
3369   {
3370     if (vtextAnchor.empty() == true)
3371     {
3372       logEmptyString(vtextAnchor, level, version, "<DefaultValues>");
3373     }
3374     else
3375     {
3376       mVTextAnchor = TextAnchor_fromString(vtextAnchor.c_str());
3377 
3378       if (mVTextAnchor == Text::ANCHOR_INVALID)
3379       {
3380         std::string msg = "The vtext-anchor on the <DefaultValues> ";
3381 
3382         if (isSetId())
3383         {
3384           msg += "with id '" + getId() + "'";
3385         }
3386 
3387         msg += "is '" + vtextAnchor + "', which is not a valid option.";
3388 
3389       }
3390     }
3391   }
3392 
3393   //
3394   // startHead SIdRef (use = "optional" )
3395   //
3396 
3397   assigned = attributes.readInto("startHead", mStartHead);
3398 
3399   if (assigned == true)
3400   {
3401     if (mStartHead.empty() == true)
3402     {
3403       logEmptyString(mStartHead, level, version, "<DefaultValues>");
3404     }
3405     else if (SyntaxChecker::isValidSBMLSId(mStartHead) == false)
3406     {
3407       std::string msg = "The startHead attribute on the <" + getElementName() +
3408         ">";
3409       if (isSetId())
3410       {
3411         msg += " with id '" + getId() + "'";
3412       }
3413 
3414       msg += " is '" + mStartHead + "', which does not conform to the syntax.";
3415     }
3416   }
3417 
3418   //
3419   // endHead SIdRef (use = "optional" )
3420   //
3421 
3422   assigned = attributes.readInto("endHead", mEndHead);
3423 
3424   if (assigned == true)
3425   {
3426     if (mEndHead.empty() == true)
3427     {
3428       logEmptyString(mEndHead, level, version, "<DefaultValues>");
3429     }
3430     else if (SyntaxChecker::isValidSBMLSId(mEndHead) == false)
3431     {
3432       std::string msg = "The endHead attribute on the <" + getElementName() +
3433         ">";
3434       if (isSetId())
3435       {
3436         msg += " with id '" + getId() + "'";
3437       }
3438 
3439       msg += " is '" + mEndHead + "', which does not conform to the syntax.";
3440     }
3441   }
3442 
3443   //
3444   // enableRotationalMapping bool (use = "optional" )
3445   //
3446 
3447   numErrs = log->getNumErrors();
3448   mIsSetEnableRotationalMapping =
3449     attributes.readInto("enableRotationalMapping", mEnableRotationalMapping);
3450 
3451   if (mIsSetEnableRotationalMapping == false)
3452   {
3453     if (log->getNumErrors() == numErrs + 1 &&
3454       log->contains(XMLAttributeTypeMismatch))
3455     {
3456       log->remove(XMLAttributeTypeMismatch);
3457     }
3458   }
3459 }
3460 
3461 /** @endcond */
3462 
3463 
3464 
3465 /** @cond doxygenLibsbmlInternal */
3466 
3467 /*
3468  * Writes the attributes to the stream
3469  */
3470 void
writeAttributes(XMLOutputStream & stream) const3471 DefaultValues::writeAttributes(XMLOutputStream& stream) const
3472 {
3473   SBase::writeAttributes(stream);
3474 
3475   if (isSetBackgroundColor() == true)
3476   {
3477     stream.writeAttribute("backgroundColor", getPrefix(), mBackgroundColor);
3478   }
3479 
3480   if (isSetSpreadMethod() == true)
3481   {
3482     stream.writeAttribute("spreadMethod", getPrefix(),
3483       getSpreadMethodAsString());
3484   }
3485 
3486   if (isSetLinearGradient_x1() == true)
3487   {
3488     stream.writeAttribute("linearGradient_x1", getPrefix(),
3489       mLinearGradient_x1.toString());
3490   }
3491 
3492   if (isSetLinearGradient_y1() == true)
3493   {
3494     stream.writeAttribute("linearGradient_y1", getPrefix(),
3495       mLinearGradient_y1.toString());
3496   }
3497 
3498   if (isSetLinearGradient_z1() == true)
3499   {
3500     stream.writeAttribute("linearGradient_z1", getPrefix(),
3501       mLinearGradient_z1.toString());
3502   }
3503 
3504   if (isSetLinearGradient_x2() == true)
3505   {
3506     stream.writeAttribute("linearGradient_x2", getPrefix(),
3507       mLinearGradient_x2.toString());
3508   }
3509 
3510   if (isSetLinearGradient_y2() == true)
3511   {
3512     stream.writeAttribute("linearGradient_y2", getPrefix(),
3513       mLinearGradient_y2.toString());
3514   }
3515 
3516   if (isSetLinearGradient_z2() == true)
3517   {
3518     stream.writeAttribute("linearGradient_z2", getPrefix(),
3519       mLinearGradient_z2.toString());
3520   }
3521 
3522   if (isSetRadialGradient_cx() == true)
3523   {
3524     stream.writeAttribute("radialGradient_cx", getPrefix(),
3525       mRadialGradient_cx.toString());
3526   }
3527 
3528   if (isSetRadialGradient_cy() == true)
3529   {
3530     stream.writeAttribute("radialGradient_cy", getPrefix(),
3531       mRadialGradient_cy.toString());
3532   }
3533 
3534   if (isSetRadialGradient_cz() == true)
3535   {
3536     stream.writeAttribute("radialGradient_cz", getPrefix(),
3537       mRadialGradient_cz.toString());
3538   }
3539 
3540   if (isSetRadialGradient_r() == true)
3541   {
3542     stream.writeAttribute("radialGradient_r", getPrefix(), mRadialGradient_r.toString());
3543   }
3544 
3545   if (isSetRadialGradient_fx() == true)
3546   {
3547     stream.writeAttribute("radialGradient_fx", getPrefix(),
3548       mRadialGradient_fx.toString());
3549   }
3550 
3551   if (isSetRadialGradient_fy() == true)
3552   {
3553     stream.writeAttribute("radialGradient_fy", getPrefix(),
3554       mRadialGradient_fy.toString());
3555   }
3556 
3557   if (isSetRadialGradient_fz() == true)
3558   {
3559     stream.writeAttribute("radialGradient_fz", getPrefix(),
3560       mRadialGradient_fz.toString());
3561   }
3562 
3563   if (isSetFill() == true)
3564   {
3565     stream.writeAttribute("fill", getPrefix(), mFill);
3566   }
3567 
3568   if (isSetFillRule() == true)
3569   {
3570     stream.writeAttribute("fill-rule", getPrefix(),
3571       getFillRuleAsString());
3572   }
3573 
3574   if (isSetDefault_z() == true)
3575   {
3576     stream.writeAttribute("default_z", getPrefix(), mDefault_z.toString());
3577   }
3578 
3579   if (isSetStroke() == true)
3580   {
3581     stream.writeAttribute("stroke", getPrefix(), mStroke);
3582   }
3583 
3584   if (isSetStrokeWidth() == true)
3585   {
3586     stream.writeAttribute("stroke-width", getPrefix(), mStrokeWidth);
3587   }
3588 
3589   if (isSetFontFamily() == true)
3590   {
3591     stream.writeAttribute("font-family", getPrefix(), mFontFamily);
3592   }
3593 
3594   if (isSetFontSize() == true)
3595   {
3596     stream.writeAttribute("font-size", getPrefix(), mFontSize.toString());
3597   }
3598 
3599   if (isSetFontWeight() == true)
3600   {
3601     stream.writeAttribute("font-weight", getPrefix(),
3602       getFontWeightAsString());
3603   }
3604 
3605   if (isSetFontStyle() == true)
3606   {
3607     stream.writeAttribute("font-style", getPrefix(),
3608       getFontStyleAsString());
3609   }
3610 
3611   if (isSetTextAnchor() == true)
3612   {
3613     stream.writeAttribute("text-anchor", getPrefix(),
3614       getTextAnchorAsString());
3615   }
3616 
3617   if (isSetVTextAnchor() == true)
3618   {
3619     stream.writeAttribute("vtext-anchor", getPrefix(),
3620       getVTextAnchorAsString());
3621   }
3622 
3623   if (isSetStartHead() == true)
3624   {
3625     stream.writeAttribute("startHead", getPrefix(), mStartHead);
3626   }
3627 
3628   if (isSetEndHead() == true)
3629   {
3630     stream.writeAttribute("endHead", getPrefix(), mEndHead);
3631   }
3632 
3633   if (isSetEnableRotationalMapping() == true)
3634   {
3635     stream.writeAttribute("enableRotationalMapping", getPrefix(),
3636       mEnableRotationalMapping);
3637   }
3638 
3639   SBase::writeExtensionAttributes(stream);
3640 }
3641 
3642 /** @endcond */
3643 
3644 
3645 
3646 
3647 #endif /* __cplusplus */
3648 
3649 
3650 /*
3651  * Creates a new DefaultValues_t using the given SBML Level, Version and
3652  * &ldquo;render&rdquo; package version.
3653  */
3654 LIBSBML_EXTERN
3655 DefaultValues_t *
DefaultValues_create(unsigned int level,unsigned int version,unsigned int pkgVersion)3656 DefaultValues_create(unsigned int level,
3657                      unsigned int version,
3658                      unsigned int pkgVersion)
3659 {
3660   return new DefaultValues(level, version, pkgVersion);
3661 }
3662 
3663 
3664 /*
3665  * Creates and returns a deep copy of this DefaultValues_t object.
3666  */
3667 LIBSBML_EXTERN
3668 DefaultValues_t*
DefaultValues_clone(const DefaultValues_t * dv)3669 DefaultValues_clone(const DefaultValues_t* dv)
3670 {
3671   if (dv != NULL)
3672   {
3673     return static_cast<DefaultValues_t*>(dv->clone());
3674   }
3675   else
3676   {
3677     return NULL;
3678   }
3679 }
3680 
3681 
3682 /*
3683  * Frees this DefaultValues_t object.
3684  */
3685 LIBSBML_EXTERN
3686 void
DefaultValues_free(DefaultValues_t * dv)3687 DefaultValues_free(DefaultValues_t* dv)
3688 {
3689   if (dv != NULL)
3690   {
3691     delete dv;
3692   }
3693 }
3694 
3695 
3696 /*
3697  * Returns the value of the "backgroundColor" attribute of this
3698  * DefaultValues_t.
3699  */
3700 LIBSBML_EXTERN
3701 char *
DefaultValues_getBackgroundColor(const DefaultValues_t * dv)3702 DefaultValues_getBackgroundColor(const DefaultValues_t * dv)
3703 {
3704   if (dv == NULL)
3705   {
3706     return NULL;
3707   }
3708 
3709   return dv->getBackgroundColor().empty() ? NULL :
3710     safe_strdup(dv->getBackgroundColor().c_str());
3711 }
3712 
3713 
3714 /*
3715  * Returns the value of the "spreadMethod" attribute of this DefaultValues_t.
3716  */
3717 LIBSBML_EXTERN
3718 GradientSpreadMethod_t
DefaultValues_getSpreadMethod(const DefaultValues_t * dv)3719 DefaultValues_getSpreadMethod(const DefaultValues_t * dv)
3720 {
3721   if (dv == NULL)
3722   {
3723     return GRADIENT_SPREAD_METHOD_INVALID;
3724   }
3725 
3726   return dv->getSpreadMethod();
3727 }
3728 
3729 
3730 /*
3731  * Returns the value of the "spreadMethod" attribute of this DefaultValues_t.
3732  */
3733 LIBSBML_EXTERN
3734 char *
DefaultValues_getSpreadMethodAsString(const DefaultValues_t * dv)3735 DefaultValues_getSpreadMethodAsString(const DefaultValues_t * dv)
3736 {
3737   return (char*)(GradientSpreadMethod_toString(dv->getSpreadMethod()));
3738 }
3739 
3740 
3741 /*
3742  * Returns the value of the "fill" attribute of this DefaultValues_t.
3743  */
3744 LIBSBML_EXTERN
3745 char *
DefaultValues_getFill(const DefaultValues_t * dv)3746 DefaultValues_getFill(const DefaultValues_t * dv)
3747 {
3748   if (dv == NULL)
3749   {
3750     return NULL;
3751   }
3752 
3753   return dv->getFill().empty() ? NULL : safe_strdup(dv->getFill().c_str());
3754 }
3755 
3756 
3757 /*
3758  * Returns the value of the "fill-rule" attribute of this DefaultValues_t.
3759  */
3760 LIBSBML_EXTERN
3761 FillRule_t
DefaultValues_getFillRule(const DefaultValues_t * dv)3762 DefaultValues_getFillRule(const DefaultValues_t * dv)
3763 {
3764   if (dv == NULL)
3765   {
3766     return FILL_RULE_INVALID;
3767   }
3768 
3769   return (FillRule_t)(dv->getFillRule());
3770 }
3771 
3772 
3773 /*
3774  * Returns the value of the "fill-rule" attribute of this DefaultValues_t.
3775  */
3776 LIBSBML_EXTERN
3777 char *
DefaultValues_getFillRuleAsString(const DefaultValues_t * dv)3778 DefaultValues_getFillRuleAsString(const DefaultValues_t * dv)
3779 {
3780   return (char *)(dv->getFillRuleAsString()).c_str();
3781 }
3782 
3783 
3784 /*
3785  * Returns the value of the "stroke" attribute of this DefaultValues_t.
3786  */
3787 LIBSBML_EXTERN
3788 char *
DefaultValues_getStroke(const DefaultValues_t * dv)3789 DefaultValues_getStroke(const DefaultValues_t * dv)
3790 {
3791   if (dv == NULL)
3792   {
3793     return NULL;
3794   }
3795 
3796   return dv->getStroke().empty() ? NULL : safe_strdup(dv->getStroke().c_str());
3797 }
3798 
3799 
3800 /*
3801  * Returns the value of the "stroke-width" attribute of this DefaultValues_t.
3802  */
3803 LIBSBML_EXTERN
3804 double
DefaultValues_getStrokeWidth(const DefaultValues_t * dv)3805 DefaultValues_getStrokeWidth(const DefaultValues_t * dv)
3806 {
3807   return (dv != NULL) ? dv->getStrokeWidth() : util_NaN();
3808 }
3809 
3810 
3811 /*
3812  * Returns the value of the "font-family" attribute of this DefaultValues_t.
3813  */
3814 LIBSBML_EXTERN
3815 char *
DefaultValues_getFontFamily(const DefaultValues_t * dv)3816 DefaultValues_getFontFamily(const DefaultValues_t * dv)
3817 {
3818   if (dv == NULL)
3819   {
3820     return NULL;
3821   }
3822 
3823   return dv->getFontFamily().empty() ? NULL :
3824     safe_strdup(dv->getFontFamily().c_str());
3825 }
3826 
3827 
3828 /*
3829  * Returns the value of the "font-weight" attribute of this DefaultValues_t.
3830  */
3831 LIBSBML_EXTERN
3832 FontWeight_t
DefaultValues_getFontWeight(const DefaultValues_t * dv)3833 DefaultValues_getFontWeight(const DefaultValues_t * dv)
3834 {
3835   if (dv == NULL)
3836   {
3837     return FONT_WEIGHT_INVALID;
3838   }
3839 
3840   return dv->getFontWeight();
3841 }
3842 
3843 
3844 /*
3845  * Returns the value of the "font-weight" attribute of this DefaultValues_t.
3846  */
3847 LIBSBML_EXTERN
3848 char *
DefaultValues_getFontWeightAsString(const DefaultValues_t * dv)3849 DefaultValues_getFontWeightAsString(const DefaultValues_t * dv)
3850 {
3851   return (char*)(FontWeight_toString(dv->getFontWeight()));
3852 }
3853 
3854 
3855 /*
3856  * Returns the value of the "font-style" attribute of this DefaultValues_t.
3857  */
3858 LIBSBML_EXTERN
3859 FontStyle_t
DefaultValues_getFontStyle(const DefaultValues_t * dv)3860 DefaultValues_getFontStyle(const DefaultValues_t * dv)
3861 {
3862   if (dv == NULL)
3863   {
3864     return FONT_STYLE_INVALID;
3865   }
3866 
3867   return dv->getFontStyle();
3868 }
3869 
3870 
3871 /*
3872  * Returns the value of the "font-style" attribute of this DefaultValues_t.
3873  */
3874 LIBSBML_EXTERN
3875 char *
DefaultValues_getFontStyleAsString(const DefaultValues_t * dv)3876 DefaultValues_getFontStyleAsString(const DefaultValues_t * dv)
3877 {
3878   return (char*)(FontStyle_toString(dv->getFontStyle()));
3879 }
3880 
3881 
3882 /*
3883  * Returns the value of the "text-anchor" attribute of this DefaultValues_t.
3884  */
3885 LIBSBML_EXTERN
3886 HTextAnchor_t
DefaultValues_getTextAnchor(const DefaultValues_t * dv)3887 DefaultValues_getTextAnchor(const DefaultValues_t * dv)
3888 {
3889   if (dv == NULL)
3890   {
3891     return H_TEXTANCHOR_INVALID;
3892   }
3893 
3894   return dv->getTextAnchor();
3895 }
3896 
3897 
3898 /*
3899  * Returns the value of the "text-anchor" attribute of this DefaultValues_t.
3900  */
3901 LIBSBML_EXTERN
3902 char *
DefaultValues_getTextAnchorAsString(const DefaultValues_t * dv)3903 DefaultValues_getTextAnchorAsString(const DefaultValues_t * dv)
3904 {
3905   return (char*)(HTextAnchor_toString(dv->getTextAnchor()));
3906 }
3907 
3908 
3909 /*
3910  * Returns the value of the "vtext-anchor" attribute of this DefaultValues_t.
3911  */
3912 LIBSBML_EXTERN
3913 VTextAnchor_t
DefaultValues_getVtextAnchor(const DefaultValues_t * dv)3914 DefaultValues_getVtextAnchor(const DefaultValues_t * dv)
3915 {
3916   if (dv == NULL)
3917   {
3918     return V_TEXTANCHOR_INVALID;
3919   }
3920 
3921   return dv->getVTextAnchor();
3922 }
3923 
3924 
3925 /*
3926  * Returns the value of the "vtext-anchor" attribute of this DefaultValues_t.
3927  */
3928 LIBSBML_EXTERN
3929 char *
DefaultValues_getVtextAnchorAsString(const DefaultValues_t * dv)3930 DefaultValues_getVtextAnchorAsString(const DefaultValues_t * dv)
3931 {
3932   return (char*)(VTextAnchor_toString(dv->getVTextAnchor()));
3933 }
3934 
3935 
3936 /*
3937  * Returns the value of the "startHead" attribute of this DefaultValues_t.
3938  */
3939 LIBSBML_EXTERN
3940 char *
DefaultValues_getStartHead(const DefaultValues_t * dv)3941 DefaultValues_getStartHead(const DefaultValues_t * dv)
3942 {
3943   if (dv == NULL)
3944   {
3945     return NULL;
3946   }
3947 
3948   return dv->getStartHead().empty() ? NULL :
3949     safe_strdup(dv->getStartHead().c_str());
3950 }
3951 
3952 
3953 /*
3954  * Returns the value of the "endHead" attribute of this DefaultValues_t.
3955  */
3956 LIBSBML_EXTERN
3957 char *
DefaultValues_getEndHead(const DefaultValues_t * dv)3958 DefaultValues_getEndHead(const DefaultValues_t * dv)
3959 {
3960   if (dv == NULL)
3961   {
3962     return NULL;
3963   }
3964 
3965   return dv->getEndHead().empty() ? NULL :
3966     safe_strdup(dv->getEndHead().c_str());
3967 }
3968 
3969 
3970 /*
3971  * Returns the value of the "enableRotationalMapping" attribute of this
3972  * DefaultValues_t.
3973  */
3974 LIBSBML_EXTERN
3975 int
DefaultValues_getEnableRotationalMapping(const DefaultValues_t * dv)3976 DefaultValues_getEnableRotationalMapping(const DefaultValues_t * dv)
3977 {
3978   return (dv != NULL) ? static_cast<int>(dv->getEnableRotationalMapping()) : 0;
3979 }
3980 
3981 
3982 /*
3983  * Predicate returning @c 1 (true) if this DefaultValues_t's "backgroundColor"
3984  * attribute is set.
3985  */
3986 LIBSBML_EXTERN
3987 int
DefaultValues_isSetBackgroundColor(const DefaultValues_t * dv)3988 DefaultValues_isSetBackgroundColor(const DefaultValues_t * dv)
3989 {
3990   return (dv != NULL) ? static_cast<int>(dv->isSetBackgroundColor()) : 0;
3991 }
3992 
3993 
3994 /*
3995  * Predicate returning @c 1 (true) if this DefaultValues_t's "spreadMethod"
3996  * attribute is set.
3997  */
3998 LIBSBML_EXTERN
3999 int
DefaultValues_isSetSpreadMethod(const DefaultValues_t * dv)4000 DefaultValues_isSetSpreadMethod(const DefaultValues_t * dv)
4001 {
4002   return (dv != NULL) ? static_cast<int>(dv->isSetSpreadMethod()) : 0;
4003 }
4004 
4005 
4006 /*
4007  * Predicate returning @c 1 (true) if this DefaultValues_t's "fill" attribute
4008  * is set.
4009  */
4010 LIBSBML_EXTERN
4011 int
DefaultValues_isSetFill(const DefaultValues_t * dv)4012 DefaultValues_isSetFill(const DefaultValues_t * dv)
4013 {
4014   return (dv != NULL) ? static_cast<int>(dv->isSetFill()) : 0;
4015 }
4016 
4017 
4018 /*
4019  * Predicate returning @c 1 (true) if this DefaultValues_t's "fill-rule"
4020  * attribute is set.
4021  */
4022 LIBSBML_EXTERN
4023 int
DefaultValues_isSetFillRule(const DefaultValues_t * dv)4024 DefaultValues_isSetFillRule(const DefaultValues_t * dv)
4025 {
4026   return (dv != NULL) ? static_cast<int>(dv->isSetFillRule()) : 0;
4027 }
4028 
4029 
4030 /*
4031  * Predicate returning @c 1 (true) if this DefaultValues_t's "stroke" attribute
4032  * is set.
4033  */
4034 LIBSBML_EXTERN
4035 int
DefaultValues_isSetStroke(const DefaultValues_t * dv)4036 DefaultValues_isSetStroke(const DefaultValues_t * dv)
4037 {
4038   return (dv != NULL) ? static_cast<int>(dv->isSetStroke()) : 0;
4039 }
4040 
4041 
4042 /*
4043  * Predicate returning @c 1 (true) if this DefaultValues_t's "stroke-width"
4044  * attribute is set.
4045  */
4046 LIBSBML_EXTERN
4047 int
DefaultValues_isSetStrokeWidth(const DefaultValues_t * dv)4048 DefaultValues_isSetStrokeWidth(const DefaultValues_t * dv)
4049 {
4050   return (dv != NULL) ? static_cast<int>(dv->isSetStrokeWidth()) : 0;
4051 }
4052 
4053 
4054 /*
4055  * Predicate returning @c 1 (true) if this DefaultValues_t's "font-family"
4056  * attribute is set.
4057  */
4058 LIBSBML_EXTERN
4059 int
DefaultValues_isSetFontFamily(const DefaultValues_t * dv)4060 DefaultValues_isSetFontFamily(const DefaultValues_t * dv)
4061 {
4062   return (dv != NULL) ? static_cast<int>(dv->isSetFontFamily()) : 0;
4063 }
4064 
4065 
4066 /*
4067  * Predicate returning @c 1 (true) if this DefaultValues_t's "font-weight"
4068  * attribute is set.
4069  */
4070 LIBSBML_EXTERN
4071 int
DefaultValues_isSetFontWeight(const DefaultValues_t * dv)4072 DefaultValues_isSetFontWeight(const DefaultValues_t * dv)
4073 {
4074   return (dv != NULL) ? static_cast<int>(dv->isSetFontWeight()) : 0;
4075 }
4076 
4077 
4078 /*
4079  * Predicate returning @c 1 (true) if this DefaultValues_t's "font-style"
4080  * attribute is set.
4081  */
4082 LIBSBML_EXTERN
4083 int
DefaultValues_isSetFontStyle(const DefaultValues_t * dv)4084 DefaultValues_isSetFontStyle(const DefaultValues_t * dv)
4085 {
4086   return (dv != NULL) ? static_cast<int>(dv->isSetFontStyle()) : 0;
4087 }
4088 
4089 
4090 /*
4091  * Predicate returning @c 1 (true) if this DefaultValues_t's "text-anchor"
4092  * attribute is set.
4093  */
4094 LIBSBML_EXTERN
4095 int
DefaultValues_isSetTextAnchor(const DefaultValues_t * dv)4096 DefaultValues_isSetTextAnchor(const DefaultValues_t * dv)
4097 {
4098   return (dv != NULL) ? static_cast<int>(dv->isSetTextAnchor()) : 0;
4099 }
4100 
4101 
4102 /*
4103  * Predicate returning @c 1 (true) if this DefaultValues_t's "vtext-anchor"
4104  * attribute is set.
4105  */
4106 LIBSBML_EXTERN
4107 int
DefaultValues_isSetVtextAnchor(const DefaultValues_t * dv)4108 DefaultValues_isSetVtextAnchor(const DefaultValues_t * dv)
4109 {
4110   return (dv != NULL) ? static_cast<int>(dv->isSetVTextAnchor()) : 0;
4111 }
4112 
4113 
4114 /*
4115  * Predicate returning @c 1 (true) if this DefaultValues_t's "startHead"
4116  * attribute is set.
4117  */
4118 LIBSBML_EXTERN
4119 int
DefaultValues_isSetStartHead(const DefaultValues_t * dv)4120 DefaultValues_isSetStartHead(const DefaultValues_t * dv)
4121 {
4122   return (dv != NULL) ? static_cast<int>(dv->isSetStartHead()) : 0;
4123 }
4124 
4125 
4126 /*
4127  * Predicate returning @c 1 (true) if this DefaultValues_t's "endHead"
4128  * attribute is set.
4129  */
4130 LIBSBML_EXTERN
4131 int
DefaultValues_isSetEndHead(const DefaultValues_t * dv)4132 DefaultValues_isSetEndHead(const DefaultValues_t * dv)
4133 {
4134   return (dv != NULL) ? static_cast<int>(dv->isSetEndHead()) : 0;
4135 }
4136 
4137 
4138 /*
4139  * Predicate returning @c 1 (true) if this DefaultValues_t's
4140  * "enableRotationalMapping" attribute is set.
4141  */
4142 LIBSBML_EXTERN
4143 int
DefaultValues_isSetEnableRotationalMapping(const DefaultValues_t * dv)4144 DefaultValues_isSetEnableRotationalMapping(const DefaultValues_t * dv)
4145 {
4146   return (dv != NULL) ? static_cast<int>(dv->isSetEnableRotationalMapping()) :
4147     0;
4148 }
4149 
4150 
4151 /*
4152  * Sets the value of the "backgroundColor" attribute of this DefaultValues_t.
4153  */
4154 LIBSBML_EXTERN
4155 int
DefaultValues_setBackgroundColor(DefaultValues_t * dv,const char * backgroundColor)4156 DefaultValues_setBackgroundColor(DefaultValues_t * dv,
4157                                  const char * backgroundColor)
4158 {
4159   return (dv != NULL) ? dv->setBackgroundColor(backgroundColor) :
4160     LIBSBML_INVALID_OBJECT;
4161 }
4162 
4163 
4164 /*
4165  * Sets the value of the "spreadMethod" attribute of this DefaultValues_t.
4166  */
4167 LIBSBML_EXTERN
4168 int
DefaultValues_setSpreadMethod(DefaultValues_t * dv,GradientSpreadMethod_t spreadMethod)4169 DefaultValues_setSpreadMethod(DefaultValues_t * dv,
4170                               GradientSpreadMethod_t spreadMethod)
4171 {
4172   return (dv != NULL) ? dv->setSpreadMethod(spreadMethod) :
4173     LIBSBML_INVALID_OBJECT;
4174 }
4175 
4176 
4177 /*
4178  * Sets the value of the "spreadMethod" attribute of this DefaultValues_t.
4179  */
4180 LIBSBML_EXTERN
4181 int
DefaultValues_setSpreadMethodAsString(DefaultValues_t * dv,const char * spreadMethod)4182 DefaultValues_setSpreadMethodAsString(DefaultValues_t * dv,
4183                                       const char * spreadMethod)
4184 {
4185   return (dv != NULL) ? dv->setSpreadMethod(spreadMethod):
4186     LIBSBML_INVALID_OBJECT;
4187 }
4188 
4189 
4190 /*
4191  * Sets the value of the "fill" attribute of this DefaultValues_t.
4192  */
4193 LIBSBML_EXTERN
4194 int
DefaultValues_setFill(DefaultValues_t * dv,const char * fill)4195 DefaultValues_setFill(DefaultValues_t * dv, const char * fill)
4196 {
4197   return (dv != NULL) ? dv->setFill(fill) : LIBSBML_INVALID_OBJECT;
4198 }
4199 
4200 
4201 /*
4202  * Sets the value of the "fill-rule" attribute of this DefaultValues_t.
4203  */
4204 LIBSBML_EXTERN
4205 int
DefaultValues_setFillRule(DefaultValues_t * dv,FillRule_t fillRule)4206 DefaultValues_setFillRule(DefaultValues_t * dv, FillRule_t fillRule)
4207 {
4208   return (dv != NULL) ? dv->setFillRule(fillRule) : LIBSBML_INVALID_OBJECT;
4209 }
4210 
4211 
4212 /*
4213  * Sets the value of the "fill-rule" attribute of this DefaultValues_t.
4214  */
4215 LIBSBML_EXTERN
4216 int
DefaultValues_setFillRuleAsString(DefaultValues_t * dv,const char * fillRule)4217 DefaultValues_setFillRuleAsString(DefaultValues_t * dv, const char * fillRule)
4218 {
4219   return (dv != NULL) ? dv->setFillRule(fillRule): LIBSBML_INVALID_OBJECT;
4220 }
4221 
4222 
4223 /*
4224  * Sets the value of the "stroke" attribute of this DefaultValues_t.
4225  */
4226 LIBSBML_EXTERN
4227 int
DefaultValues_setStroke(DefaultValues_t * dv,const char * stroke)4228 DefaultValues_setStroke(DefaultValues_t * dv, const char * stroke)
4229 {
4230   return (dv != NULL) ? dv->setStroke(stroke) : LIBSBML_INVALID_OBJECT;
4231 }
4232 
4233 
4234 /*
4235  * Sets the value of the "stroke-width" attribute of this DefaultValues_t.
4236  */
4237 LIBSBML_EXTERN
4238 int
DefaultValues_setStrokeWidth(DefaultValues_t * dv,double strokeWidth)4239 DefaultValues_setStrokeWidth(DefaultValues_t * dv, double strokeWidth)
4240 {
4241   return (dv != NULL) ? dv->setStrokeWidth(strokeWidth) :
4242     LIBSBML_INVALID_OBJECT;
4243 }
4244 
4245 
4246 /*
4247  * Sets the value of the "font-family" attribute of this DefaultValues_t.
4248  */
4249 LIBSBML_EXTERN
4250 int
DefaultValues_setFontFamily(DefaultValues_t * dv,const char * fontFamily)4251 DefaultValues_setFontFamily(DefaultValues_t * dv, const char * fontFamily)
4252 {
4253   return (dv != NULL) ? dv->setFontFamily(fontFamily) : LIBSBML_INVALID_OBJECT;
4254 }
4255 
4256 
4257 /*
4258  * Sets the value of the "font-weight" attribute of this DefaultValues_t.
4259  */
4260 LIBSBML_EXTERN
4261 int
DefaultValues_setFontWeight(DefaultValues_t * dv,FontWeight_t fontWeight)4262 DefaultValues_setFontWeight(DefaultValues_t * dv, FontWeight_t fontWeight)
4263 {
4264   return (dv != NULL) ? dv->setFontWeight(fontWeight) : LIBSBML_INVALID_OBJECT;
4265 }
4266 
4267 
4268 /*
4269  * Sets the value of the "font-weight" attribute of this DefaultValues_t.
4270  */
4271 LIBSBML_EXTERN
4272 int
DefaultValues_setFontWeightAsString(DefaultValues_t * dv,const char * fontWeight)4273 DefaultValues_setFontWeightAsString(DefaultValues_t * dv,
4274                                     const char * fontWeight)
4275 {
4276   return (dv != NULL) ? dv->setFontWeight(fontWeight): LIBSBML_INVALID_OBJECT;
4277 }
4278 
4279 
4280 /*
4281  * Sets the value of the "font-style" attribute of this DefaultValues_t.
4282  */
4283 LIBSBML_EXTERN
4284 int
DefaultValues_setFontStyle(DefaultValues_t * dv,FontStyle_t fontStyle)4285 DefaultValues_setFontStyle(DefaultValues_t * dv, FontStyle_t fontStyle)
4286 {
4287   return (dv != NULL) ? dv->setFontStyle(fontStyle) : LIBSBML_INVALID_OBJECT;
4288 }
4289 
4290 
4291 /*
4292  * Sets the value of the "font-style" attribute of this DefaultValues_t.
4293  */
4294 LIBSBML_EXTERN
4295 int
DefaultValues_setFontStyleAsString(DefaultValues_t * dv,const char * fontStyle)4296 DefaultValues_setFontStyleAsString(DefaultValues_t * dv,
4297                                    const char * fontStyle)
4298 {
4299   return (dv != NULL) ? dv->setFontStyle(fontStyle): LIBSBML_INVALID_OBJECT;
4300 }
4301 
4302 
4303 /*
4304  * Sets the value of the "text-anchor" attribute of this DefaultValues_t.
4305  */
4306 LIBSBML_EXTERN
4307 int
DefaultValues_setTextAnchor(DefaultValues_t * dv,HTextAnchor_t textAnchor)4308 DefaultValues_setTextAnchor(DefaultValues_t * dv, HTextAnchor_t textAnchor)
4309 {
4310   return (dv != NULL) ? dv->setTextAnchor(textAnchor) : LIBSBML_INVALID_OBJECT;
4311 }
4312 
4313 
4314 /*
4315  * Sets the value of the "text-anchor" attribute of this DefaultValues_t.
4316  */
4317 LIBSBML_EXTERN
4318 int
DefaultValues_setTextAnchorAsString(DefaultValues_t * dv,const char * textAnchor)4319 DefaultValues_setTextAnchorAsString(DefaultValues_t * dv,
4320                                     const char * textAnchor)
4321 {
4322   return (dv != NULL) ? dv->setTextAnchor(textAnchor): LIBSBML_INVALID_OBJECT;
4323 }
4324 
4325 
4326 /*
4327  * Sets the value of the "vtext-anchor" attribute of this DefaultValues_t.
4328  */
4329 LIBSBML_EXTERN
4330 int
DefaultValues_setVtextAnchor(DefaultValues_t * dv,VTextAnchor_t vtextAnchor)4331 DefaultValues_setVtextAnchor(DefaultValues_t * dv, VTextAnchor_t vtextAnchor)
4332 {
4333   return (dv != NULL) ? dv->setVTextAnchor(vtextAnchor) :
4334     LIBSBML_INVALID_OBJECT;
4335 }
4336 
4337 
4338 /*
4339  * Sets the value of the "vtext-anchor" attribute of this DefaultValues_t.
4340  */
4341 LIBSBML_EXTERN
4342 int
DefaultValues_setVtextAnchorAsString(DefaultValues_t * dv,const char * vtextAnchor)4343 DefaultValues_setVtextAnchorAsString(DefaultValues_t * dv,
4344                                      const char * vtextAnchor)
4345 {
4346   return (dv != NULL) ? dv->setVTextAnchor(vtextAnchor):
4347     LIBSBML_INVALID_OBJECT;
4348 }
4349 
4350 
4351 /*
4352  * Sets the value of the "startHead" attribute of this DefaultValues_t.
4353  */
4354 LIBSBML_EXTERN
4355 int
DefaultValues_setStartHead(DefaultValues_t * dv,const char * startHead)4356 DefaultValues_setStartHead(DefaultValues_t * dv, const char * startHead)
4357 {
4358   return (dv != NULL) ? dv->setStartHead(startHead) : LIBSBML_INVALID_OBJECT;
4359 }
4360 
4361 
4362 /*
4363  * Sets the value of the "endHead" attribute of this DefaultValues_t.
4364  */
4365 LIBSBML_EXTERN
4366 int
DefaultValues_setEndHead(DefaultValues_t * dv,const char * endHead)4367 DefaultValues_setEndHead(DefaultValues_t * dv, const char * endHead)
4368 {
4369   return (dv != NULL) ? dv->setEndHead(endHead) : LIBSBML_INVALID_OBJECT;
4370 }
4371 
4372 
4373 /*
4374  * Sets the value of the "enableRotationalMapping" attribute of this
4375  * DefaultValues_t.
4376  */
4377 LIBSBML_EXTERN
4378 int
DefaultValues_setEnableRotationalMapping(DefaultValues_t * dv,int enableRotationalMapping)4379 DefaultValues_setEnableRotationalMapping(DefaultValues_t * dv,
4380                                          int enableRotationalMapping)
4381 {
4382   return (dv != NULL) ? dv->setEnableRotationalMapping(enableRotationalMapping)
4383     : LIBSBML_INVALID_OBJECT;
4384 }
4385 
4386 
4387 /*
4388  * Unsets the value of the "backgroundColor" attribute of this DefaultValues_t.
4389  */
4390 LIBSBML_EXTERN
4391 int
DefaultValues_unsetBackgroundColor(DefaultValues_t * dv)4392 DefaultValues_unsetBackgroundColor(DefaultValues_t * dv)
4393 {
4394   return (dv != NULL) ? dv->unsetBackgroundColor() : LIBSBML_INVALID_OBJECT;
4395 }
4396 
4397 
4398 /*
4399  * Unsets the value of the "spreadMethod" attribute of this DefaultValues_t.
4400  */
4401 LIBSBML_EXTERN
4402 int
DefaultValues_unsetSpreadMethod(DefaultValues_t * dv)4403 DefaultValues_unsetSpreadMethod(DefaultValues_t * dv)
4404 {
4405   return (dv != NULL) ? dv->unsetSpreadMethod() : LIBSBML_INVALID_OBJECT;
4406 }
4407 
4408 
4409 /*
4410  * Unsets the value of the "fill" attribute of this DefaultValues_t.
4411  */
4412 LIBSBML_EXTERN
4413 int
DefaultValues_unsetFill(DefaultValues_t * dv)4414 DefaultValues_unsetFill(DefaultValues_t * dv)
4415 {
4416   return (dv != NULL) ? dv->unsetFill() : LIBSBML_INVALID_OBJECT;
4417 }
4418 
4419 
4420 /*
4421  * Unsets the value of the "fill-rule" attribute of this DefaultValues_t.
4422  */
4423 LIBSBML_EXTERN
4424 int
DefaultValues_unsetFillRule(DefaultValues_t * dv)4425 DefaultValues_unsetFillRule(DefaultValues_t * dv)
4426 {
4427   return (dv != NULL) ? dv->unsetFillRule() : LIBSBML_INVALID_OBJECT;
4428 }
4429 
4430 
4431 /*
4432  * Unsets the value of the "stroke" attribute of this DefaultValues_t.
4433  */
4434 LIBSBML_EXTERN
4435 int
DefaultValues_unsetStroke(DefaultValues_t * dv)4436 DefaultValues_unsetStroke(DefaultValues_t * dv)
4437 {
4438   return (dv != NULL) ? dv->unsetStroke() : LIBSBML_INVALID_OBJECT;
4439 }
4440 
4441 
4442 /*
4443  * Unsets the value of the "stroke-width" attribute of this DefaultValues_t.
4444  */
4445 LIBSBML_EXTERN
4446 int
DefaultValues_unsetStrokeWidth(DefaultValues_t * dv)4447 DefaultValues_unsetStrokeWidth(DefaultValues_t * dv)
4448 {
4449   return (dv != NULL) ? dv->unsetStrokeWidth() : LIBSBML_INVALID_OBJECT;
4450 }
4451 
4452 
4453 /*
4454  * Unsets the value of the "font-family" attribute of this DefaultValues_t.
4455  */
4456 LIBSBML_EXTERN
4457 int
DefaultValues_unsetFontFamily(DefaultValues_t * dv)4458 DefaultValues_unsetFontFamily(DefaultValues_t * dv)
4459 {
4460   return (dv != NULL) ? dv->unsetFontFamily() : LIBSBML_INVALID_OBJECT;
4461 }
4462 
4463 
4464 /*
4465  * Unsets the value of the "font-weight" attribute of this DefaultValues_t.
4466  */
4467 LIBSBML_EXTERN
4468 int
DefaultValues_unsetFontWeight(DefaultValues_t * dv)4469 DefaultValues_unsetFontWeight(DefaultValues_t * dv)
4470 {
4471   return (dv != NULL) ? dv->unsetFontWeight() : LIBSBML_INVALID_OBJECT;
4472 }
4473 
4474 
4475 /*
4476  * Unsets the value of the "font-style" attribute of this DefaultValues_t.
4477  */
4478 LIBSBML_EXTERN
4479 int
DefaultValues_unsetFontStyle(DefaultValues_t * dv)4480 DefaultValues_unsetFontStyle(DefaultValues_t * dv)
4481 {
4482   return (dv != NULL) ? dv->unsetFontStyle() : LIBSBML_INVALID_OBJECT;
4483 }
4484 
4485 
4486 /*
4487  * Unsets the value of the "text-anchor" attribute of this DefaultValues_t.
4488  */
4489 LIBSBML_EXTERN
4490 int
DefaultValues_unsetTextAnchor(DefaultValues_t * dv)4491 DefaultValues_unsetTextAnchor(DefaultValues_t * dv)
4492 {
4493   return (dv != NULL) ? dv->unsetTextAnchor() : LIBSBML_INVALID_OBJECT;
4494 }
4495 
4496 
4497 /*
4498  * Unsets the value of the "vtext-anchor" attribute of this DefaultValues_t.
4499  */
4500 LIBSBML_EXTERN
4501 int
DefaultValues_unsetVtextAnchor(DefaultValues_t * dv)4502 DefaultValues_unsetVtextAnchor(DefaultValues_t * dv)
4503 {
4504   return (dv != NULL) ? dv->unsetVTextAnchor() : LIBSBML_INVALID_OBJECT;
4505 }
4506 
4507 
4508 /*
4509  * Unsets the value of the "startHead" attribute of this DefaultValues_t.
4510  */
4511 LIBSBML_EXTERN
4512 int
DefaultValues_unsetStartHead(DefaultValues_t * dv)4513 DefaultValues_unsetStartHead(DefaultValues_t * dv)
4514 {
4515   return (dv != NULL) ? dv->unsetStartHead() : LIBSBML_INVALID_OBJECT;
4516 }
4517 
4518 
4519 /*
4520  * Unsets the value of the "endHead" attribute of this DefaultValues_t.
4521  */
4522 LIBSBML_EXTERN
4523 int
DefaultValues_unsetEndHead(DefaultValues_t * dv)4524 DefaultValues_unsetEndHead(DefaultValues_t * dv)
4525 {
4526   return (dv != NULL) ? dv->unsetEndHead() : LIBSBML_INVALID_OBJECT;
4527 }
4528 
4529 
4530 /*
4531  * Unsets the value of the "enableRotationalMapping" attribute of this
4532  * DefaultValues_t.
4533  */
4534 LIBSBML_EXTERN
4535 int
DefaultValues_unsetEnableRotationalMapping(DefaultValues_t * dv)4536 DefaultValues_unsetEnableRotationalMapping(DefaultValues_t * dv)
4537 {
4538   return (dv != NULL) ? dv->unsetEnableRotationalMapping() :
4539     LIBSBML_INVALID_OBJECT;
4540 }
4541 
4542 
4543 /*
4544  * Returns the value of the "linearGradient_x1" element of this
4545  * DefaultValues_t.
4546  */
4547 LIBSBML_EXTERN
4548 const RelAbsVector_t*
DefaultValues_getLinearGradient_x1(const DefaultValues_t * dv)4549 DefaultValues_getLinearGradient_x1(const DefaultValues_t * dv)
4550 {
4551   if (dv == NULL)
4552   {
4553     return NULL;
4554   }
4555 
4556   return (RelAbsVector_t*)(&(dv->getLinearGradient_x1()));
4557 }
4558 
4559 
4560 /*
4561  * Returns the value of the "linearGradient_y1" element of this
4562  * DefaultValues_t.
4563  */
4564 LIBSBML_EXTERN
4565 const RelAbsVector_t*
DefaultValues_getLinearGradient_y1(const DefaultValues_t * dv)4566 DefaultValues_getLinearGradient_y1(const DefaultValues_t * dv)
4567 {
4568   if (dv == NULL)
4569   {
4570     return NULL;
4571   }
4572 
4573   return (RelAbsVector_t*)(&(dv->getLinearGradient_y1()));
4574 }
4575 
4576 
4577 /*
4578  * Returns the value of the "linearGradient_z1" element of this
4579  * DefaultValues_t.
4580  */
4581 LIBSBML_EXTERN
4582 const RelAbsVector_t*
DefaultValues_getLinearGradient_z1(const DefaultValues_t * dv)4583 DefaultValues_getLinearGradient_z1(const DefaultValues_t * dv)
4584 {
4585   if (dv == NULL)
4586   {
4587     return NULL;
4588   }
4589 
4590   return (RelAbsVector_t*)(&(dv->getLinearGradient_z1()));
4591 }
4592 
4593 
4594 /*
4595  * Returns the value of the "linearGradient_x2" element of this
4596  * DefaultValues_t.
4597  */
4598 LIBSBML_EXTERN
4599 const RelAbsVector_t*
DefaultValues_getLinearGradient_x2(const DefaultValues_t * dv)4600 DefaultValues_getLinearGradient_x2(const DefaultValues_t * dv)
4601 {
4602   if (dv == NULL)
4603   {
4604     return NULL;
4605   }
4606 
4607   return (RelAbsVector_t*)(&(dv->getLinearGradient_x2()));
4608 }
4609 
4610 
4611 /*
4612  * Returns the value of the "linearGradient_y2" element of this
4613  * DefaultValues_t.
4614  */
4615 LIBSBML_EXTERN
4616 const RelAbsVector_t*
DefaultValues_getLinearGradient_y2(const DefaultValues_t * dv)4617 DefaultValues_getLinearGradient_y2(const DefaultValues_t * dv)
4618 {
4619   if (dv == NULL)
4620   {
4621     return NULL;
4622   }
4623 
4624   return (RelAbsVector_t*)(&(dv->getLinearGradient_y2()));
4625 }
4626 
4627 
4628 /*
4629  * Returns the value of the "linearGradient_z2" element of this
4630  * DefaultValues_t.
4631  */
4632 LIBSBML_EXTERN
4633 const RelAbsVector_t*
DefaultValues_getLinearGradient_z2(const DefaultValues_t * dv)4634 DefaultValues_getLinearGradient_z2(const DefaultValues_t * dv)
4635 {
4636   if (dv == NULL)
4637   {
4638     return NULL;
4639   }
4640 
4641   return (RelAbsVector_t*)(&(dv->getLinearGradient_z2()));
4642 }
4643 
4644 
4645 /*
4646  * Returns the value of the "radialGradient_cx" element of this
4647  * DefaultValues_t.
4648  */
4649 LIBSBML_EXTERN
4650 const RelAbsVector_t*
DefaultValues_getRadialGradient_cx(const DefaultValues_t * dv)4651 DefaultValues_getRadialGradient_cx(const DefaultValues_t * dv)
4652 {
4653   if (dv == NULL)
4654   {
4655     return NULL;
4656   }
4657 
4658   return (RelAbsVector_t*)(&(dv->getRadialGradient_cx()));
4659 }
4660 
4661 
4662 /*
4663  * Returns the value of the "radialGradient_cy" element of this
4664  * DefaultValues_t.
4665  */
4666 LIBSBML_EXTERN
4667 const RelAbsVector_t*
DefaultValues_getRadialGradient_cy(const DefaultValues_t * dv)4668 DefaultValues_getRadialGradient_cy(const DefaultValues_t * dv)
4669 {
4670   if (dv == NULL)
4671   {
4672     return NULL;
4673   }
4674 
4675   return (RelAbsVector_t*)(&(dv->getRadialGradient_cy()));
4676 }
4677 
4678 
4679 /*
4680  * Returns the value of the "radialGradient_cz" element of this
4681  * DefaultValues_t.
4682  */
4683 LIBSBML_EXTERN
4684 const RelAbsVector_t*
DefaultValues_getRadialGradient_cz(const DefaultValues_t * dv)4685 DefaultValues_getRadialGradient_cz(const DefaultValues_t * dv)
4686 {
4687   if (dv == NULL)
4688   {
4689     return NULL;
4690   }
4691 
4692   return (RelAbsVector_t*)(&(dv->getRadialGradient_cz()));
4693 }
4694 
4695 
4696 /*
4697  * Returns the value of the "radialGradient_r" element of this DefaultValues_t.
4698  */
4699 LIBSBML_EXTERN
4700 const RelAbsVector_t*
DefaultValues_getRadialGradient_r(const DefaultValues_t * dv)4701 DefaultValues_getRadialGradient_r(const DefaultValues_t * dv)
4702 {
4703   if (dv == NULL)
4704   {
4705     return NULL;
4706   }
4707 
4708   return (RelAbsVector_t*)(&(dv->getRadialGradient_r()));
4709 }
4710 
4711 
4712 /*
4713  * Returns the value of the "radialGradient_fx" element of this
4714  * DefaultValues_t.
4715  */
4716 LIBSBML_EXTERN
4717 const RelAbsVector_t*
DefaultValues_getRadialGradient_fx(const DefaultValues_t * dv)4718 DefaultValues_getRadialGradient_fx(const DefaultValues_t * dv)
4719 {
4720   if (dv == NULL)
4721   {
4722     return NULL;
4723   }
4724 
4725   return (RelAbsVector_t*)(&(dv->getRadialGradient_fx()));
4726 }
4727 
4728 
4729 /*
4730  * Returns the value of the "radialGradient_fy" element of this
4731  * DefaultValues_t.
4732  */
4733 LIBSBML_EXTERN
4734 const RelAbsVector_t*
DefaultValues_getRadialGradient_fy(const DefaultValues_t * dv)4735 DefaultValues_getRadialGradient_fy(const DefaultValues_t * dv)
4736 {
4737   if (dv == NULL)
4738   {
4739     return NULL;
4740   }
4741 
4742   return (RelAbsVector_t*)(&(dv->getRadialGradient_fy()));
4743 }
4744 
4745 
4746 /*
4747  * Returns the value of the "radialGradient_fz" element of this
4748  * DefaultValues_t.
4749  */
4750 LIBSBML_EXTERN
4751 const RelAbsVector_t*
DefaultValues_getRadialGradient_fz(const DefaultValues_t * dv)4752 DefaultValues_getRadialGradient_fz(const DefaultValues_t * dv)
4753 {
4754   if (dv == NULL)
4755   {
4756     return NULL;
4757   }
4758 
4759   return (RelAbsVector_t*)(&(dv->getRadialGradient_fz()));
4760 }
4761 
4762 
4763 /*
4764  * Returns the value of the "default_z" element of this DefaultValues_t.
4765  */
4766 LIBSBML_EXTERN
4767 const RelAbsVector_t*
DefaultValues_getDefault_z(const DefaultValues_t * dv)4768 DefaultValues_getDefault_z(const DefaultValues_t * dv)
4769 {
4770   if (dv == NULL)
4771   {
4772     return NULL;
4773   }
4774 
4775   return (RelAbsVector_t*)(&(dv->getDefault_z()));
4776 }
4777 
4778 
4779 /*
4780  * Returns the value of the "font-size" element of this DefaultValues_t.
4781  */
4782 LIBSBML_EXTERN
4783 const RelAbsVector_t*
DefaultValues_getFontSize(const DefaultValues_t * dv)4784 DefaultValues_getFontSize(const DefaultValues_t * dv)
4785 {
4786   if (dv == NULL)
4787   {
4788     return NULL;
4789   }
4790 
4791   return (RelAbsVector_t*)(&(dv->getFontSize()));
4792 }
4793 
4794 
4795 /*
4796  * Predicate returning @c 1 (true) if this DefaultValues_t's
4797  * "linearGradient_x1" element is set.
4798  */
4799 LIBSBML_EXTERN
4800 int
DefaultValues_isSetLinearGradient_x1(const DefaultValues_t * dv)4801 DefaultValues_isSetLinearGradient_x1(const DefaultValues_t * dv)
4802 {
4803   return (dv != NULL) ? static_cast<int>(dv->isSetLinearGradient_x1()) : 0;
4804 }
4805 
4806 
4807 /*
4808  * Predicate returning @c 1 (true) if this DefaultValues_t's
4809  * "linearGradient_y1" element is set.
4810  */
4811 LIBSBML_EXTERN
4812 int
DefaultValues_isSetLinearGradient_y1(const DefaultValues_t * dv)4813 DefaultValues_isSetLinearGradient_y1(const DefaultValues_t * dv)
4814 {
4815   return (dv != NULL) ? static_cast<int>(dv->isSetLinearGradient_y1()) : 0;
4816 }
4817 
4818 
4819 /*
4820  * Predicate returning @c 1 (true) if this DefaultValues_t's
4821  * "linearGradient_z1" element is set.
4822  */
4823 LIBSBML_EXTERN
4824 int
DefaultValues_isSetLinearGradient_z1(const DefaultValues_t * dv)4825 DefaultValues_isSetLinearGradient_z1(const DefaultValues_t * dv)
4826 {
4827   return (dv != NULL) ? static_cast<int>(dv->isSetLinearGradient_z1()) : 0;
4828 }
4829 
4830 
4831 /*
4832  * Predicate returning @c 1 (true) if this DefaultValues_t's
4833  * "linearGradient_x2" element is set.
4834  */
4835 LIBSBML_EXTERN
4836 int
DefaultValues_isSetLinearGradient_x2(const DefaultValues_t * dv)4837 DefaultValues_isSetLinearGradient_x2(const DefaultValues_t * dv)
4838 {
4839   return (dv != NULL) ? static_cast<int>(dv->isSetLinearGradient_x2()) : 0;
4840 }
4841 
4842 
4843 /*
4844  * Predicate returning @c 1 (true) if this DefaultValues_t's
4845  * "linearGradient_y2" element is set.
4846  */
4847 LIBSBML_EXTERN
4848 int
DefaultValues_isSetLinearGradient_y2(const DefaultValues_t * dv)4849 DefaultValues_isSetLinearGradient_y2(const DefaultValues_t * dv)
4850 {
4851   return (dv != NULL) ? static_cast<int>(dv->isSetLinearGradient_y2()) : 0;
4852 }
4853 
4854 
4855 /*
4856  * Predicate returning @c 1 (true) if this DefaultValues_t's
4857  * "linearGradient_z2" element is set.
4858  */
4859 LIBSBML_EXTERN
4860 int
DefaultValues_isSetLinearGradient_z2(const DefaultValues_t * dv)4861 DefaultValues_isSetLinearGradient_z2(const DefaultValues_t * dv)
4862 {
4863   return (dv != NULL) ? static_cast<int>(dv->isSetLinearGradient_z2()) : 0;
4864 }
4865 
4866 
4867 /*
4868  * Predicate returning @c 1 (true) if this DefaultValues_t's
4869  * "radialGradient_cx" element is set.
4870  */
4871 LIBSBML_EXTERN
4872 int
DefaultValues_isSetRadialGradient_cx(const DefaultValues_t * dv)4873 DefaultValues_isSetRadialGradient_cx(const DefaultValues_t * dv)
4874 {
4875   return (dv != NULL) ? static_cast<int>(dv->isSetRadialGradient_cx()) : 0;
4876 }
4877 
4878 
4879 /*
4880  * Predicate returning @c 1 (true) if this DefaultValues_t's
4881  * "radialGradient_cy" element is set.
4882  */
4883 LIBSBML_EXTERN
4884 int
DefaultValues_isSetRadialGradient_cy(const DefaultValues_t * dv)4885 DefaultValues_isSetRadialGradient_cy(const DefaultValues_t * dv)
4886 {
4887   return (dv != NULL) ? static_cast<int>(dv->isSetRadialGradient_cy()) : 0;
4888 }
4889 
4890 
4891 /*
4892  * Predicate returning @c 1 (true) if this DefaultValues_t's
4893  * "radialGradient_cz" element is set.
4894  */
4895 LIBSBML_EXTERN
4896 int
DefaultValues_isSetRadialGradient_cz(const DefaultValues_t * dv)4897 DefaultValues_isSetRadialGradient_cz(const DefaultValues_t * dv)
4898 {
4899   return (dv != NULL) ? static_cast<int>(dv->isSetRadialGradient_cz()) : 0;
4900 }
4901 
4902 
4903 /*
4904  * Predicate returning @c 1 (true) if this DefaultValues_t's "radialGradient_r"
4905  * element is set.
4906  */
4907 LIBSBML_EXTERN
4908 int
DefaultValues_isSetRadialGradient_r(const DefaultValues_t * dv)4909 DefaultValues_isSetRadialGradient_r(const DefaultValues_t * dv)
4910 {
4911   return (dv != NULL) ? static_cast<int>(dv->isSetRadialGradient_r()) : 0;
4912 }
4913 
4914 
4915 /*
4916  * Predicate returning @c 1 (true) if this DefaultValues_t's
4917  * "radialGradient_fx" element is set.
4918  */
4919 LIBSBML_EXTERN
4920 int
DefaultValues_isSetRadialGradient_fx(const DefaultValues_t * dv)4921 DefaultValues_isSetRadialGradient_fx(const DefaultValues_t * dv)
4922 {
4923   return (dv != NULL) ? static_cast<int>(dv->isSetRadialGradient_fx()) : 0;
4924 }
4925 
4926 
4927 /*
4928  * Predicate returning @c 1 (true) if this DefaultValues_t's
4929  * "radialGradient_fy" element is set.
4930  */
4931 LIBSBML_EXTERN
4932 int
DefaultValues_isSetRadialGradient_fy(const DefaultValues_t * dv)4933 DefaultValues_isSetRadialGradient_fy(const DefaultValues_t * dv)
4934 {
4935   return (dv != NULL) ? static_cast<int>(dv->isSetRadialGradient_fy()) : 0;
4936 }
4937 
4938 
4939 /*
4940  * Predicate returning @c 1 (true) if this DefaultValues_t's
4941  * "radialGradient_fz" element is set.
4942  */
4943 LIBSBML_EXTERN
4944 int
DefaultValues_isSetRadialGradient_fz(const DefaultValues_t * dv)4945 DefaultValues_isSetRadialGradient_fz(const DefaultValues_t * dv)
4946 {
4947   return (dv != NULL) ? static_cast<int>(dv->isSetRadialGradient_fz()) : 0;
4948 }
4949 
4950 
4951 /*
4952  * Predicate returning @c 1 (true) if this DefaultValues_t's "default_z"
4953  * element is set.
4954  */
4955 LIBSBML_EXTERN
4956 int
DefaultValues_isSetDefault_z(const DefaultValues_t * dv)4957 DefaultValues_isSetDefault_z(const DefaultValues_t * dv)
4958 {
4959   return (dv != NULL) ? static_cast<int>(dv->isSetDefault_z()) : 0;
4960 }
4961 
4962 
4963 /*
4964  * Predicate returning @c 1 (true) if this DefaultValues_t's "font-size"
4965  * element is set.
4966  */
4967 LIBSBML_EXTERN
4968 int
DefaultValues_isSetFontSize(const DefaultValues_t * dv)4969 DefaultValues_isSetFontSize(const DefaultValues_t * dv)
4970 {
4971   return (dv != NULL) ? static_cast<int>(dv->isSetFontSize()) : 0;
4972 }
4973 
4974 
4975 /*
4976  * Sets the value of the "linearGradient_x1" element of this DefaultValues_t.
4977  */
4978 LIBSBML_EXTERN
4979 int
DefaultValues_setLinearGradient_x1(DefaultValues_t * dv,const RelAbsVector_t * linearGradient_x1)4980 DefaultValues_setLinearGradient_x1(DefaultValues_t * dv,
4981                                    const RelAbsVector_t* linearGradient_x1)
4982 {
4983   return (dv != NULL) ? dv->setLinearGradient_x1(*linearGradient_x1) :
4984     LIBSBML_INVALID_OBJECT;
4985 }
4986 
4987 
4988 /*
4989  * Sets the value of the "linearGradient_y1" element of this DefaultValues_t.
4990  */
4991 LIBSBML_EXTERN
4992 int
DefaultValues_setLinearGradient_y1(DefaultValues_t * dv,const RelAbsVector_t * linearGradient_y1)4993 DefaultValues_setLinearGradient_y1(DefaultValues_t * dv,
4994                                    const RelAbsVector_t* linearGradient_y1)
4995 {
4996   return (dv != NULL) ? dv->setLinearGradient_y1(*linearGradient_y1) :
4997     LIBSBML_INVALID_OBJECT;
4998 }
4999 
5000 
5001 /*
5002  * Sets the value of the "linearGradient_z1" element of this DefaultValues_t.
5003  */
5004 LIBSBML_EXTERN
5005 int
DefaultValues_setLinearGradient_z1(DefaultValues_t * dv,const RelAbsVector_t * linearGradient_z1)5006 DefaultValues_setLinearGradient_z1(DefaultValues_t * dv,
5007                                    const RelAbsVector_t* linearGradient_z1)
5008 {
5009   return (dv != NULL) ? dv->setLinearGradient_z1(*linearGradient_z1) :
5010     LIBSBML_INVALID_OBJECT;
5011 }
5012 
5013 
5014 /*
5015  * Sets the value of the "linearGradient_x2" element of this DefaultValues_t.
5016  */
5017 LIBSBML_EXTERN
5018 int
DefaultValues_setLinearGradient_x2(DefaultValues_t * dv,const RelAbsVector_t * linearGradient_x2)5019 DefaultValues_setLinearGradient_x2(DefaultValues_t * dv,
5020                                    const RelAbsVector_t* linearGradient_x2)
5021 {
5022   return (dv != NULL) ? dv->setLinearGradient_x2(*linearGradient_x2) :
5023     LIBSBML_INVALID_OBJECT;
5024 }
5025 
5026 
5027 /*
5028  * Sets the value of the "linearGradient_y2" element of this DefaultValues_t.
5029  */
5030 LIBSBML_EXTERN
5031 int
DefaultValues_setLinearGradient_y2(DefaultValues_t * dv,const RelAbsVector_t * linearGradient_y2)5032 DefaultValues_setLinearGradient_y2(DefaultValues_t * dv,
5033                                    const RelAbsVector_t* linearGradient_y2)
5034 {
5035   return (dv != NULL) ? dv->setLinearGradient_y2(*linearGradient_y2) :
5036     LIBSBML_INVALID_OBJECT;
5037 }
5038 
5039 
5040 /*
5041  * Sets the value of the "linearGradient_z2" element of this DefaultValues_t.
5042  */
5043 LIBSBML_EXTERN
5044 int
DefaultValues_setLinearGradient_z2(DefaultValues_t * dv,const RelAbsVector_t * linearGradient_z2)5045 DefaultValues_setLinearGradient_z2(DefaultValues_t * dv,
5046                                    const RelAbsVector_t* linearGradient_z2)
5047 {
5048   return (dv != NULL) ? dv->setLinearGradient_z2(*linearGradient_z2) :
5049     LIBSBML_INVALID_OBJECT;
5050 }
5051 
5052 
5053 /*
5054  * Sets the value of the "radialGradient_cx" element of this DefaultValues_t.
5055  */
5056 LIBSBML_EXTERN
5057 int
DefaultValues_setRadialGradient_cx(DefaultValues_t * dv,const RelAbsVector_t * radialGradient_cx)5058 DefaultValues_setRadialGradient_cx(DefaultValues_t * dv,
5059                                    const RelAbsVector_t* radialGradient_cx)
5060 {
5061   return (dv != NULL) ? dv->setRadialGradient_cx(*radialGradient_cx) :
5062     LIBSBML_INVALID_OBJECT;
5063 }
5064 
5065 
5066 /*
5067  * Sets the value of the "radialGradient_cy" element of this DefaultValues_t.
5068  */
5069 LIBSBML_EXTERN
5070 int
DefaultValues_setRadialGradient_cy(DefaultValues_t * dv,const RelAbsVector_t * radialGradient_cy)5071 DefaultValues_setRadialGradient_cy(DefaultValues_t * dv,
5072                                    const RelAbsVector_t* radialGradient_cy)
5073 {
5074   return (dv != NULL) ? dv->setRadialGradient_cy(*radialGradient_cy) :
5075     LIBSBML_INVALID_OBJECT;
5076 }
5077 
5078 
5079 /*
5080  * Sets the value of the "radialGradient_cz" element of this DefaultValues_t.
5081  */
5082 LIBSBML_EXTERN
5083 int
DefaultValues_setRadialGradient_cz(DefaultValues_t * dv,const RelAbsVector_t * radialGradient_cz)5084 DefaultValues_setRadialGradient_cz(DefaultValues_t * dv,
5085                                    const RelAbsVector_t* radialGradient_cz)
5086 {
5087   return (dv != NULL) ? dv->setRadialGradient_cz(*radialGradient_cz) :
5088     LIBSBML_INVALID_OBJECT;
5089 }
5090 
5091 
5092 /*
5093  * Sets the value of the "radialGradient_r" element of this DefaultValues_t.
5094  */
5095 LIBSBML_EXTERN
5096 int
DefaultValues_setRadialGradient_r(DefaultValues_t * dv,const RelAbsVector_t * radialGradient_r)5097 DefaultValues_setRadialGradient_r(DefaultValues_t * dv,
5098                                   const RelAbsVector_t* radialGradient_r)
5099 {
5100   return (dv != NULL) ? dv->setRadialGradient_r(*radialGradient_r) :
5101     LIBSBML_INVALID_OBJECT;
5102 }
5103 
5104 
5105 /*
5106  * Sets the value of the "radialGradient_fx" element of this DefaultValues_t.
5107  */
5108 LIBSBML_EXTERN
5109 int
DefaultValues_setRadialGradient_fx(DefaultValues_t * dv,const RelAbsVector_t * radialGradient_fx)5110 DefaultValues_setRadialGradient_fx(DefaultValues_t * dv,
5111                                    const RelAbsVector_t* radialGradient_fx)
5112 {
5113   return (dv != NULL) ? dv->setRadialGradient_fx(*radialGradient_fx) :
5114     LIBSBML_INVALID_OBJECT;
5115 }
5116 
5117 
5118 /*
5119  * Sets the value of the "radialGradient_fy" element of this DefaultValues_t.
5120  */
5121 LIBSBML_EXTERN
5122 int
DefaultValues_setRadialGradient_fy(DefaultValues_t * dv,const RelAbsVector_t * radialGradient_fy)5123 DefaultValues_setRadialGradient_fy(DefaultValues_t * dv,
5124                                    const RelAbsVector_t* radialGradient_fy)
5125 {
5126   return (dv != NULL) ? dv->setRadialGradient_fy(*radialGradient_fy) :
5127     LIBSBML_INVALID_OBJECT;
5128 }
5129 
5130 
5131 /*
5132  * Sets the value of the "radialGradient_fz" element of this DefaultValues_t.
5133  */
5134 LIBSBML_EXTERN
5135 int
DefaultValues_setRadialGradient_fz(DefaultValues_t * dv,const RelAbsVector_t * radialGradient_fz)5136 DefaultValues_setRadialGradient_fz(DefaultValues_t * dv,
5137                                    const RelAbsVector_t* radialGradient_fz)
5138 {
5139   return (dv != NULL) ? dv->setRadialGradient_fz(*radialGradient_fz) :
5140     LIBSBML_INVALID_OBJECT;
5141 }
5142 
5143 
5144 /*
5145  * Sets the value of the "default_z" element of this DefaultValues_t.
5146  */
5147 LIBSBML_EXTERN
5148 int
DefaultValues_setDefault_z(DefaultValues_t * dv,const RelAbsVector_t * default_z)5149 DefaultValues_setDefault_z(DefaultValues_t * dv,
5150                            const RelAbsVector_t* default_z)
5151 {
5152   return (dv != NULL) ? dv->setDefault_z(*default_z) : LIBSBML_INVALID_OBJECT;
5153 }
5154 
5155 
5156 /*
5157  * Sets the value of the "font-size" element of this DefaultValues_t.
5158  */
5159 LIBSBML_EXTERN
5160 int
DefaultValues_setFontSize(DefaultValues_t * dv,const RelAbsVector_t * fontSize)5161 DefaultValues_setFontSize(DefaultValues_t * dv,
5162                           const RelAbsVector_t* fontSize)
5163 {
5164   return (dv != NULL) ? dv->setFontSize(*fontSize) : LIBSBML_INVALID_OBJECT;
5165 }
5166 
5167 
5168 /*
5169  * Unsets the value of the "linearGradient_x1" element of this DefaultValues_t.
5170  */
5171 LIBSBML_EXTERN
5172 int
DefaultValues_unsetLinearGradient_x1(DefaultValues_t * dv)5173 DefaultValues_unsetLinearGradient_x1(DefaultValues_t * dv)
5174 {
5175   return (dv != NULL) ? dv->unsetLinearGradient_x1() : LIBSBML_INVALID_OBJECT;
5176 }
5177 
5178 
5179 /*
5180  * Unsets the value of the "linearGradient_y1" element of this DefaultValues_t.
5181  */
5182 LIBSBML_EXTERN
5183 int
DefaultValues_unsetLinearGradient_y1(DefaultValues_t * dv)5184 DefaultValues_unsetLinearGradient_y1(DefaultValues_t * dv)
5185 {
5186   return (dv != NULL) ? dv->unsetLinearGradient_y1() : LIBSBML_INVALID_OBJECT;
5187 }
5188 
5189 
5190 /*
5191  * Unsets the value of the "linearGradient_z1" element of this DefaultValues_t.
5192  */
5193 LIBSBML_EXTERN
5194 int
DefaultValues_unsetLinearGradient_z1(DefaultValues_t * dv)5195 DefaultValues_unsetLinearGradient_z1(DefaultValues_t * dv)
5196 {
5197   return (dv != NULL) ? dv->unsetLinearGradient_z1() : LIBSBML_INVALID_OBJECT;
5198 }
5199 
5200 
5201 /*
5202  * Unsets the value of the "linearGradient_x2" element of this DefaultValues_t.
5203  */
5204 LIBSBML_EXTERN
5205 int
DefaultValues_unsetLinearGradient_x2(DefaultValues_t * dv)5206 DefaultValues_unsetLinearGradient_x2(DefaultValues_t * dv)
5207 {
5208   return (dv != NULL) ? dv->unsetLinearGradient_x2() : LIBSBML_INVALID_OBJECT;
5209 }
5210 
5211 
5212 /*
5213  * Unsets the value of the "linearGradient_y2" element of this DefaultValues_t.
5214  */
5215 LIBSBML_EXTERN
5216 int
DefaultValues_unsetLinearGradient_y2(DefaultValues_t * dv)5217 DefaultValues_unsetLinearGradient_y2(DefaultValues_t * dv)
5218 {
5219   return (dv != NULL) ? dv->unsetLinearGradient_y2() : LIBSBML_INVALID_OBJECT;
5220 }
5221 
5222 
5223 /*
5224  * Unsets the value of the "linearGradient_z2" element of this DefaultValues_t.
5225  */
5226 LIBSBML_EXTERN
5227 int
DefaultValues_unsetLinearGradient_z2(DefaultValues_t * dv)5228 DefaultValues_unsetLinearGradient_z2(DefaultValues_t * dv)
5229 {
5230   return (dv != NULL) ? dv->unsetLinearGradient_z2() : LIBSBML_INVALID_OBJECT;
5231 }
5232 
5233 
5234 /*
5235  * Unsets the value of the "radialGradient_cx" element of this DefaultValues_t.
5236  */
5237 LIBSBML_EXTERN
5238 int
DefaultValues_unsetRadialGradient_cx(DefaultValues_t * dv)5239 DefaultValues_unsetRadialGradient_cx(DefaultValues_t * dv)
5240 {
5241   return (dv != NULL) ? dv->unsetRadialGradient_cx() : LIBSBML_INVALID_OBJECT;
5242 }
5243 
5244 
5245 /*
5246  * Unsets the value of the "radialGradient_cy" element of this DefaultValues_t.
5247  */
5248 LIBSBML_EXTERN
5249 int
DefaultValues_unsetRadialGradient_cy(DefaultValues_t * dv)5250 DefaultValues_unsetRadialGradient_cy(DefaultValues_t * dv)
5251 {
5252   return (dv != NULL) ? dv->unsetRadialGradient_cy() : LIBSBML_INVALID_OBJECT;
5253 }
5254 
5255 
5256 /*
5257  * Unsets the value of the "radialGradient_cz" element of this DefaultValues_t.
5258  */
5259 LIBSBML_EXTERN
5260 int
DefaultValues_unsetRadialGradient_cz(DefaultValues_t * dv)5261 DefaultValues_unsetRadialGradient_cz(DefaultValues_t * dv)
5262 {
5263   return (dv != NULL) ? dv->unsetRadialGradient_cz() : LIBSBML_INVALID_OBJECT;
5264 }
5265 
5266 
5267 /*
5268  * Unsets the value of the "radialGradient_r" element of this DefaultValues_t.
5269  */
5270 LIBSBML_EXTERN
5271 int
DefaultValues_unsetRadialGradient_r(DefaultValues_t * dv)5272 DefaultValues_unsetRadialGradient_r(DefaultValues_t * dv)
5273 {
5274   return (dv != NULL) ? dv->unsetRadialGradient_r() : LIBSBML_INVALID_OBJECT;
5275 }
5276 
5277 
5278 /*
5279  * Unsets the value of the "radialGradient_fx" element of this DefaultValues_t.
5280  */
5281 LIBSBML_EXTERN
5282 int
DefaultValues_unsetRadialGradient_fx(DefaultValues_t * dv)5283 DefaultValues_unsetRadialGradient_fx(DefaultValues_t * dv)
5284 {
5285   return (dv != NULL) ? dv->unsetRadialGradient_fx() : LIBSBML_INVALID_OBJECT;
5286 }
5287 
5288 
5289 /*
5290  * Unsets the value of the "radialGradient_fy" element of this DefaultValues_t.
5291  */
5292 LIBSBML_EXTERN
5293 int
DefaultValues_unsetRadialGradient_fy(DefaultValues_t * dv)5294 DefaultValues_unsetRadialGradient_fy(DefaultValues_t * dv)
5295 {
5296   return (dv != NULL) ? dv->unsetRadialGradient_fy() : LIBSBML_INVALID_OBJECT;
5297 }
5298 
5299 
5300 /*
5301  * Unsets the value of the "radialGradient_fz" element of this DefaultValues_t.
5302  */
5303 LIBSBML_EXTERN
5304 int
DefaultValues_unsetRadialGradient_fz(DefaultValues_t * dv)5305 DefaultValues_unsetRadialGradient_fz(DefaultValues_t * dv)
5306 {
5307   return (dv != NULL) ? dv->unsetRadialGradient_fz() : LIBSBML_INVALID_OBJECT;
5308 }
5309 
5310 
5311 /*
5312  * Unsets the value of the "default_z" element of this DefaultValues_t.
5313  */
5314 LIBSBML_EXTERN
5315 int
DefaultValues_unsetDefault_z(DefaultValues_t * dv)5316 DefaultValues_unsetDefault_z(DefaultValues_t * dv)
5317 {
5318   return (dv != NULL) ? dv->unsetDefault_z() : LIBSBML_INVALID_OBJECT;
5319 }
5320 
5321 
5322 /*
5323  * Unsets the value of the "font-size" element of this DefaultValues_t.
5324  */
5325 LIBSBML_EXTERN
5326 int
DefaultValues_unsetFontSize(DefaultValues_t * dv)5327 DefaultValues_unsetFontSize(DefaultValues_t * dv)
5328 {
5329   return (dv != NULL) ? dv->unsetFontSize() : LIBSBML_INVALID_OBJECT;
5330 }
5331 
5332 
5333 /*
5334  * Predicate returning @c 1 (true) if all the required attributes for this
5335  * DefaultValues_t object have been set.
5336  */
5337 LIBSBML_EXTERN
5338 int
DefaultValues_hasRequiredAttributes(const DefaultValues_t * dv)5339 DefaultValues_hasRequiredAttributes(const DefaultValues_t * dv)
5340 {
5341   return (dv != NULL) ? static_cast<int>(dv->hasRequiredAttributes()) : 0;
5342 }
5343 
5344 
5345 
5346 
5347 LIBSBML_CPP_NAMESPACE_END
5348 
5349 
5350