protected void CheckProperties( FbxNode origLightNode, FbxNode importLightNode, FbxLight origLight, FbxLight importLight, string[] customProperties) { Assert.AreEqual(origLight.LightType.Get(), importLight.LightType.Get()); Assert.AreEqual(origLight.InnerAngle.Get(), importLight.InnerAngle.Get()); Assert.AreEqual(origLight.OuterAngle.Get(), importLight.OuterAngle.Get()); Assert.AreEqual(origLight.Color.Get(), importLight.Color.Get()); Assert.AreEqual(origLight.FileName.Get(), importLight.FileName.Get()); Assert.AreEqual(origLight.DrawGroundProjection.Get(), importLight.DrawGroundProjection.Get()); Assert.AreEqual(origLight.DrawVolumetricLight.Get(), importLight.DrawVolumetricLight.Get()); Assert.AreEqual(origLight.DrawFrontFacingVolumetricLight.Get(), importLight.DrawFrontFacingVolumetricLight.Get()); Assert.AreEqual(origLight.Intensity.Get(), importLight.Intensity.Get()); Assert.AreEqual(origLight.FarAttenuationStart.Get(), importLight.FarAttenuationStart.Get()); Assert.AreEqual(origLight.FarAttenuationEnd.Get(), importLight.FarAttenuationEnd.Get()); Assert.AreEqual(origLight.CastShadows.Get(), importLight.CastShadows.Get()); foreach (var customProp in customProperties) { var origProperty = origLightNode.FindProperty(customProp); var importProperty = importLightNode.FindProperty(customProp); Assert.IsNotNull(origProperty); Assert.IsNotNull(importProperty); Assert.AreEqual(origProperty.GetFloat(), importProperty.GetFloat()); } }
private void CheckCustomProperties(FbxNode origNode, FbxNode importNode, string propName) { var origProperty = origNode.FindProperty(propName); var importProperty = importNode.FindProperty(propName); Assert.IsNotNull(origProperty); Assert.IsNotNull(importProperty); Assert.IsTrue(origProperty.IsValid()); Assert.IsTrue(importProperty.IsValid()); Assert.AreEqual(origProperty.GetInt(), importProperty.GetInt()); Assert.AreEqual(origProperty.GetFlag(FbxPropertyFlags.EFlags.eUserDefined), importProperty.GetFlag(FbxPropertyFlags.EFlags.eUserDefined)); Assert.AreEqual(origProperty.GetFlag(FbxPropertyFlags.EFlags.eAnimatable), importProperty.GetFlag(FbxPropertyFlags.EFlags.eAnimatable)); Assert.AreEqual(origNode.GetChildCount(), importNode.GetChildCount()); for (int i = 0; i < origNode.GetChildCount(); i++) { CheckCustomProperties(origNode.GetChild(i), importNode.GetChild(i), propName); } }
protected void CheckCameraSettings(FbxCamera origCamera, FbxCamera importCamera, FbxNode origCameraNode, FbxNode importCameraNode) { Assert.AreEqual(origCamera.ProjectionType.Get(), importCamera.ProjectionType.Get()); Assert.AreEqual(origCamera.AspectWidth.Get(), importCamera.AspectWidth.Get()); Assert.AreEqual(origCamera.AspectHeight.Get(), importCamera.AspectHeight.Get()); Assert.AreEqual(origCamera.GetAspectRatioMode(), importCamera.GetAspectRatioMode()); Assert.AreEqual(origCamera.FilmAspectRatio.Get(), importCamera.FilmAspectRatio.Get()); Assert.AreEqual(origCamera.GetApertureWidth(), importCamera.GetApertureWidth()); Assert.AreEqual(origCamera.GetApertureHeight(), importCamera.GetApertureHeight()); Assert.AreEqual(origCamera.GetApertureMode(), origCamera.GetApertureMode()); Assert.AreEqual(origCamera.FocalLength.Get(), importCamera.FocalLength.Get()); Assert.AreEqual(origCamera.GetNearPlane(), importCamera.GetNearPlane()); Assert.AreEqual(origCamera.GetFarPlane(), importCamera.GetFarPlane()); foreach (var customProp in new string[] { "backgroundColor", "clearFlags" }) { FbxProperty property = origCameraNode.FindProperty(customProp); Assert.IsNotNull(property); Assert.IsTrue(property.IsValid()); FbxProperty importBgColorProp = importCameraNode.FindProperty(customProp); Assert.IsNotNull(importBgColorProp); Assert.IsTrue(importBgColorProp.IsValid()); if (property.GetPropertyDataType().Equals(Globals.FbxColor4DT)) { Assert.AreEqual(property.GetFbxColor(), property.GetFbxColor()); } else if (property.GetPropertyDataType().Equals(Globals.FbxIntDT)) { Assert.AreEqual(property.GetInt(), property.GetInt()); } Assert.AreEqual(property.GetFlag(FbxPropertyFlags.EFlags.eUserDefined), importBgColorProp.GetFlag(FbxPropertyFlags.EFlags.eUserDefined)); Assert.AreEqual(property.GetFlag(FbxPropertyFlags.EFlags.eAnimatable), importBgColorProp.GetFlag(FbxPropertyFlags.EFlags.eAnimatable)); } }
public void Node_Create_HasProperties() { // given: var node = new FbxNode(""); FbxProperty prop; // then: Assert.AreEqual(71, CountProperties(node)); Assert.AreEqual(0, node.GetSrcPropertyCount()); Assert.AreEqual(0, node.GetDstPropertyCount()); prop = node.FindProperty("QuaternionInterpolate"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.QuaternionInterpolate); Assert.True(node.QuaternionInterpolate.IsValid()); Assert.AreEqual("QuaternionInterpolate", node.QuaternionInterpolate.GetName()); Assert.AreSame(prop, node.QuaternionInterpolate); prop = node.FindProperty("RotationOffset"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationOffset); Assert.True(node.RotationOffset.IsValid()); Assert.AreEqual("RotationOffset", node.RotationOffset.GetName()); Assert.AreSame(prop, node.RotationOffset); prop = node.FindProperty("RotationPivot"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationPivot); Assert.True(node.RotationPivot.IsValid()); Assert.AreEqual("RotationPivot", node.RotationPivot.GetName()); Assert.AreSame(prop, node.RotationPivot); prop = node.FindProperty("ScalingOffset"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingOffset); Assert.True(node.ScalingOffset.IsValid()); Assert.AreEqual("ScalingOffset", node.ScalingOffset.GetName()); Assert.AreSame(prop, node.ScalingOffset); prop = node.FindProperty("ScalingPivot"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingPivot); Assert.True(node.ScalingPivot.IsValid()); Assert.AreEqual("ScalingPivot", node.ScalingPivot.GetName()); Assert.AreSame(prop, node.ScalingPivot); prop = node.FindProperty("TranslationActive"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationActive); Assert.True(node.TranslationActive.IsValid()); Assert.AreEqual("TranslationActive", node.TranslationActive.GetName()); Assert.AreSame(prop, node.TranslationActive); prop = node.FindProperty("TranslationMin"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationMin); Assert.True(node.TranslationMin.IsValid()); Assert.AreEqual("TranslationMin", node.TranslationMin.GetName()); Assert.AreSame(prop, node.TranslationMin); prop = node.FindProperty("TranslationMax"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationMax); Assert.True(node.TranslationMax.IsValid()); Assert.AreEqual("TranslationMax", node.TranslationMax.GetName()); Assert.AreSame(prop, node.TranslationMax); prop = node.FindProperty("TranslationMinX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationMinX); Assert.True(node.TranslationMinX.IsValid()); Assert.AreEqual("TranslationMinX", node.TranslationMinX.GetName()); Assert.AreSame(prop, node.TranslationMinX); prop = node.FindProperty("TranslationMinY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationMinY); Assert.True(node.TranslationMinY.IsValid()); Assert.AreEqual("TranslationMinY", node.TranslationMinY.GetName()); Assert.AreSame(prop, node.TranslationMinY); prop = node.FindProperty("TranslationMinZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationMinZ); Assert.True(node.TranslationMinZ.IsValid()); Assert.AreEqual("TranslationMinZ", node.TranslationMinZ.GetName()); Assert.AreSame(prop, node.TranslationMinZ); prop = node.FindProperty("TranslationMaxX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationMaxX); Assert.True(node.TranslationMaxX.IsValid()); Assert.AreEqual("TranslationMaxX", node.TranslationMaxX.GetName()); Assert.AreSame(prop, node.TranslationMaxX); prop = node.FindProperty("TranslationMaxY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationMaxY); Assert.True(node.TranslationMaxY.IsValid()); Assert.AreEqual("TranslationMaxY", node.TranslationMaxY.GetName()); Assert.AreSame(prop, node.TranslationMaxY); prop = node.FindProperty("TranslationMaxZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.TranslationMaxZ); Assert.True(node.TranslationMaxZ.IsValid()); Assert.AreEqual("TranslationMaxZ", node.TranslationMaxZ.GetName()); Assert.AreSame(prop, node.TranslationMaxZ); prop = node.FindProperty("RotationOrder"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationOrder); Assert.True(node.RotationOrder.IsValid()); Assert.AreEqual("RotationOrder", node.RotationOrder.GetName()); Assert.AreSame(prop, node.RotationOrder); prop = node.FindProperty("RotationSpaceForLimitOnly"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationSpaceForLimitOnly); Assert.True(node.RotationSpaceForLimitOnly.IsValid()); Assert.AreEqual("RotationSpaceForLimitOnly", node.RotationSpaceForLimitOnly.GetName()); Assert.AreSame(prop, node.RotationSpaceForLimitOnly); prop = node.FindProperty("RotationStiffnessX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationStiffnessX); Assert.True(node.RotationStiffnessX.IsValid()); Assert.AreEqual("RotationStiffnessX", node.RotationStiffnessX.GetName()); Assert.AreSame(prop, node.RotationStiffnessX); prop = node.FindProperty("RotationStiffnessY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationStiffnessY); Assert.True(node.RotationStiffnessY.IsValid()); Assert.AreEqual("RotationStiffnessY", node.RotationStiffnessY.GetName()); Assert.AreSame(prop, node.RotationStiffnessY); prop = node.FindProperty("RotationStiffnessZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationStiffnessZ); Assert.True(node.RotationStiffnessZ.IsValid()); Assert.AreEqual("RotationStiffnessZ", node.RotationStiffnessZ.GetName()); Assert.AreSame(prop, node.RotationStiffnessZ); prop = node.FindProperty("AxisLen"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.AxisLen); Assert.True(node.AxisLen.IsValid()); Assert.AreEqual("AxisLen", node.AxisLen.GetName()); Assert.AreSame(prop, node.AxisLen); prop = node.FindProperty("PreRotation"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.PreRotation); Assert.True(node.PreRotation.IsValid()); Assert.AreEqual("PreRotation", node.PreRotation.GetName()); Assert.AreSame(prop, node.PreRotation); prop = node.FindProperty("PostRotation"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.PostRotation); Assert.True(node.PostRotation.IsValid()); Assert.AreEqual("PostRotation", node.PostRotation.GetName()); Assert.AreSame(prop, node.PostRotation); prop = node.FindProperty("RotationActive"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationActive); Assert.True(node.RotationActive.IsValid()); Assert.AreEqual("RotationActive", node.RotationActive.GetName()); Assert.AreSame(prop, node.RotationActive); prop = node.FindProperty("RotationMin"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationMin); Assert.True(node.RotationMin.IsValid()); Assert.AreEqual("RotationMin", node.RotationMin.GetName()); Assert.AreSame(prop, node.RotationMin); prop = node.FindProperty("RotationMax"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationMax); Assert.True(node.RotationMax.IsValid()); Assert.AreEqual("RotationMax", node.RotationMax.GetName()); Assert.AreSame(prop, node.RotationMax); prop = node.FindProperty("RotationMinX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationMinX); Assert.True(node.RotationMinX.IsValid()); Assert.AreEqual("RotationMinX", node.RotationMinX.GetName()); Assert.AreSame(prop, node.RotationMinX); prop = node.FindProperty("RotationMinY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationMinY); Assert.True(node.RotationMinY.IsValid()); Assert.AreEqual("RotationMinY", node.RotationMinY.GetName()); Assert.AreSame(prop, node.RotationMinY); prop = node.FindProperty("RotationMinZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationMinZ); Assert.True(node.RotationMinZ.IsValid()); Assert.AreEqual("RotationMinZ", node.RotationMinZ.GetName()); Assert.AreSame(prop, node.RotationMinZ); prop = node.FindProperty("RotationMaxX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationMaxX); Assert.True(node.RotationMaxX.IsValid()); Assert.AreEqual("RotationMaxX", node.RotationMaxX.GetName()); Assert.AreSame(prop, node.RotationMaxX); prop = node.FindProperty("RotationMaxY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationMaxY); Assert.True(node.RotationMaxY.IsValid()); Assert.AreEqual("RotationMaxY", node.RotationMaxY.GetName()); Assert.AreSame(prop, node.RotationMaxY); prop = node.FindProperty("RotationMaxZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.RotationMaxZ); Assert.True(node.RotationMaxZ.IsValid()); Assert.AreEqual("RotationMaxZ", node.RotationMaxZ.GetName()); Assert.AreSame(prop, node.RotationMaxZ); prop = node.FindProperty("InheritType"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.InheritType); Assert.True(node.InheritType.IsValid()); Assert.AreEqual("InheritType", node.InheritType.GetName()); Assert.AreSame(prop, node.InheritType); prop = node.FindProperty("ScalingActive"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingActive); Assert.True(node.ScalingActive.IsValid()); Assert.AreEqual("ScalingActive", node.ScalingActive.GetName()); Assert.AreSame(prop, node.ScalingActive); prop = node.FindProperty("ScalingMin"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingMin); Assert.True(node.ScalingMin.IsValid()); Assert.AreEqual("ScalingMin", node.ScalingMin.GetName()); Assert.AreSame(prop, node.ScalingMin); prop = node.FindProperty("ScalingMax"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingMax); Assert.True(node.ScalingMax.IsValid()); Assert.AreEqual("ScalingMax", node.ScalingMax.GetName()); Assert.AreSame(prop, node.ScalingMax); prop = node.FindProperty("ScalingMinX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingMinX); Assert.True(node.ScalingMinX.IsValid()); Assert.AreEqual("ScalingMinX", node.ScalingMinX.GetName()); Assert.AreSame(prop, node.ScalingMinX); prop = node.FindProperty("ScalingMinY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingMinY); Assert.True(node.ScalingMinY.IsValid()); Assert.AreEqual("ScalingMinY", node.ScalingMinY.GetName()); Assert.AreSame(prop, node.ScalingMinY); prop = node.FindProperty("ScalingMinZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingMinZ); Assert.True(node.ScalingMinZ.IsValid()); Assert.AreEqual("ScalingMinZ", node.ScalingMinZ.GetName()); Assert.AreSame(prop, node.ScalingMinZ); prop = node.FindProperty("ScalingMaxX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingMaxX); Assert.True(node.ScalingMaxX.IsValid()); Assert.AreEqual("ScalingMaxX", node.ScalingMaxX.GetName()); Assert.AreSame(prop, node.ScalingMaxX); prop = node.FindProperty("ScalingMaxY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingMaxY); Assert.True(node.ScalingMaxY.IsValid()); Assert.AreEqual("ScalingMaxY", node.ScalingMaxY.GetName()); Assert.AreSame(prop, node.ScalingMaxY); prop = node.FindProperty("ScalingMaxZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.ScalingMaxZ); Assert.True(node.ScalingMaxZ.IsValid()); Assert.AreEqual("ScalingMaxZ", node.ScalingMaxZ.GetName()); Assert.AreSame(prop, node.ScalingMaxZ); prop = node.FindProperty("GeometricTranslation"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.GeometricTranslation); Assert.True(node.GeometricTranslation.IsValid()); Assert.AreEqual("GeometricTranslation", node.GeometricTranslation.GetName()); Assert.AreSame(prop, node.GeometricTranslation); prop = node.FindProperty("GeometricRotation"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.GeometricRotation); Assert.True(node.GeometricRotation.IsValid()); Assert.AreEqual("GeometricRotation", node.GeometricRotation.GetName()); Assert.AreSame(prop, node.GeometricRotation); prop = node.FindProperty("GeometricScaling"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.GeometricScaling); Assert.True(node.GeometricScaling.IsValid()); Assert.AreEqual("GeometricScaling", node.GeometricScaling.GetName()); Assert.AreSame(prop, node.GeometricScaling); prop = node.FindProperty("MinDampRangeX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MinDampRangeX); Assert.True(node.MinDampRangeX.IsValid()); Assert.AreEqual("MinDampRangeX", node.MinDampRangeX.GetName()); Assert.AreSame(prop, node.MinDampRangeX); prop = node.FindProperty("MinDampRangeY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MinDampRangeY); Assert.True(node.MinDampRangeY.IsValid()); Assert.AreEqual("MinDampRangeY", node.MinDampRangeY.GetName()); Assert.AreSame(prop, node.MinDampRangeY); prop = node.FindProperty("MinDampRangeZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MinDampRangeZ); Assert.True(node.MinDampRangeZ.IsValid()); Assert.AreEqual("MinDampRangeZ", node.MinDampRangeZ.GetName()); Assert.AreSame(prop, node.MinDampRangeZ); prop = node.FindProperty("MaxDampRangeX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MaxDampRangeX); Assert.True(node.MaxDampRangeX.IsValid()); Assert.AreEqual("MaxDampRangeX", node.MaxDampRangeX.GetName()); Assert.AreSame(prop, node.MaxDampRangeX); prop = node.FindProperty("MaxDampRangeY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MaxDampRangeY); Assert.True(node.MaxDampRangeY.IsValid()); Assert.AreEqual("MaxDampRangeY", node.MaxDampRangeY.GetName()); Assert.AreSame(prop, node.MaxDampRangeY); prop = node.FindProperty("MaxDampRangeZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MaxDampRangeZ); Assert.True(node.MaxDampRangeZ.IsValid()); Assert.AreEqual("MaxDampRangeZ", node.MaxDampRangeZ.GetName()); Assert.AreSame(prop, node.MaxDampRangeZ); prop = node.FindProperty("MinDampStrengthX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MinDampStrengthX); Assert.True(node.MinDampStrengthX.IsValid()); Assert.AreEqual("MinDampStrengthX", node.MinDampStrengthX.GetName()); Assert.AreSame(prop, node.MinDampStrengthX); prop = node.FindProperty("MinDampStrengthY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MinDampStrengthY); Assert.True(node.MinDampStrengthY.IsValid()); Assert.AreEqual("MinDampStrengthY", node.MinDampStrengthY.GetName()); Assert.AreSame(prop, node.MinDampStrengthY); prop = node.FindProperty("MinDampStrengthZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MinDampStrengthZ); Assert.True(node.MinDampStrengthZ.IsValid()); Assert.AreEqual("MinDampStrengthZ", node.MinDampStrengthZ.GetName()); Assert.AreSame(prop, node.MinDampStrengthZ); prop = node.FindProperty("MaxDampStrengthX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MaxDampStrengthX); Assert.True(node.MaxDampStrengthX.IsValid()); Assert.AreEqual("MaxDampStrengthX", node.MaxDampStrengthX.GetName()); Assert.AreSame(prop, node.MaxDampStrengthX); prop = node.FindProperty("MaxDampStrengthY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MaxDampStrengthY); Assert.True(node.MaxDampStrengthY.IsValid()); Assert.AreEqual("MaxDampStrengthY", node.MaxDampStrengthY.GetName()); Assert.AreSame(prop, node.MaxDampStrengthY); prop = node.FindProperty("MaxDampStrengthZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.MaxDampStrengthZ); Assert.True(node.MaxDampStrengthZ.IsValid()); Assert.AreEqual("MaxDampStrengthZ", node.MaxDampStrengthZ.GetName()); Assert.AreSame(prop, node.MaxDampStrengthZ); prop = node.FindProperty("PreferedAngleX"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.PreferedAngleX); Assert.True(node.PreferedAngleX.IsValid()); Assert.AreEqual("PreferedAngleX", node.PreferedAngleX.GetName()); Assert.AreSame(prop, node.PreferedAngleX); prop = node.FindProperty("PreferedAngleY"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.PreferedAngleY); Assert.True(node.PreferedAngleY.IsValid()); Assert.AreEqual("PreferedAngleY", node.PreferedAngleY.GetName()); Assert.AreSame(prop, node.PreferedAngleY); prop = node.FindProperty("PreferedAngleZ"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.PreferedAngleZ); Assert.True(node.PreferedAngleZ.IsValid()); Assert.AreEqual("PreferedAngleZ", node.PreferedAngleZ.GetName()); Assert.AreSame(prop, node.PreferedAngleZ); prop = node.FindProperty("LookAtProperty"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.LookAtProperty); Assert.True(node.LookAtProperty.IsValid()); Assert.AreEqual("LookAtProperty", node.LookAtProperty.GetName()); Assert.AreSame(prop, node.LookAtProperty); prop = node.FindProperty("UpVectorProperty"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.UpVectorProperty); Assert.True(node.UpVectorProperty.IsValid()); Assert.AreEqual("UpVectorProperty", node.UpVectorProperty.GetName()); Assert.AreSame(prop, node.UpVectorProperty); prop = node.FindProperty("Show"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.Show); Assert.True(node.Show.IsValid()); Assert.AreEqual("Show", node.Show.GetName()); Assert.AreSame(prop, node.Show); prop = node.FindProperty("NegativePercentShapeSupport"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.NegativePercentShapeSupport); Assert.True(node.NegativePercentShapeSupport.IsValid()); Assert.AreEqual("NegativePercentShapeSupport", node.NegativePercentShapeSupport.GetName()); Assert.AreSame(prop, node.NegativePercentShapeSupport); prop = node.FindProperty("DefaultAttributeIndex"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.DefaultAttributeIndex); Assert.True(node.DefaultAttributeIndex.IsValid()); Assert.AreEqual("DefaultAttributeIndex", node.DefaultAttributeIndex.GetName()); Assert.AreSame(prop, node.DefaultAttributeIndex); prop = node.FindProperty("Freeze"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.Freeze); Assert.True(node.Freeze.IsValid()); Assert.AreEqual("Freeze", node.Freeze.GetName()); Assert.AreSame(prop, node.Freeze); prop = node.FindProperty("LODBox"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.LODBox); Assert.True(node.LODBox.IsValid()); Assert.AreEqual("LODBox", node.LODBox.GetName()); Assert.AreSame(prop, node.LODBox); prop = node.FindProperty("Lcl Translation"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.LclTranslation); Assert.True(node.LclTranslation.IsValid()); Assert.AreEqual("Lcl Translation", node.LclTranslation.GetName()); Assert.AreSame(prop, node.LclTranslation); prop = node.FindProperty("Lcl Rotation"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.LclRotation); Assert.True(node.LclRotation.IsValid()); Assert.AreEqual("Lcl Rotation", node.LclRotation.GetName()); Assert.AreSame(prop, node.LclRotation); prop = node.FindProperty("Lcl Scaling"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.LclScaling); Assert.True(node.LclScaling.IsValid()); Assert.AreEqual("Lcl Scaling", node.LclScaling.GetName()); Assert.AreSame(prop, node.LclScaling); prop = node.FindProperty("Visibility"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.Visibility); Assert.True(node.Visibility.IsValid()); Assert.AreEqual("Visibility", node.Visibility.GetName()); Assert.AreSame(prop, node.Visibility); prop = node.FindProperty("Visibility Inheritance"); Assert.NotNull(prop); Assert.True(prop.IsValid()); Assert.NotNull(node.VisibilityInheritance); Assert.True(node.VisibilityInheritance.IsValid()); Assert.AreEqual("Visibility Inheritance", node.VisibilityInheritance.GetName()); Assert.AreSame(prop, node.VisibilityInheritance); }