//===============================================================================================
Graphic3d_Vec3 ViewerTest_CmdParser::ArgVec3f (const std::string& theOptionName, Standard_Integer theArgumentIndex)
{
- return Graphic3d_Vec3 (static_cast<Standard_ShortReal> (Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str())),
- static_cast<Standard_ShortReal> (Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str())),
- static_cast<Standard_ShortReal> (Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str())));
+ return Graphic3d_Vec3 (static_cast<Standard_ShortReal> (Draw::Atof (Arg (theOptionName, theArgumentIndex ).c_str())),
+ static_cast<Standard_ShortReal> (Draw::Atof (Arg (theOptionName, theArgumentIndex + 1).c_str())),
+ static_cast<Standard_ShortReal> (Draw::Atof (Arg (theOptionName, theArgumentIndex + 2).c_str())));
}
//===============================================================================================
//===============================================================================================
Graphic3d_Vec3d ViewerTest_CmdParser::ArgVec3d (const std::string& theOptionName, Standard_Integer theArgumentIndex)
{
- return Graphic3d_Vec3d ( Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()),
- Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()),
- Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()));
+ return Graphic3d_Vec3d ( Draw::Atof (Arg (theOptionName, theArgumentIndex ).c_str()),
+ Draw::Atof (Arg (theOptionName, theArgumentIndex + 1).c_str()),
+ Draw::Atof (Arg (theOptionName, theArgumentIndex + 2).c_str()));
}
//===============================================================================================
//===============================================================================================
gp_Vec ViewerTest_CmdParser::ArgVec (const std::string& theOptionName, Standard_Integer theArgumentIndex)
{
- return gp_Vec ( Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()),
- Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()),
- Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()));
+ return gp_Vec ( Draw::Atof (Arg (theOptionName, theArgumentIndex ).c_str()),
+ Draw::Atof (Arg (theOptionName, theArgumentIndex + 1).c_str()),
+ Draw::Atof (Arg (theOptionName, theArgumentIndex + 2).c_str()));
}
//===============================================================================================
//===============================================================================================
gp_Pnt ViewerTest_CmdParser::ArgPnt (const std::string& theOptionName, Standard_Integer theArgumentIndex)
{
- return gp_Pnt ( Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()),
- Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()),
- Draw::Atof (Arg (theOptionName, theArgumentIndex).c_str()));
+ return gp_Pnt ( Draw::Atof (Arg (theOptionName, theArgumentIndex ).c_str()),
+ Draw::Atof (Arg (theOptionName, theArgumentIndex + 1).c_str()),
+ Draw::Atof (Arg (theOptionName, theArgumentIndex + 2).c_str()));
}
//===============================================================================================