( dataType, args, parameter )
| 434 | parameter.setValidatedValue( d ) |
| 435 | |
| 436 | def __parseTransformationMatrix( dataType, args, parameter ) : |
| 437 | |
| 438 | if not len(args) : |
| 439 | raise SyntaxError( "Expected 29 values." ) |
| 440 | |
| 441 | if dataType == IECore.TransformationMatrixfData : |
| 442 | vecType = imath.V3f |
| 443 | angleType = imath.Eulerf |
| 444 | orientationType = imath.Quatf |
| 445 | else : |
| 446 | vecType = imath.V3d |
| 447 | angleType = imath.Eulerd |
| 448 | orientationType = imath.Quatd |
| 449 | |
| 450 | t = type(dataType().value)() |
| 451 | |
| 452 | t.translate = vecType( float(args[0]), float(args[1]), float(args[2] ) ) |
| 453 | del args[0:3] |
| 454 | |
| 455 | t.scale = vecType( float(args[0]), float(args[1]), float(args[2] ) ) |
| 456 | del args[0:3] |
| 457 | |
| 458 | t.shear = vecType( float(args[0]), float(args[1]), float(args[2] ) ) |
| 459 | del args[0:3] |
| 460 | |
| 461 | t.rotate = angleType( float(args[0]), float(args[1]), float(args[2] ) ) |
| 462 | t.rotate.setOrder( getattr( imath.Eulerf, args[3] ) ) |
| 463 | del args[0:4] |
| 464 | |
| 465 | t.rotationOrientation = orientationType( float(args[0]), float(args[1]), float(args[2] ), float(args[3]) ) |
| 466 | del args[0:4] |
| 467 | |
| 468 | t.rotatePivot = vecType( float(args[0]), float(args[1]), float(args[2] ) ) |
| 469 | del args[0:3] |
| 470 | |
| 471 | t.rotatePivotTranslation = vecType( float(args[0]), float(args[1]), float(args[2] ) ) |
| 472 | del args[0:3] |
| 473 | |
| 474 | t.scalePivot = vecType( float(args[0]), float(args[1]), float(args[2] ) ) |
| 475 | del args[0:3] |
| 476 | |
| 477 | t.scalePivotTranslation = vecType( float(args[0]), float(args[1]), float(args[2] ) ) |
| 478 | del args[0:3] |
| 479 | |
| 480 | parameter.setValidatedValue( dataType(t) ) |
| 481 | |
| 482 | def __parseObject( args, parameter ) : |
| 483 |
no test coverage detected