本文整理汇总了C++中ofstream::unsetf方法的典型用法代码示例。如果您正苦于以下问题:C++ ofstream::unsetf方法的具体用法?C++ ofstream::unsetf怎么用?C++ ofstream::unsetf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ofstream
的用法示例。
在下文中一共展示了ofstream::unsetf方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: writePOVSphere
//**********************************************************************************************
bool writePOVSphere(ofstream &ofil,int nt,
solreal xx,solreal yy,solreal zz, solreal rr)
{
int indlev=nt;
string thetabs=indTabsStr(indlev);
ofil << thetabs << "sphere { " << endl;
indlev++; thetabs=indTabsStr(indlev);
ofil << thetabs;
ofil << scientific << setprecision(8);
writePoVVector(ofil,xx,yy,zz);
ofil << ", " << rr << endl;
indlev--; thetabs=indTabsStr(indlev);
ofil << thetabs << "}" << endl;
ofil.unsetf(ios::scientific);
return true;
}
示例2: writePOVCylinder
//**********************************************************************************************
bool writePOVCylinder(ofstream &ofil,int nt,
solreal xa, solreal ya, solreal za,
solreal xb, solreal yb, solreal zb, solreal rr)
{
int indlev=nt;
string thetabs=indTabsStr(indlev);
ofil << thetabs << "cylinder { " << endl;
indlev++; thetabs=indTabsStr(indlev);
ofil << thetabs;
ofil << scientific << setprecision(8);
writePoVVector(ofil,xa,ya,za);
ofil << "," << endl << thetabs;
writePoVVector(ofil,xb,yb,zb);
ofil << ", " << rr << endl;
indlev--; thetabs=indTabsStr(indlev);
ofil << thetabs << "}" << endl;
ofil.unsetf(ios::scientific);
return true;
}
示例3: writePOVTransparentSphere
//**********************************************************************************************
bool writePOVTransparentSphere(ofstream &ofil,int nt,
solreal xx,solreal yy,solreal zz, solreal rr,
solreal cr,solreal cg, solreal cb,solreal trc)
{
int indlev=nt;
string thetabs=indTabsStr(indlev);
ofil << thetabs << "sphere { " << endl;
indlev++; thetabs=indTabsStr(indlev);
ofil << thetabs;
ofil << scientific << setprecision(8);
writePoVVector(ofil,xx,yy,zz);
ofil << ", " << rr << endl;
ofil << thetabs << "pigment { rgb ";
writePoVVector(ofil,cr,cg,cb);
ofil << "transmit " << trc << "}" << endl;
indlev--; thetabs=indTabsStr(indlev);
ofil << thetabs << "}" << endl;
ofil.unsetf(ios::scientific);
return true;
}