Changeset 999 for cpp/frams/_demos
- Timestamp:
- 07/13/20 13:51:43 (5 years ago)
- Location:
- cpp/frams/_demos
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/f0_variants_test.cpp
r986 r999 98 98 g.getFormat().c_str(), g.getComment().c_str()); 99 99 100 Model m(g, Model::SHAPE _UNKNOWN);//.getConverted('0'));100 Model m(g, Model::SHAPETYPE_UNKNOWN);//.getConverted('0')); 101 101 102 102 if (!m.isValid()) -
cpp/frams/_demos/full_props.cpp
r972 r999 75 75 loadSString(VirtFILE::Vstdin, gen); 76 76 Geno g(gen); 77 Model m(g, Model::SHAPE _UNKNOWN);77 Model m(g, Model::SHAPETYPE_UNKNOWN); 78 78 79 79 if (!m.isValid()) -
cpp/frams/_demos/genoconv_test.cpp
r994 r999 212 212 if (using_checkpoints) 213 213 { // using Model with checkpoints 214 Model m1(g2, Model::SHAPE _UNKNOWN, false, true);//true=using_checkpoints214 Model m1(g2, Model::SHAPETYPE_UNKNOWN, false, true);//true=using_checkpoints 215 215 printf("\nModel built from the converted f%s genotype has %d checkpoints\n", g2.getFormat().c_str(), m1.getCheckpointCount()); 216 Model m2(g1, Model::SHAPE _UNKNOWN, false, true);//true=using_checkpoints216 Model m2(g1, Model::SHAPETYPE_UNKNOWN, false, true);//true=using_checkpoints 217 217 printf("Model built from the source f%s genotype has %d checkpoints\n", g1.getFormat().c_str(), m2.getCheckpointCount()); 218 218 // accessing individual checkpoint models (if available) … … 240 240 } 241 241 242 Model mod1(g1, Model::SHAPE _UNKNOWN, 1);242 Model mod1(g1, Model::SHAPETYPE_UNKNOWN, 1); 243 243 printf("\nModel map for f%s genotype:\n", g1.getFormat().c_str()); 244 244 ModelDisplayMap dm1(mod1); … … 247 247 mod1combined.addCombined(mod1.getMap(), dm1.getMap()); 248 248 mod1combined.print(); 249 Model mod2(g2, Model::SHAPE _UNKNOWN, 1);249 Model mod2(g2, Model::SHAPETYPE_UNKNOWN, 1); 250 250 printf("\nModel map for f%s genotype:\n", g2.getFormat().c_str()); 251 251 ModelDisplayMap dm2(mod2); -
cpp/frams/_demos/genomanipulation.cpp
r990 r999 196 196 printf(cl->getPreferredOutput() ? "and provides meaningful output signal (getPreferredOutput()==1).\n" : "and doesn't provide useful output signal (getPreferredOutput()==0).\n"); 197 197 printf("Instances of '%s' can be used in models having ", cl->getName().c_str()); 198 if (cl->getSupportedShapeTypes() == NeuroClass::SUPPORTED_SHAPE _ALL)198 if (cl->getSupportedShapeTypes() == NeuroClass::SUPPORTED_SHAPETYPE_ALL) 199 199 printf("any shape types.\n"); 200 200 else 201 201 { 202 202 printf("shape types:"); 203 for (int i = Model::SHAPE _FIRST; i <= Model::SHAPE_LAST; i++)203 for (int i = Model::SHAPETYPE_FIRST; i <= Model::SHAPETYPE_LAST; i++) 204 204 if (cl->isShapeTypeSupported((Model::ShapeType)i)) 205 205 printf(" '%s'", Model::getShapeTypeName((Model::ShapeType)i)); … … 209 209 { 210 210 printf("Instances of '%s' can be attached to Joints having ", cl->getName().c_str()); 211 if (cl->getSupportedJointShapes() == NeuroClass::SUPPORTED_JOINT _ALL)211 if (cl->getSupportedJointShapes() == NeuroClass::SUPPORTED_JOINTSHAPE_ALL) 212 212 printf("any shapes"); 213 213 else … … 311 311 g.getFormat().c_str(), g.getComment().c_str()); 312 312 313 Model m(g, Model::SHAPE _UNKNOWN);//.getConverted('0'));313 Model m(g, Model::SHAPETYPE_UNKNOWN);//.getConverted('0')); 314 314 315 315 if (!m.isValid()) -
cpp/frams/_demos/geometry/geometrytestutils.cpp
r972 r999 63 63 if ((genoIndex == count) || (strcmp(genotype->name.c_str(), genoName) == 0)) 64 64 { 65 Model model(genotype->genotype, Model::SHAPE _UNKNOWN);65 Model model(genotype->genotype, Model::SHAPETYPE_UNKNOWN); 66 66 67 67 if (!model.isValid()) -
cpp/frams/_demos/multiline_f0_test.cpp
r986 r999 30 30 g.getFormat().c_str(), g.getComment().c_str()); 31 31 32 Model m(g, Model::SHAPE _UNKNOWN);//.getConverted('0'));32 Model m(g, Model::SHAPETYPE_UNKNOWN);//.getConverted('0')); 33 33 34 34 if (!m.isValid()) -
cpp/frams/_demos/neuro_layout_test.cpp
r972 r999 104 104 Geno g(gen); 105 105 if (!g.isValid()) { puts("invalid genotype"); return 5; } 106 Model m(g, Model::SHAPE _UNKNOWN);106 Model m(g, Model::SHAPETYPE_UNKNOWN); 107 107 if (!m.getNeuroCount()) { puts("no neural network"); return 1; } 108 108 printf("%d neurons,", m.getNeuroCount()); -
cpp/frams/_demos/neuro_test.cpp
r972 r999 77 77 Geno g(gen); 78 78 if (!g.isValid()) { puts("invalid genotype"); return 5; } 79 Model m(g, Model::SHAPE _UNKNOWN);79 Model m(g, Model::SHAPETYPE_UNKNOWN); 80 80 if (!m.getNeuroCount()) { puts("no neural network"); return 1; } 81 81 printf("%d neurons,", m.getNeuroCount()); -
cpp/frams/_demos/shapeconvert.cpp
r972 r999 67 67 loadSString(VirtFILE::Vstdin, gen); 68 68 Geno g(gen); 69 Model m(g, Model::SHAPE _UNKNOWN);69 Model m(g, Model::SHAPETYPE_UNKNOWN); 70 70 71 71 if (!m.isValid()) … … 75 75 } 76 76 77 if (m.getShapeType() != Model::SHAPE _BALL_AND_STICK)77 if (m.getShapeType() != Model::SHAPETYPE_BALL_AND_STICK) 78 78 { 79 79 logPrintf("", "shapeconvert", LOG_ERROR, "Only ball-and-stick models can be converted");
Note: See TracChangeset
for help on using the changeset viewer.