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

MGIgesIfstream read in *.iges; *.igs file, transforming IGES objects to MGCL objects. [詳解]

MGIgesIfstream の継承関係図
MGIgesFstream

公開メンバ関数

MG_DLL_DECLR MGIgesIfstream (const TCHAR *filename)
 Constructors. [詳解]
 
MG_DLL_DECLR bool good () const
 
MG_DLL_DECLR MGIgesIfstreamoperator>> (MGGroup &)
 Operator overload. [詳解]
 
MGGelconvert_to_gel (int i) const
 Member functions. [詳解]
 
MGGelconvert_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 &sectionID_letter, int &sequence, int nchar=72)
 From the current stream position, get one line data. [詳解]
 
MGColorconvert_color (const MGIgesDirectoryEntry &de) const
 
MGEllipseconvert_arc (const MGIgesDirectoryEntry &de) const
 Convert de to MGEllipse(a newed object). de must be of type 100(Circular Arc). [詳解]
 
MGCompositeCurveconvert_composite (const MGIgesDirectoryEntry &de) const
 
MGObjectconvert_conic_arc (const MGIgesDirectoryEntry &de) const
 
MGObjectconvert_plane (const MGIgesDirectoryEntry &de) const
 
MGPlaneconvert_planeSurface (const MGIgesDirectoryEntry &de) const
 
MGCylinderconvert_cylinder (const MGIgesDirectoryEntry &de) const
 
MGSphereconvert_sphere (const MGIgesDirectoryEntry &de) const
 
MGSphereconvert_sphere158 (const MGIgesDirectoryEntry &de) const
 Convert de to MGObject(a newed object). de must be of type 158(SPHERE). [詳解]
 
MGStraightconvert_line (const MGIgesDirectoryEntry &de) const
 
MGLBRepconvert_spline (const MGIgesDirectoryEntry &d) const
 
MGPointconvert_point (const MGIgesDirectoryEntry &de) const
 
MGSurfaceconvert_ruled_surface (const MGIgesDirectoryEntry &de) const
 
MGSurfaceconvert_revolution_surface (const MGIgesDirectoryEntry &de) const
 
MGSurfaceconvert_tab_cyl (const MGIgesDirectoryEntry &de) const
 
MGCurveconvert_nurbs (const MGIgesDirectoryEntry &de) const
 
MGSurfaceconvert_nurbs_surface (const MGIgesDirectoryEntry &de) const
 
MGFaceconvert_bounded_surface (const MGIgesDirectoryEntry &de) const
 
MGFaceconvert_trimmed_surface (const MGIgesDirectoryEntry &de) const
 
MGGelconvert_MSBO (const MGIgesDirectoryEntry &de) const
 
MGGroupconvert_group (const MGIgesDirectoryEntry &de) const
 
MGBVertexconvert_vertex (int vertex_list, int vertex) const
 Convert de(type=502: VERTEX List entries) to MGGroup. [詳解]
 
MGEdgeconvert_edge (int edge_list, int edge) const
 Convert an edge in type=504 edge list entries to MGEdge. [詳解]
 
MGLoopconvert_loop (const MGIgesDirectoryEntry &de, const MGSurface &srf) const
 
MGFaceconvert_face (const MGIgesDirectoryEntry &de) const
 
MGShellconvert_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. [詳解]
 
MGIgesDirectoryEntrydirectoryEntry (int DEid)
 Return directory entry point of DEid. [詳解]
 
const MGIgesDirectoryEntrydirectoryEntry (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 MGIgesGSecGSection () const
 
MGIgesGSecGSection ()
 
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< MGIgesDirectoryEntrym_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

Convert de(type=314: Color definition entity) to MGColor. Returned is a newed MGColor.

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_listthe DE index of the EDGE List Entry.
edgeList index of the start vertex in the EDGE List DE.
MGFace* MGIgesIfstream::convert_face ( const MGIgesDirectoryEntry de) const

Convert de(type=510: FACE) to MGFace. Returned is a newed MGFace object.

引数
depointer to the DE of the FACE Entry.
MGGroup* MGIgesIfstream::convert_group ( const MGIgesDirectoryEntry de) const

Convert de(type=402: Associatibity entries) to MGGroup. Accepted type numbers are only group associativity: form number 1,7,14, and 15 Returned is a newed MGGroup.

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

Convert de(type=508: LOOP entry) to MGLoop. Returned is a newed MGLoop object.

引数
dedirectory entry of type 508.
srfBase surface whose boundary loo this loop will make.
MGGel* MGIgesIfstream::convert_MSBO ( const MGIgesDirectoryEntry de) const

Convert de(type=186: Manifold Solid B-Rep Object) to MGGell. Returned is a newed MGGel. When MSBO has one or more void shells, MSBO is represented as a MGGroup. When MSBO does not have a void, MSBO is represented as a MGShell.

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

Convert de(type=514: SHELL) to MGShell. Returned is a newed MGShell object.

引数
depointer to the DE of the SHELL Entry.
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_listthe DE index of the VERTEX List Entry.
vertexList 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.

引数
lineDataline data without ID letter and sequence number (that is, from column 1 to nchar) will be output. buffer length must be >=(nchar+1).
sectionID_lettersection identification letter of the line.
sequenceascending sequence number of the line.
ncharnumber of characters of one line (When Parameter Data section nchar=64. Otherwise, nchar=72)
MG_DLL_DECLR bool MGIgesIfstream::good ( ) const
inline

Test if input stream is good(). True will be returned when good.

void MGIgesIfstream::initialize ( )

initialization

MG_DLL_DECLR bool MGIgesIfstream::is_open ( )
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.

引数
dede of the object obj.
objObject to transform.

メンバ詳解

MGIges504EdgeListMap MGIgesIfstream::m_edgeListMap
mutable

EDGE list of the directory entry of type 504 edge.

MGIgesVertexListMap MGIgesIfstream::m_vertexListMap
mutable

VERTEX list of the directory entry of type 502 vertex.


このクラス詳解は次のファイルから抽出されました: