Changeset 534 for cpp/frams/_demos
- Timestamp:
- 07/20/16 01:17:14 (8 years ago)
- Location:
- cpp/frams/_demos
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/f0_variants_test.cpp
r391 r534 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2016 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 94 94 } 95 95 Geno g(gen); 96 printf("\nSource genotype: '%s'\n",g.getGene ().c_str());96 printf("\nSource genotype: '%s'\n",g.getGenes().c_str()); 97 97 printf(" ( format %c %s)\n", 98 98 g.getFormat(), g.getComment().c_str()); -
cpp/frams/_demos/full_props.cpp
r526 r534 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2016 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 97 97 Geno f0_g; 98 98 m.makeGeno(f0_g,NULL,reverse);//third arg is "handle_defaults" == whether f0 should omit default property values 99 puts(f0_g.getGene AndFormat().c_str());99 puts(f0_g.getGenesAndFormat().c_str()); 100 100 101 101 return 0; -
cpp/frams/_demos/genoconv_test.cpp
r527 r534 51 51 mod.getPart(1)->p=Pt3D(0,0.2,-1); 52 52 mod.close(); 53 return mod.getGeno().getGene ();53 return mod.getGeno().getGenes(); 54 54 } 55 55 ~GenoConv_Test2() {} … … 112 112 { 113 113 printf("Genotype:\n%s\nFormat: %c\nValid: %s\nComment: %s\n", 114 g.getGene ().c_str(),g.getFormat(),g.isValid()?"yes":"no",g.getComment().c_str());114 g.getGenes().c_str(),g.getFormat(),g.isValid()?"yes":"no",g.getComment().c_str()); 115 115 } 116 116 … … 159 159 printf("conversion map:\n"); 160 160 m.print(); 161 printConvMap(g1.getGene (),g2.getGene(),m);161 printConvMap(g1.getGenes(),g2.getGenes(),m); 162 162 printf("reverse conversion map:\n"); 163 163 MultiMap rm; 164 164 rm.addReversed(m); 165 165 rm.print(); 166 printConvMap(g2.getGene (),g1.getGene(),rm);166 printConvMap(g2.getGenes(),g1.getGenes(),rm); 167 167 } 168 168 169 169 Model mod1(g1,1); 170 170 printf("\nmodel map for f%c genotype:\n",g1.getFormat()); 171 printModelMap(g1.getGene (),mod1.getMap());171 printModelMap(g1.getGenes(),mod1.getMap()); 172 172 mod1.getMap().print(); 173 173 Model mod2(g2,1); 174 174 printf("\nmodel map for f%c genotype:\n",g2.getFormat()); 175 printModelMap(g2.getGene (),mod2.getMap());175 printModelMap(g2.getGenes(),mod2.getMap()); 176 176 mod2.getMap().print(); 177 177 return 0; -
cpp/frams/_demos/genomanipulation.cpp
r391 r534 79 79 CHANGE_ONE_PROPERTY(p->extraProperties()); 80 80 p->getModel().close(); 81 printf("\nLet's see f0... (check out part #%d !)\n\n%s\n", p->refno, p->getModel().getF0Geno().getGene ().c_str());81 printf("\nLet's see f0... (check out part #%d !)\n\n%s\n", p->refno, p->getModel().getF0Geno().getGenes().c_str()); 82 82 } 83 83 … … 91 91 j->getModel().close(); 92 92 printf("The Part's position is changed, but everything else stays intact:\n\n%s\n", 93 j->getModel().getF0Geno().getGene ().c_str());93 j->getModel().getF0Geno().getGenes().c_str()); 94 94 } 95 95 … … 104 104 j->getModel().close(); 105 105 printf("Position of the second Part referenced by this joint (part #%d) is now changed:\n\n%s\n", 106 j->part2->refno, j->getModel().getF0Geno().getGene ().c_str());106 j->part2->refno, j->getModel().getF0Geno().getGenes().c_str()); 107 107 printf("If no delta fields are defined, they will be computed automatically.\n" 108 108 "You can always delete existing delta values by using Joint::resetDelta().\n" … … 112 112 j->resetDelta(); 113 113 j->getModel().close(); 114 printf("As you can see, Joint's delta fields have altered:\n\n%s\n", j->getModel().getF0Geno().getGene ().c_str());114 printf("As you can see, Joint's delta fields have altered:\n\n%s\n", j->getModel().getF0Geno().getGenes().c_str()); 115 115 } 116 116 … … 123 123 j->getModel().close(); 124 124 printf("f0 is now:\n\n%s\n...so this is %s joint.\n", 125 j->getModel().getF0Geno().getGene ().c_str(), option?"a delta":"an absolute");125 j->getModel().getF0Geno().getGenes().c_str(), option?"a delta":"an absolute"); 126 126 127 127 } … … 155 155 CHANGE_ONE_PROPERTY(j->extraProperties()); 156 156 j->getModel().close(); 157 printf("And after that we have this genotype:\n\n%s\n", j->getModel().getF0Geno().getGene ().c_str());157 printf("And after that we have this genotype:\n\n%s\n", j->getModel().getF0Geno().getGenes().c_str()); 158 158 } 159 159 … … 250 250 n->getModel().close(); 251 251 printf("The final object description will be then: '%s'\nAnd the full f0 genotype:\n\n%s\n", 252 n->getDetails().c_str(), n->getModel().getF0Geno().getGene ().c_str());252 n->getDetails().c_str(), n->getModel().getF0Geno().getGenes().c_str()); 253 253 254 254 … … 281 281 } 282 282 Geno g(gen); 283 printf("\nSource genotype: '%s'\n",g.getGene ().c_str());283 printf("\nSource genotype: '%s'\n",g.getGenes().c_str()); 284 284 printf(" ( format %c %s)\n", 285 285 g.getFormat(), g.getComment().c_str()); … … 292 292 return 2; 293 293 } 294 printf("Converted to f0:\n%s\n",m.getF0Geno().getGene ().c_str());294 printf("Converted to f0:\n%s\n",m.getF0Geno().getGenes().c_str()); 295 295 296 296 printf("Model contains: %d part(s)\n" -
cpp/frams/_demos/genooper_test.cpp
r532 r534 9 9 { 10 10 printf("Genotype: %s\nFormat: %c\nValid: %s\nComment: %s\n", 11 g.getGene ().c_str(), g.getFormat(), g.isValid() ? "yes" : "no", g.getComment().len() == 0 ? "(empty)" : g.getComment().c_str());11 g.getGenes().c_str(), g.getFormat(), g.isValid() ? "yes" : "no", g.getComment().len() == 0 ? "(empty)" : g.getComment().c_str()); 12 12 } 13 13 … … 47 47 printGenAndTitle(gvalidated, "validated"); 48 48 49 printf("\nHTMLized: %s\n", genetics.genman.HTMLize(gvalidated.getGene ().c_str()).c_str());49 printf("\nHTMLized: %s\n", genetics.genman.HTMLize(gvalidated.getGenes().c_str()).c_str()); 50 50 51 51 return 0; -
cpp/frams/_demos/geometry/apices_test.cpp
r526 r534 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2016 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 47 47 // Finishing result Model and printing its genotype. 48 48 resultModel.close(); 49 puts(resultModel.getF0Geno().getGene AndFormat().c_str());49 puts(resultModel.getF0Geno().getGenesAndFormat().c_str()); 50 50 } 51 51 -
cpp/frams/_demos/geometry/info_test.cpp
r526 r534 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2016 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 72 72 // Finishing result Model and printing its genotype. 73 73 resultModel.close(); 74 puts(resultModel.getF0Geno().getGene AndFormat().c_str());74 puts(resultModel.getF0Geno().getGenesAndFormat().c_str()); 75 75 76 76 // Printing calculated values. -
cpp/frams/_demos/geometry/surface_test.cpp
r526 r534 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2016 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 47 47 // Finishing result Model and printing its genotype. 48 48 resultModel.close(); 49 puts(resultModel.getF0Geno().getGene AndFormat().c_str());49 puts(resultModel.getF0Geno().getGenesAndFormat().c_str()); 50 50 } 51 51 -
cpp/frams/_demos/geometry/volume_test.cpp
r526 r534 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2016 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 39 39 // Finishing result Model and printing its genotype. 40 40 resultModel.close(); 41 puts(resultModel.getF0Geno().getGene AndFormat().c_str());41 puts(resultModel.getF0Geno().getGenesAndFormat().c_str()); 42 42 } 43 43 -
cpp/frams/_demos/multiline_f0_test.cpp
r391 r534 26 26 } 27 27 Geno g(gen); 28 printf("\nSource genotype: '%s'\n",g.getGene ().c_str());28 printf("\nSource genotype: '%s'\n",g.getGenes().c_str()); 29 29 printf(" ( format %c %s)\n", 30 30 g.getFormat(), g.getComment().c_str()); … … 37 37 return 2; 38 38 } 39 printf("Converted to f0:\n%s\n",m.getF0Geno().getGene ().c_str());39 printf("Converted to f0:\n%s\n",m.getF0Geno().getGenes().c_str()); 40 40 41 41 printf("\nusing Param::save() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)"); -
cpp/frams/_demos/part_shapes.cpp
r526 r534 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2016 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 52 52 53 53 m.close(); 54 puts(m.getF0Geno().getGene AndFormat().c_str());54 puts(m.getF0Geno().getGenesAndFormat().c_str()); 55 55 // the genotype can be fed directly to the genotype viewer, like this: 56 56 // part_shapes | theater -g - -
cpp/frams/_demos/shapeconvert.cpp
r526 r534 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2016 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 87 87 88 88 Geno f0_g = newmodel.getF0Geno(); 89 puts(f0_g.getGene AndFormat().c_str());89 puts(f0_g.getGenesAndFormat().c_str()); 90 90 91 91 return 0;
Note: See TracChangeset
for help on using the changeset viewer.