5 #if !defined( __MGIGESPD508_H__)
6 #define __MGIGESPD508_H__
10 #include "mg/Position.h"
11 #include "mgiges/IgesPD.h"
21 ):m_type(0),m_edge_list(0),m_edge(0),m_orientation(0)
22 ,m_isoparameterics(1),m_pcurves(1){;};
30 ):m_type(type),m_edge_list(edge_list),m_edge(edge),m_orientation(orientation){;};
34 friend std::ostream&
operator<< (std::ostream&,
const MGIges508Edge&);
42 bool is_vertex()
const{
return m_type!=0;};
43 bool direction_is_opposite()
const{
return m_orientation==0;};
44 int number_of_pcurves()
const{
return (
int)(m_pcurves.size()-1);};
49 std::istringstream& pdstream
58 void write_out_into_string(
73 std::vector<bool> m_isoparameterics;
76 std::vector<int> m_pcurves;
94 MGIges508Edge&
edge(
int i){
return *(m_edges[i]);};
95 const MGIges508Edge&
edge(
int i)
const{
return *(m_edges[i]);};
107 std::istringstream& pdstream
129 #endif // __MGIGESPD508_H__
MGBVertex is 0 manifold dimension binder cell, is an point.
Definition: BVertex.h:30
MGIgesPD508 is the class for Iges parameter data type 508(LOOP).
Definition: igespd508.h:84
const MGIgesDirectoryEntry * DEpointer() const
Definition: igesPD.h:39
MGIges508Edge & edge(int i)
Definition: igespd508.h:94
MGIgesPD508(MGIgesDirectoryEntry *DEpointer=0)
Constructs an object of class MGIgesPD508.
~MGIgesPD508()
Destructor;.
Definition: igespd508.h:92
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
size_type size() const
Return the number of items that are in the sequence.
Definition: Pvector.h:342
MGIgesDirectoryEntry describes a directory entry section of an IGES file.
Definition: IgesDirectoryEntry.h:20
void push_back(MGIges508Edge *edge)
Definition: igespd508.h:102
MGEdge is an instance of MGCellNB, represents a boundary element of 2D manifold.
Definition: Edge.h:33
MGIgesIfstream read in *.iges; *.igs file, transforming IGES objects to MGCL objects.
Definition: IgesIfstream.h:43
MGIgesPD is the parent class of all the Parameter data section type.
Definition: igesPD.h:17
void push_back(T *x)
push element x at the end.
Definition: Pvector.h:250
int number_of_edges() const
Get the number of edges.
Definition: igespd508.h:98
const MGIges508Edge & edge(int i) const
Definition: igespd508.h:95
MGIgesGSec describes a Global Section of a IGES file.
Definition: IgesGSec.h:18
void write_out_into_string(const MGIgesGSec &gsec, MGPvector< std::string > &plines) const
Defines Vector of newed object pointers.
Definition: Pvector.h:27
void read_in(char pDelimeter, std::istringstream &pdstream)
Read in parameter data from string stream data.