MGCL V10
V10
MGCL V10
|
MGIgesIfstream read in *.iges; *.igs file, transforming IGES objects to MGCL objects. [詳解]
公開メンバ関数 | |
MG_DLL_DECLR | MGIgesIfstream (const TCHAR *filename) |
Constructors. [詳解] | |
MG_DLL_DECLR bool | good () const |
MG_DLL_DECLR MGIgesIfstream & | operator>> (MGGroup &) |
Operator overload. [詳解] | |
MGGel * | convert_to_gel (int i) const |
Member functions. [詳解] | |
MGGel * | convert_to_gel (const MGIgesDirectoryEntry &de) const |
MG_DLL_DECLR bool | is_open () |
Test if input stream is open. [詳解] | |
MG_DLL_DECLR void | open (const TCHAR *filename) |
MG_DLL_DECLR void | close () |
void | get_one_line (char *lineData, char §ionID_letter, int &sequence, int nchar=72) |
From the current stream position, get one line data. [詳解] | |
MGColor * | convert_color (const MGIgesDirectoryEntry &de) const |
MGEllipse * | convert_arc (const MGIgesDirectoryEntry &de) const |
Convert de to MGEllipse(a newed object). de must be of type 100(Circular Arc). [詳解] | |
MGCompositeCurve * | convert_composite (const MGIgesDirectoryEntry &de) const |
MGObject * | convert_conic_arc (const MGIgesDirectoryEntry &de) const |
MGObject * | convert_plane (const MGIgesDirectoryEntry &de) const |
MGPlane * | convert_planeSurface (const MGIgesDirectoryEntry &de) const |
MGCylinder * | convert_cylinder (const MGIgesDirectoryEntry &de) const |
MGSphere * | convert_sphere (const MGIgesDirectoryEntry &de) const |
MGSphere * | convert_sphere158 (const MGIgesDirectoryEntry &de) const |
Convert de to MGObject(a newed object). de must be of type 158(SPHERE). [詳解] | |
MGStraight * | convert_line (const MGIgesDirectoryEntry &de) const |
MGLBRep * | convert_spline (const MGIgesDirectoryEntry &d) const |
MGPoint * | convert_point (const MGIgesDirectoryEntry &de) const |
MGSurface * | convert_ruled_surface (const MGIgesDirectoryEntry &de) const |
MGSurface * | convert_revolution_surface (const MGIgesDirectoryEntry &de) const |
MGSurface * | convert_tab_cyl (const MGIgesDirectoryEntry &de) const |
MGCurve * | convert_nurbs (const MGIgesDirectoryEntry &de) const |
MGSurface * | convert_nurbs_surface (const MGIgesDirectoryEntry &de) const |
MGFace * | convert_bounded_surface (const MGIgesDirectoryEntry &de) const |
MGFace * | convert_trimmed_surface (const MGIgesDirectoryEntry &de) const |
MGGel * | convert_MSBO (const MGIgesDirectoryEntry &de) const |
MGGroup * | convert_group (const MGIgesDirectoryEntry &de) const |
MGBVertex * | convert_vertex (int vertex_list, int vertex) const |
Convert de(type=502: VERTEX List entries) to MGGroup. [詳解] | |
MGEdge * | convert_edge (int edge_list, int edge) const |
Convert an edge in type=504 edge list entries to MGEdge. [詳解] | |
MGLoop * | convert_loop (const MGIgesDirectoryEntry &de, const MGSurface &srf) const |
MGFace * | convert_face (const MGIgesDirectoryEntry &de) const |
MGShell * | convert_shell (const MGIgesDirectoryEntry &de) const |
void | initialize () |
initialization [詳解] | |
void | transform (const MGIgesDirectoryEntry &de, MGGel &obj) const |
Transform obj if de has the transformation matrix. [詳解] | |
基底クラス MGIgesFstream に属する継承公開メンバ関数 | |
virtual | ~MGIgesFstream () |
Constructors. [詳解] | |
virtual void | initialize (const TCHAR *filename=0) |
Initialize all the member data to the state of no_value_holding. [詳解] | |
int | push_back_DE (MGIgesDirectoryEntry *de) |
Function's return value is the directory entry pointer pushed back. [詳解] | |
MGIgesDirectoryEntry * | directoryEntry (int DEid) |
Return directory entry point of DEid. [詳解] | |
const MGIgesDirectoryEntry * | directoryEntry (int DEid) const |
void | clearStartSection () |
void | clearGSection () |
void | clearDirectoryEntries () |
void | clear () |
void | set_GSec_max_coordinate_value (const MGBox *bx=0) |
void | set_initial_StartSection () |
const MGIgesGSec & | GSection () const |
MGIgesGSec & | GSection () |
int | get_line_number_of_SS () const |
get the output line number of Start Section. [詳解] | |
int | get_line_number_of_GS () const |
get the output line number of Global Sections. [詳解] | |
int | get_line_number_of_DE () const |
get the output line number of Directory Entries. [詳解] | |
公開変数類 | |
MGIgesVertexListMap | m_vertexListMap |
VERTEX list of the directory entry of type 502 vertex. [詳解] | |
MGIges504EdgeListMap | m_edgeListMap |
EDGE list of the directory entry of type 504 edge. [詳解] | |
その他の継承メンバ | |
基底クラス MGIgesFstream に属する継承限定公開変数類 | |
std::string | m_StartSection |
Start section string data. [詳解] | |
MGIgesGSec | m_GSection |
Global section data. [詳解] | |
int | m_nlineGSec |
Number of the lines of Global section. [詳解] | |
MGPvector< MGIgesDirectoryEntry > | m_DirectoryEntries |
MGIgesIfstream read in *.iges; *.igs file, transforming IGES objects to MGCL objects.
MG_DLL_DECLR MGIgesIfstream::MGIgesIfstream | ( | const TCHAR * | filename | ) |
Constructors.
Creates an object of class MGIgesIfstream with a filename.
MG_DLL_DECLR void MGIgesIfstream::close | ( | ) |
MGEllipse* MGIgesIfstream::convert_arc | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de to MGEllipse(a newed object). de must be of type 100(Circular Arc).
MGFace* MGIgesIfstream::convert_bounded_surface | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=143: bounded surface) to MGFace. Returned is a newed object.
MGColor* MGIgesIfstream::convert_color | ( | const MGIgesDirectoryEntry & | de | ) | const |
MGCompositeCurve* MGIgesIfstream::convert_composite | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de to MGCompositeCurve(a newed object). de must be of type 102 (Composite curve).
MGObject* MGIgesIfstream::convert_conic_arc | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de to MGObject(a newed object). de must be of type 104(conic arc). Output MGObject is a MGEllipse, or MGRLBRep(when the arc is parabola or hyperbola).
MGCylinder* MGIgesIfstream::convert_cylinder | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de to MGObject(a newed object). de must be of type 192 (Right circular cylindrical surface). Output MGObject is a MGCylinder(unbounded infinite cylinder).
MGEdge* MGIgesIfstream::convert_edge | ( | int | edge_list, |
int | edge | ||
) | const |
Convert an edge in type=504 edge list entries to MGEdge.
edge_list | the DE index of the EDGE List Entry. |
edge | List index of the start vertex in the EDGE List DE. |
MGFace* MGIgesIfstream::convert_face | ( | const MGIgesDirectoryEntry & | de | ) | const |
MGGroup* MGIgesIfstream::convert_group | ( | const MGIgesDirectoryEntry & | de | ) | const |
MGStraight* MGIgesIfstream::convert_line | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=110: LINE) to MGStraigh. Returned is a newed object.
MGLoop* MGIgesIfstream::convert_loop | ( | const MGIgesDirectoryEntry & | de, |
const MGSurface & | srf | ||
) | const |
MGGel* MGIgesIfstream::convert_MSBO | ( | const MGIgesDirectoryEntry & | de | ) | const |
MGCurve* MGIgesIfstream::convert_nurbs | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=126: Rational b-spline) to MGCurve(MGLBRep or MBRLBRep). Returned is a newed object.
MGSurface* MGIgesIfstream::convert_nurbs_surface | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=128: NURBS surface) to MGSurface(MGSBRep or MGRSBRep). Returned is a newed object.
MGObject* MGIgesIfstream::convert_plane | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=108:Plane) to MGObject(MGPlane or MGFace). Returned is a newed object.
MGPlane* MGIgesIfstream::convert_planeSurface | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de to MGObject(a newed object). de must be of type 190(Plane Surface). Output MGObject is a MGPlane(unbounded infinite plane).
MGPoint* MGIgesIfstream::convert_point | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=116: point) to MGPoint. Returned is a newed object.
MGSurface* MGIgesIfstream::convert_revolution_surface | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=120: Revolution surface) to MGSurface. Returned is a newed object.
MGSurface* MGIgesIfstream::convert_ruled_surface | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=118: Ruled surface) to MGSBRep. Returned is a newed object.
MGShell* MGIgesIfstream::convert_shell | ( | const MGIgesDirectoryEntry & | de | ) | const |
MGSphere* MGIgesIfstream::convert_sphere | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de to MGObject(a newed object). de must be of type 196 (Sphere surface). Output MGObject is a MGSphere.
MGSphere* MGIgesIfstream::convert_sphere158 | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de to MGObject(a newed object). de must be of type 158(SPHERE).
MGLBRep* MGIgesIfstream::convert_spline | ( | const MGIgesDirectoryEntry & | d | ) | const |
Convert de(type=112: spline curve) to MGLBRep. Returned is a newed object.
MGSurface* MGIgesIfstream::convert_tab_cyl | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=122: Tabulated cylinder) to MGSurface. Returned is a newed object.
MGGel* MGIgesIfstream::convert_to_gel | ( | int | i | ) | const |
Member functions.
Convert i-th MGIgesDirectoryEntry object(m_DirectoryEntries[i]) to MGObject that is a newed object. When de was not an independent object, null will be returned. The 2nd form convert from MGIgesDirectoryEntry.
MGGel* MGIgesIfstream::convert_to_gel | ( | const MGIgesDirectoryEntry & | de | ) | const |
MGFace* MGIgesIfstream::convert_trimmed_surface | ( | const MGIgesDirectoryEntry & | de | ) | const |
Convert de(type=144: Trimmed surface) to MGFace. Returned is a newed object.
MGBVertex* MGIgesIfstream::convert_vertex | ( | int | vertex_list, |
int | vertex | ||
) | const |
Convert de(type=502: VERTEX List entries) to MGGroup.
vertex_list | the DE index of the VERTEX List Entry. |
vertex | List index of the vertices in ertex List Entry DE. |
void MGIgesIfstream::get_one_line | ( | char * | lineData, |
char & | sectionID_letter, | ||
int & | sequence, | ||
int | nchar = 72 |
||
) |
From the current stream position, get one line data.
lineData | line data without ID letter and sequence number (that is, from column 1 to nchar) will be output. buffer length must be >=(nchar+1). |
sectionID_letter | section identification letter of the line. |
sequence | ascending sequence number of the line. |
nchar | number of characters of one line (When Parameter Data section nchar=64. Otherwise, nchar=72) |
|
inline |
Test if input stream is good(). True will be returned when good.
void MGIgesIfstream::initialize | ( | ) |
initialization
|
inline |
Test if input stream is open.
MG_DLL_DECLR void MGIgesIfstream::open | ( | const TCHAR * | filename | ) |
Open the file. When this is opened already, this will be closed, then will be opened.
MG_DLL_DECLR MGIgesIfstream& MGIgesIfstream::operator>> | ( | MGGroup & | ) |
Operator overload.
Reads all objects of the IGES stored in the file as MGCL objects.
void MGIgesIfstream::transform | ( | const MGIgesDirectoryEntry & | de, |
MGGel & | obj | ||
) | const |
Transform obj if de has the transformation matrix.
de | de of the object obj. |
obj | Object to transform. |
|
mutable |
EDGE list of the directory entry of type 504 edge.
|
mutable |
VERTEX list of the directory entry of type 502 vertex.