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