MGCL V10
V10
MGCL V10
|
列挙型 | |
enum | EntityTypeNumber { Null =0, CIRCULAR_ARC =100, COMPOSITE_CURVE =102, CONIC_ARC =104, PLANE =108, LINE =110, PARAMETRIC_SPLINE_CURVE =112, POINT =116, RULED_SURFACE =118, SURFACE_OF_REVOLUTION =120, TABULATED_CYLINDER =122, DIRECTION =123, TRANSFORMATION_MATRIX =124, RATIONAL_BSPLINE_CURVE =126, RATIONAL_BSPLINE_SURFACE =128, BOUNDARY =141, CURVE_ON_PARAMETRIC_SURFACE =142, BOUNDED_SURFACE =143, TRIMMED_SURFACE =144, SPHERE =158, MANIFOLD_SOLID_BREP_OBJECT =186, PLANE_SURFACE =190, RIGHT_CIRCULAR_CYLINDRICAL_SURFACE =192, SPHERICAL_SURFACE =196, COLOR_DEFINITION =314, ASSOCIATIVITY_INSTANCE =402, VERTEX =502, EDGE =504, LOOP =508, FACE =510, SHELL =514 } |
関数 | |
int | DEpointer_to_lnumber (int DEpointer) |
int | lnumber_to_DEpointer (int line_number) |
bool | get_DEpointer (char pDelimeter, std::istringstream &istrm, int &DEpointer) |
bool | get_Hollerith_string (char pDelimeter, std::istringstream &istrm, std::string &strngData) |
MG_DLL_DECLR bool | get_integer (char pDelimeter, std::istringstream &istrm, int &intData) |
MG_DLL_DECLR bool | get_integer (char pDelimeter, std::istringstream &istrm, short &shortData) |
MG_DLL_DECLR bool | get_real (char pDelimeter, std::istringstream &istrm, double &realData) |
MG_DLL_DECLR bool | get_real (char pDelimeter, std::istringstream &istrm, float &floatData) |
void | get_ID_sequence (const std::string &line, char §ionID_letter, int &sequence) |
convert the line id into int(sequence), inputting one line. [詳解] | |
MG_DLL_DECLR void | put_integer (int idata, const MGIgesGSec &gsec, MGPvector< std::string > &plines, int line_len=64) |
MG_DLL_DECLR void | put_real (double rdata, const MGIgesGSec &gsec, MGPvector< std::string > &plines, int line_len=64) |
void | put_Hollerith_string (const std::string &strngData, const MGIgesGSec &gsec, MGPvector< std::string > &plines, int line_len=64) |
void | put_DEpointer (int DEpointer, const MGIgesGSec &gsec, MGPvector< std::string > &plines) |
void | append_record_delimeter (char record_del, MGPvector< std::string > &plines, int line_len=64) |
append record delimeter to plines. [詳解] | |
Define namespace for Iges functions. all of the number of Iges Parameter Data Section is defined here as a name.
void MGIges::append_record_delimeter | ( | char | record_del, |
MGPvector< std::string > & | plines, | ||
int | line_len = 64 |
||
) |
append record delimeter to plines.
int MGIges::DEpointer_to_lnumber | ( | int | DEpointer | ) |
Convert an MGIgesFstream's DE pointer to the line number to store in IGES file. line_number=2*DEpointer-1;
bool MGIges::get_DEpointer | ( | char | pDelimeter, |
std::istringstream & | istrm, | ||
int & | DEpointer | ||
) |
Read in DE pointer into DEpointer. Line number in the istrm is converted to DE pointer. Function's return value is true: when value specified. false:when value not specified, DEpointer be 0.
pDelimeter | parameter delimeter |
istrm | Input string stream that contains integer data. The stream pointer will be advanced to the start position of the next item. |
DEpointer | output integer data that is converted from the istrm data. |
bool MGIges::get_Hollerith_string | ( | char | pDelimeter, |
std::istringstream & | istrm, | ||
std::string & | strngData | ||
) |
Read in Hollerith_string into strngData. Function's return value is true: when value specified, strngData.size() be >0. false:when value not specified, strngData.size() be 0.
pDelimeter | parameter delimeter |
istrm | Input string stream that contains Hollerith data. The stream pointer will be advanced to the start position of the next item. |
strngData | output string data that is converted from the istrm's Hollerith data. |
void MGIges::get_ID_sequence | ( | const std::string & | line, |
char & | sectionID_letter, | ||
int & | sequence | ||
) |
convert the line id into int(sequence), inputting one line.
line | Input whole line data(1-80) |
sectionID_letter | section identification letter of the line will be output. |
sequence | ascending sequence number of the line. |
MG_DLL_DECLR bool MGIges::get_integer | ( | char | pDelimeter, |
std::istringstream & | istrm, | ||
int & | intData | ||
) |
Read in integer_string into intData. Function's return value is true: when value specified. false:when value not specified, intData be 0.
pDelimeter | parameter delimeter |
istrm | Input string stream that contains integer data. The stream pointer will be advanced to the start position of the next item. |
intData | output integer data that is converted from the istrm data. |
MG_DLL_DECLR bool MGIges::get_integer | ( | char | pDelimeter, |
std::istringstream & | istrm, | ||
short & | shortData | ||
) |
pDelimeter | parameter delimeter |
istrm | Input string stream that contains integer data. The stream pointer will be advanced to the start position of the next item. |
shortData | output integer data that is converted from the istrm data. |
MG_DLL_DECLR bool MGIges::get_real | ( | char | pDelimeter, |
std::istringstream & | istrm, | ||
double & | realData | ||
) |
Read in real_string into realData Function's return value is true: when value specified. false:when value not specified, realData be 0.
pDelimeter | parameter delimeter |
istrm | Input string stream that contains real data. The stream pointer will be advanced to the start position of the next item. |
realData | converted real data from istrm will be output. |
MG_DLL_DECLR bool MGIges::get_real | ( | char | pDelimeter, |
std::istringstream & | istrm, | ||
float & | floatData | ||
) |
pDelimeter | parameter delimeter |
istrm | Input string stream that contains real data. The stream pointer will be advanced to the start position of the next item. |
floatData | converted real data from istrm will be output. |
int MGIges::lnumber_to_DEpointer | ( | int | line_number | ) |
Convert a line number stored in IGES file to the MGIgesFstream's DE pointer. DEpointer=(line_number+1)/2
void MGIges::put_DEpointer | ( | int | DEpointer, |
const MGIgesGSec & | gsec, | ||
MGPvector< std::string > & | plines | ||
) |
Put DE pointer data into plines, converting into line number from DE pointer. Except for string data, one integer or double data is output into one line, not striding over more than one lines. line length to output is always 64(for Parameter data section).
DEpointer | DE pointer to output. |
gsec | Input Global Section. |
plines | output plines. lines will be added to input plines. When plines.size()==0, a new-ed std::string whose size()<=63 will be appended. When plines.size()>0, let endpline=plines.back(). When (*endpline) can hold the input data, the data will be appended onto (*endpline). If one std::string was not enough to store data(greater than 63 characters), new lines of std::string will be created to append after plines. |
void MGIges::put_Hollerith_string | ( | const std::string & | strngData, |
const MGIgesGSec & | gsec, | ||
MGPvector< std::string > & | plines, | ||
int | line_len = 64 |
||
) |
Put string data into plines, converting into Hollerith string. Only when string data is output(to Holleris string), the data may stride over more than one lines.
strngData | string data to output, will be converted to Hollerith data. |
gsec | Input Global Section |
plines | output plines. lines will be added to input plines. When plines.size()==0, a new-ed std::string whose size()<=63 will be appended. When plines.size()>0, let endpline=plines.back(). When (*endpline) can hold the input data, the data will be appended onto (*endpline). If one std::string was not enough to store data(greater than 63 characters), new lines of std::string will be created to append after plines. |
line_len | line length to output, =64(for Parameter data section) or 72. |
MG_DLL_DECLR void MGIges::put_integer | ( | int | idata, |
const MGIgesGSec & | gsec, | ||
MGPvector< std::string > & | plines, | ||
int | line_len = 64 |
||
) |
Put integer data into plines, converting into string. Except for string data, one integer or double data is output into one line, not striding over more than one lines.
idata | integer to output. |
gsec | Input Global Section |
plines | output plines. lines will be added to input plines. When plines.size()==0, a new-ed std::string whose size()<=63 will be appended. When plines.size()>0, let endpline=plines.back(). When (*endpline) can hold the input data, the data will be appended onto (*endpline). If one std::string was not enough to store data(greater than 63 characters), new lines of std::string will be created to append after plines. |
line_len | line length to output, =64(for Parameter data section) or 72. |
MG_DLL_DECLR void MGIges::put_real | ( | double | rdata, |
const MGIgesGSec & | gsec, | ||
MGPvector< std::string > & | plines, | ||
int | line_len = 64 |
||
) |
Put real data into plines, converting into string. Except for string data, one integer or double data is output into one line, not striding over more than one lines.
rdata | double data to output. |
gsec | Input Global Section |
plines | output plines. lines will be added to input plines. When plines.size()==0, a new-ed std::string whose size()<=63 will be appended. When plines.size()>0, let endpline=plines.back(). When (*endpline) can hold the input data, the data will be appended onto (*endpline). If one std::string was not enough to store data(greater than 63 characters), new lines of std::string will be created to append after plines. |
line_len | line length to output, =64(for Parameter data section) or 72. |