( self )
| 976 | class TestTransformationMatixParameter( unittest.TestCase ) : |
| 977 | |
| 978 | def test( self ) : |
| 979 | |
| 980 | tm = IECore.TransformationMatrixfData() |
| 981 | p = IECore.TransformationMatrixfParameter( |
| 982 | name = "f", |
| 983 | description = "d", |
| 984 | defaultValue = tm, |
| 985 | ) |
| 986 | p.validate() |
| 987 | |
| 988 | self.assertEqual( p.name, "f" ) |
| 989 | self.assertEqual( p.description, "d" ) |
| 990 | self.assertEqual( p.valueValid()[0], True ) |
| 991 | |
| 992 | self.assertTrue( isinstance( p.getTypedValue().translate, imath.V3f ) ) |
| 993 | self.assertEqual( p.getTypedValue().translate, imath.V3f( 0,0,0 ) ) |
| 994 | self.assertEqual( p.getTypedValue().rotate, imath.Eulerf( 0,0,0 ) ) |
| 995 | self.assertEqual( p.getTypedValue().rotationOrientation, imath.Quatf( 1,0,0,0 ) ) |
| 996 | self.assertEqual( p.getTypedValue().scale, imath.V3f( 1,1,1 ) ) |
| 997 | self.assertEqual( p.getTypedValue().shear, imath.V3f( 0,0,0 ) ) |
| 998 | self.assertEqual( p.getTypedValue().rotatePivot, imath.V3f( 0,0,0 ) ) |
| 999 | self.assertEqual( p.getTypedValue().rotatePivotTranslation, imath.V3f( 0,0,0 ) ) |
| 1000 | self.assertEqual( p.getTypedValue().scalePivot, imath.V3f( 0,0,0 ) ) |
| 1001 | self.assertEqual( p.getTypedValue().scalePivotTranslation, imath.V3f( 0,0,0 ) ) |
| 1002 | |
| 1003 | tm = IECore.TransformationMatrixdData() |
| 1004 | p = IECore.TransformationMatrixdParameter( |
| 1005 | name = "f", |
| 1006 | description = "d", |
| 1007 | defaultValue = tm, |
| 1008 | ) |
| 1009 | p.validate() |
| 1010 | |
| 1011 | self.assertEqual( p.name, "f" ) |
| 1012 | self.assertEqual( p.description, "d" ) |
| 1013 | self.assertEqual( p.valueValid()[0], True ) |
| 1014 | |
| 1015 | self.assertTrue( isinstance( p.getTypedValue().translate, imath.V3d ) ) |
| 1016 | self.assertEqual( p.getTypedValue().translate, imath.V3d( 0,0,0 ) ) |
| 1017 | self.assertEqual( p.getTypedValue().rotate, imath.Eulerd( 0,0,0 ) ) |
| 1018 | self.assertEqual( p.getTypedValue().rotationOrientation, imath.Quatd( 1,0,0,0 ) ) |
| 1019 | self.assertEqual( p.getTypedValue().scale, imath.V3d( 1,1,1 ) ) |
| 1020 | self.assertEqual( p.getTypedValue().shear, imath.V3d( 0,0,0 ) ) |
| 1021 | self.assertEqual( p.getTypedValue().rotatePivot, imath.V3d( 0,0,0 ) ) |
| 1022 | self.assertEqual( p.getTypedValue().rotatePivotTranslation, imath.V3d( 0,0,0 ) ) |
| 1023 | self.assertEqual( p.getTypedValue().scalePivot, imath.V3d( 0,0,0 ) ) |
| 1024 | self.assertEqual( p.getTypedValue().scalePivotTranslation, imath.V3d( 0,0,0 ) ) |
| 1025 | |
| 1026 | class TestPathVectorParameter( unittest.TestCase ) : |
| 1027 |
nothing calls this directly
no test coverage detected