MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
MGIges 名前空間

列挙型

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 &sectionID_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.

列挙型詳解

列挙値
Null 

Null Entity.

CIRCULAR_ARC 

Circular Arc Entity Entity.

COMPOSITE_CURVE 

Composite Curve Entity.

CONIC_ARC 

Conic Arc Entity.

PLANE 

Plane Entity.

LINE 

Line Entity.

PARAMETRIC_SPLINE_CURVE 

Parametric Spline Curve Entity.

POINT 

Point Entity.

RULED_SURFACE 

Ruled Surface Entity.

SURFACE_OF_REVOLUTION 

Surface of Revolution Entity.

TABULATED_CYLINDER 

Tabulated Cylinder Entity.

DIRECTION 

Direction Entity.

TRANSFORMATION_MATRIX 

Transformation Matrix Entity.

RATIONAL_BSPLINE_CURVE 

Rational B-Spline Curve Entity.

RATIONAL_BSPLINE_SURFACE 

Rational B-Spline Surface Entity.

BOUNDARY 

Boundary Entity.

CURVE_ON_PARAMETRIC_SURFACE 

Curve on a Parameteric Surface Entity.

BOUNDED_SURFACE 

Bounded Surface Entity.

TRIMMED_SURFACE 

Trimmed(Parametric) Surface Entity.

SPHERE 

Sphere Entity.

MANIFOLD_SOLID_BREP_OBJECT 

Manifole Solid B-Rep Object Entity.

PLANE_SURFACE 

Plane Surface Entity.

RIGHT_CIRCULAR_CYLINDRICAL_SURFACE 

Right Circular Cylinderical Surface Entity.

SPHERICAL_SURFACE 

Spherical Surface Entity.

COLOR_DEFINITION 

Color Definition Entity.

ASSOCIATIVITY_INSTANCE 

Associativity Instance Entity.

VERTEX 

Vertex Entity.

EDGE 

Edge Entity.

LOOP 

Loop Entity.

FACE 

Face Entity.

SHELL 

Shell Entity.

関数詳解

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.

引数
pDelimeterparameter delimeter
istrmInput string stream that contains integer data. The stream pointer will be advanced to the start position of the next item.
DEpointeroutput 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.

引数
pDelimeterparameter delimeter
istrmInput string stream that contains Hollerith data. The stream pointer will be advanced to the start position of the next item.
strngDataoutput 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.

引数
lineInput whole line data(1-80)
sectionID_lettersection identification letter of the line will be output.
sequenceascending 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.

引数
pDelimeterparameter delimeter
istrmInput string stream that contains integer data. The stream pointer will be advanced to the start position of the next item.
intDataoutput integer data that is converted from the istrm data.
MG_DLL_DECLR bool MGIges::get_integer ( char  pDelimeter,
std::istringstream &  istrm,
short &  shortData 
)
引数
pDelimeterparameter delimeter
istrmInput string stream that contains integer data. The stream pointer will be advanced to the start position of the next item.
shortDataoutput 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.

引数
pDelimeterparameter delimeter
istrmInput string stream that contains real data. The stream pointer will be advanced to the start position of the next item.
realDataconverted real data from istrm will be output.
MG_DLL_DECLR bool MGIges::get_real ( char  pDelimeter,
std::istringstream &  istrm,
float &  floatData 
)
引数
pDelimeterparameter delimeter
istrmInput string stream that contains real data. The stream pointer will be advanced to the start position of the next item.
floatDataconverted 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).

引数
DEpointerDE pointer to output.
gsecInput Global Section.
plinesoutput 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.

引数
strngDatastring data to output, will be converted to Hollerith data.
gsecInput Global Section
plinesoutput 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_lenline 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.

引数
idatainteger to output.
gsecInput Global Section
plinesoutput 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_lenline 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.

引数
rdatadouble data to output.
gsecInput Global Section
plinesoutput 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_lenline length to output, =64(for Parameter data section) or 72.