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

MGOgesIfstream write out to *.iges file, transforming MGCL objects to IGES objects. [詳解]

MGIgesOfstream の継承関係図
MGIgesFstream

公開メンバ関数

 MGIgesOfstream (const TCHAR *filename=0, const MGBox *bx=0)
 Creates an object of class MGIgesOfstream with a filename. [詳解]
 
 MGIgesOfstream (const CString &filename, const MGBox *bx=0)
 Creates an object of class MGIgesOfstream with a filename. [詳解]
 
 ~MGIgesOfstream ()
 Destroys an object of class MGIgesOfstream. [詳解]
 
MGIgesOfstreamoperator<< (const MGGel &)
 Operator overload. [詳解]
 
MGIgesOfstreamoperator<< (const MGGroup &)
 
std::ofstream & get_ofstream ()
 Member functions. [詳解]
 
bool is_open ()
 Test if output stream is open. [詳解]
 
void open (const TCHAR *filename, const MGBox *bx=0)
 
void close ()
 
int create_de (MGIgesPD *pd, const std::string &EntityLabel, int ses=0, const MGAttribedGel *gel=0, int FormNumber=0)
 
bool good () const
 
void append_param_line (MGIgesParamLine *pline)
 
int get_next_param_line_count () const
 Get the next parameter data section record counter. [詳解]
 
int get_line_number_of_PD () const
 get the output line number of Parameter Data Section. [詳解]
 
void write_out_start_section ()
 Write out start and terminate section into output file stream. [詳解]
 
void write_out_terminate_section ()
 
void write_out_DE_PD_lines ()
 
void write_out_PD_plines ()
 
std::ofstream & ofstrm ()
 Obtain output file stream reference. [詳解]
 
- 基底クラス 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. [詳解]
 

その他の継承メンバ

- 基底クラス 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
 

詳解

MGOgesIfstream write out to *.iges file, transforming MGCL objects to IGES objects.

構築子と解体子

MGIgesOfstream::MGIgesOfstream ( const TCHAR *  filename = 0,
const MGBox bx = 0 
)

Creates an object of class MGIgesOfstream with a filename.

MGIgesOfstream::MGIgesOfstream ( const CString &  filename,
const MGBox bx = 0 
)

Creates an object of class MGIgesOfstream with a filename.

MGIgesOfstream::~MGIgesOfstream ( )

Destroys an object of class MGIgesOfstream.

関数詳解

void MGIgesOfstream::append_param_line ( MGIgesParamLine pline)
inline

Append a line of parameter data section record. pline must be a newed object, and the ownership will be transfered to this MGIgesOfstream class object.

void MGIgesOfstream::close ( )
int MGIgesOfstream::create_de ( MGIgesPD pd,
const std::string &  EntityLabel,
int  ses = 0,
const MGAttribedGel gel = 0,
int  FormNumber = 0 
)

Create de as a newed object, and push back to this MGIgesOfstream. The ownership of pd is transfered to the created DE, and the ownership of the created DE will be transfered to this MGIgesOfstream. Function's return value is the DE id created. If DE pointer is necessary, get_DE() is the one. SubordinateEntitySwitch is set as independent when gel is input, and set as PLDependent when gel is not input(input as null).

引数
pdnewed MGIgesPD object.
EntityLabelEntity label.
sesSubordinate entity switch. Default=independent.
gelwhen gel=0 is input, De will be set as dependent.
FormNumberForm number
int MGIgesOfstream::get_line_number_of_PD ( ) const
inline

get the output line number of Parameter Data Section.

int MGIgesOfstream::get_next_param_line_count ( ) const
inline

Get the next parameter data section record counter.

std::ofstream& MGIgesOfstream::get_ofstream ( )
inline

Member functions.

Get the reference of the output stream.

bool MGIgesOfstream::good ( ) const
inline

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

bool MGIgesOfstream::is_open ( )
inline

Test if output stream is open.

std::ofstream& MGIgesOfstream::ofstrm ( )
inline

Obtain output file stream reference.

void MGIgesOfstream::open ( const TCHAR *  filename,
const MGBox bx = 0 
)

Open the file. When this is opened already, this will be closed, then will be opened.

MGIgesOfstream& MGIgesOfstream::operator<< ( const MGGel )

Operator overload.

Writes an object of the MGCL as an object of the IGES.

MGIgesOfstream& MGIgesOfstream::operator<< ( const MGGroup )

Writes all objects of the MGGroup stored in group as IGES objects.

void MGIgesOfstream::write_out_DE_PD_lines ( )

Write out DE lines to output file stream, together with PD lines. write_out_DE_PD_lines outputs all the DEs and PDs using write_out_PD_pline for each DE.

void MGIgesOfstream::write_out_PD_plines ( )

Write out all the Paramete Data Lines in m_plines to output file stream. m_plines[i] is one parameter data lines of IGES file for 0<=i<m_plines.size().

void MGIgesOfstream::write_out_start_section ( )

Write out start and terminate section into output file stream.

void MGIgesOfstream::write_out_terminate_section ( )

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