Changeset 977 for cpp/frams/_demos/genomanipulation.cpp
- Timestamp:
- 07/06/20 23:39:36 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/genomanipulation.cpp
r972 r977 195 195 printf(" (getPreferredInputs()) "); 196 196 printf(cl->getPreferredOutput() ? "and provides meaningful output signal (getPreferredOutput()==1).\n" : "and doesn't provide useful output signal (getPreferredOutput()==0).\n"); 197 printf("Instances of '%s' can be used in models having ", cl->getName().c_str()); 198 if (cl->getSupportedShapeTypes() == NeuroClass::SUPPORTED_SHAPE_ALL) 199 printf("any shape types.\n"); 200 else 201 { 202 printf("shape types:"); 203 for(int i=Model::SHAPE_FIRST; i<= Model::SHAPE_LAST; i++) 204 if (cl->isShapeTypeSupported((Model::ShapeType)i)) 205 printf(" '%s'",Model::getShapeTypeName((Model::ShapeType)i)); 206 printf(".\n"); 207 } 208 if (cl->preflocation == NeuroClass::PREFER_JOINT) 209 { 210 printf("Instances of '%s' can be attached to Joints having ", cl->getName().c_str()); 211 if (cl->getSupportedJointShapes() == NeuroClass::SUPPORTED_JOINT_ALL) 212 printf("any shapes"); 213 else 214 { 215 printf("shapes:"); 216 for(int i=Joint::SHAPE_FIRST; i<= Joint::SHAPE_LAST; i++) 217 if (cl->isJointShapeSupported((Joint::Shape)i)) 218 printf(" '%s'",Joint::getShapeName((Joint::Shape)i)); 219 } 220 printf(".\n"); 221 } 222 else if (cl->preflocation == NeuroClass::PREFER_PART) 223 printf("Instances of '%s' can be attached to Parts.\n", cl->getName().c_str()); 197 224 198 225 SyntParam p = n->classProperties();
Note: See TracChangeset
for help on using the changeset viewer.