Ignore:
Timestamp:
07/20/16 01:17:14 (8 years ago)
Author:
Maciej Komosinski
Message:

Renamed: get/setGene -> get/setGenes, setGeneOnly -> setGenesAssumingSameFormat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/genomanipulation.cpp

    r391 r534  
    7979CHANGE_ONE_PROPERTY(p->extraProperties());
    8080p->getModel().close();
    81 printf("\nLet's see f0... (check out part #%d !)\n\n%s\n", p->refno, p->getModel().getF0Geno().getGene().c_str());
     81printf("\nLet's see f0... (check out part #%d !)\n\n%s\n", p->refno, p->getModel().getF0Geno().getGenes().c_str());
    8282}
    8383
     
    9191j->getModel().close();
    9292printf("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());
    9494}
    9595
     
    104104j->getModel().close();
    105105printf("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());
    107107printf("If no delta fields are defined, they will be computed automatically.\n"
    108108       "You can always delete existing delta values by using Joint::resetDelta().\n"
     
    112112j->resetDelta();
    113113j->getModel().close();
    114 printf("As you can see, Joint's delta fields have altered:\n\n%s\n", j->getModel().getF0Geno().getGene().c_str());
     114printf("As you can see, Joint's delta fields have altered:\n\n%s\n", j->getModel().getF0Geno().getGenes().c_str());
    115115}
    116116
     
    123123j->getModel().close();
    124124printf("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");
    126126
    127127}
     
    155155CHANGE_ONE_PROPERTY(j->extraProperties());
    156156j->getModel().close();
    157 printf("And after that we have this genotype:\n\n%s\n", j->getModel().getF0Geno().getGene().c_str());
     157printf("And after that we have this genotype:\n\n%s\n", j->getModel().getF0Geno().getGenes().c_str());
    158158}
    159159
     
    250250n->getModel().close();
    251251printf("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());
    253253
    254254
     
    281281        }
    282282Geno g(gen);
    283 printf("\nSource genotype: '%s'\n",g.getGene().c_str());
     283printf("\nSource genotype: '%s'\n",g.getGenes().c_str());
    284284printf("                  ( format %c %s)\n",
    285285       g.getFormat(), g.getComment().c_str());
     
    292292        return 2;       
    293293        }
    294 printf("Converted to f0:\n%s\n",m.getF0Geno().getGene().c_str());
     294printf("Converted to f0:\n%s\n",m.getF0Geno().getGenes().c_str());
    295295
    296296printf("Model contains: %d part(s)\n"
Note: See TracChangeset for help on using the changeset viewer.