MGCL V10
V10
MGCL V10
|
MGOgesIfstream write out to *.iges file, transforming MGCL objects to IGES objects. [詳解]
公開メンバ関数 | |
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. [詳解] | |
MGIgesOfstream & | operator<< (const MGGel &) |
Operator overload. [詳解] | |
MGIgesOfstream & | operator<< (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. [詳解] | |
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. [詳解] | |
その他の継承メンバ | |
基底クラス 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 |
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.
|
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).
pd | newed MGIgesPD object. |
EntityLabel | Entity label. |
ses | Subordinate entity switch. Default=independent. |
gel | when gel=0 is input, De will be set as dependent. |
FormNumber | Form number |
|
inline |
get the output line number of Parameter Data Section.
|
inline |
Get the next parameter data section record counter.
|
inline |
Member functions.
Get the reference of the output stream.
|
inline |
Test if input stream is good(). True will be returned when good.
|
inline |
Test if output stream is open.
|
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 | ( | ) |