本文整理汇总了C#中DataStore.CircleArguJudge方法的典型用法代码示例。如果您正苦于以下问题:C# DataStore.CircleArguJudge方法的具体用法?C# DataStore.CircleArguJudge怎么用?C# DataStore.CircleArguJudge使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataStore
的用法示例。
在下文中一共展示了DataStore.CircleArguJudge方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Code_Check
//.........这里部分代码省略.........
{
//绝对坐标
if(ModalState.AbsoluteCooCheck() == (int)CheckInformation.AbsouteCoo)
{
program_position = step_compile_data.AbsolutePosition(display_position);
step_motion_data.Direction = program_position - display_position;
step_motion_data.SetRemainingMovement();
step_motion_data.Velocity = ModalState.Feedrate;
step_motion_data.Time_Value = step_motion_data.Direction.magnitude / step_motion_data.Velocity * 60;
virtual_position += step_motion_data.Direction;
step_motion_data.SetTargetPosition(program_position, virtual_position);
}
//增量坐标
else
{
}
}
//英制单位
else
{
}
break;
case (int)MotionType.Circular02:
if(ModalState.Feedrate == 0)
{
_errorMessage = "(Line:" + row_index + "): " + "未指定进给速率!";
_compileInfo.Add(ErrorMessage);
return false;
}
step_motion_data.SetStartPosition(display_position, virtual_position);
//公制单位
if(ModalState.UnitCheck() == (int)CheckInformation.MetricSystem)
{
//绝对坐标
Vector3 xyz_coo = new Vector3(0, 0, 0);
Vector3 ijk_coo = new Vector3(0, 0, 0);
float rValue = 0;
if(ModalState.AbsoluteCooCheck() == (int)CheckInformation.AbsouteCoo)
{
switch(step_compile_data.CircleArguJudge(ref _errorMessage, ModalState, ref ijk_coo, ref xyz_coo, ref rValue))
{
case -1:
_errorMessage = "(Line:" + row_index + "): " + _errorMessage;
_compileInfo.Add(ErrorMessage);
return false;
case 0:
step_motion_data.Motion_Type = -1;
return true;
case 1:
step_motion_data.Center_Point = display_position + ijk_coo;
step_motion_data.Rotate_Degree = 360f;
break;
}
program_position = step_compile_data.AbsolutePosition(display_position);
step_motion_data.Direction = program_position - display_position;
step_motion_data.SetRemainingMovement();
step_motion_data.Velocity = ModalState.Feedrate;
step_motion_data.Time_Value = step_motion_data.Direction.magnitude / step_motion_data.Velocity * 60;
virtual_position += step_motion_data.Direction;
step_motion_data.SetTargetPosition(program_position, virtual_position);
}
//增量坐标
else
{
}
}
//英制单位
else
{
}
break;
case (int)MotionType.Circular03:
break;
default:
_errorMessage = "(Line:" + row_index + "): " + "当前系统暂不支持Motion Type: " + step_compile_data.motion_type;
_compileInfo.Add(ErrorMessage);
return false;
}
}//3 level
}//1 level
if(step_compile_data.slash_value > 0)
{
if(ModalState.Slash)
return true;
}
return true;
}//compile level
else
return false;
}