MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
Default.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGDefault_HH_
6 #define _MGDefault_HH_
7 
11 #include "mg/MGCL.h"
12 #include "mg/types.h"
13 #include "mg/DefaultVector.h"
14 #include "mg/Box.h"
15 #include "mg/Transf.h"
16 #include "mg/KnotVector.h"
17 #include "mg/Position.h"
18 #include "mg/Unit_vector.h"
19 
20 // MGDefault.h
21 // Header for class MGDefault
22 
23 extern MG_DLL_DECLR const MGInterval mgEMP_INTERV;
24 extern MG_DLL_DECLR const MGInterval mgZERO_TO_DBLPAI;
25 
26 extern MG_DLL_DECLR const MGBox mgNULL_BOX;
27 extern MG_DLL_DECLR const MGBox mgEMP_BOX;
28 extern MG_DLL_DECLR const MGBox mgEMP_BOX_2D;
29 
30 extern MG_DLL_DECLR const MGMatrix mgNULL_MATR;
31 extern MG_DLL_DECLR const MGMatrix mgUNIT_MATR;
32 extern MG_DLL_DECLR const MGMatrix mgUNIT_MATR_2D;
33 
34 extern MG_DLL_DECLR const MGTransf mgNULL_TRANSF;
35 extern MG_DLL_DECLR const MGTransf mgID_TRANSF;
36 extern MG_DLL_DECLR const MGTransf mgID_TRANSF_2D;
37 
38 extern MG_DLL_DECLR const MGKnotVector mgNULL_KNOT_VECTOR;
39 extern MG_DLL_DECLR const MGKnotVector mgINFINITE_KNOT_VECTOR;
40 
41 extern MG_DLL_DECLR const MGAbstractGel mgAll_Gell;
42 
43 extern MG_DLL_DECLR const MGAbstractGel mgAll_Object;
44 extern MG_DLL_DECLR const MGAbstractGel mgAll_Group;
45 extern MG_DLL_DECLR const MGAbstractGel mgAll_Attrib;
46 
47 extern MG_DLL_DECLR const MGAbstractGel mgAll_0Manifold;
48 extern MG_DLL_DECLR const MGAbstractGel mgAll_1Manifold;
49 extern MG_DLL_DECLR const MGAbstractGel mgAll_2Manifold;
50 
51 extern MG_DLL_DECLR const MGAbstractGel mgAll_Geo;
52 extern MG_DLL_DECLR const MGAbstractGel mgAll_Topo;
53 extern MG_DLL_DECLR const MGAbstractGel mgAll_STL;
54 
55 extern MG_DLL_DECLR const MGAbstractGel mgAll_Point;
56 extern MG_DLL_DECLR const MGAbstractGel mgAll_Curve;
57 extern MG_DLL_DECLR const MGAbstractGel mgAll_Surface;
58 extern MG_DLL_DECLR const MGAbstractGel mgAll_FSurface;
59 
60 extern MG_DLL_DECLR const MGAbstractGel mgAll_Straight;
61 extern MG_DLL_DECLR const MGAbstractGel mgAll_Ellipse;
62 extern MG_DLL_DECLR const MGAbstractGel mgAll_LBRep;
63 extern MG_DLL_DECLR const MGAbstractGel mgAll_RLBRep;
64 extern MG_DLL_DECLR const MGAbstractGel mgAll_SurfCurve;
65 extern MG_DLL_DECLR const MGAbstractGel mgAll_TrimmedCurve;
66 extern MG_DLL_DECLR const MGAbstractGel mgAll_CompositeCurve;
67 extern MG_DLL_DECLR const MGAbstractGel mgAll_Plane;
68 extern MG_DLL_DECLR const MGAbstractGel mgAll_SPhere;
69 extern MG_DLL_DECLR const MGAbstractGel mgAll_SBRep;
70 extern MG_DLL_DECLR const MGAbstractGel mgAll_RSBRep;
71 extern MG_DLL_DECLR const MGAbstractGel mgAll_Cylinder;
72 extern MG_DLL_DECLR const MGAbstractGel mgAll_PVertex;
73 extern MG_DLL_DECLR const MGAbstractGel mgAll_BVertex;
74 extern MG_DLL_DECLR const MGAbstractGel mgAll_Edge;
75 extern MG_DLL_DECLR const MGAbstractGel mgAll_Face;
76 extern MG_DLL_DECLR const MGAbstractGel mgAll_Loop;
77 extern MG_DLL_DECLR const MGAbstractGel mgAll_Shell;
78 
80 class MG_DLL_DECLR MGDefault{
81 
82 public:
83 
85 MG_DLL_DECLR friend std::ostream& operator<<(std::ostream&, const MGDefault&);
86 
89 
91 static const MGBox& null_box(){return mgNULL_BOX;};
92 
94 static const MGBox& empty_box(){return mgEMP_BOX;};
95 
97 static const MGBox& empty_box_2D(){return mgEMP_BOX_2D;};
98 
100 static const MGInterval& empty_interval(){return mgEMP_INTERV;};
101 
103 static const MGTransf& null_transf(){return mgNULL_TRANSF;};
104 
106 static const MGTransf& identity_transf(){return mgID_TRANSF;};
107 
109 static const MGTransf& identity_transf_2D(){return mgID_TRANSF_2D;};
110 
112 static const MGPosition& origin(){return mgORIGIN;};
113 
115 static const MGPosition& origin_2D(){return mgORIGIN_2D;};
116 
118 static const MGMatrix& null_matrix(){return mgNULL_MATR;};
119 
121 static const MGMatrix& unit_matrix(){return mgUNIT_MATR;};
122 
124 static const MGMatrix& unit_matrix_2D(){return mgUNIT_MATR_2D;};
125 
127 static const MGVector& x_unit_vector_2D(){return mgX_UVEC_2D;};
128 
130 static const MGVector& y_unit_vector_2D(){return mgY_UVEC_2D;};
131 
133 static const MGVector& x_unit_vector(){return mgX_UVEC;};
134 
136 static const MGVector& y_unit_vector(){return mgY_UVEC;};
137 
139 static const MGVector& z_unit_vector(){return mgZ_UVEC;};
140 
142 static const MGPosition& null_position(){return mgNULL_Pos;};
143 
145 static const MGVector& null_vector(){return mgNULL_VEC;};
146 
148 static const MGVector& zero_vector(){return mgZERO_VEC;};
149 
151 static const MGVector& zero_vector_2D(){return mgZERO_VEC_2D;};
152 
155 
158 
159 };
160  // end of BASE group
162 #endif
MG_DLL_DECLR const MGBox mgNULL_BOX
MG_DLL_DECLR const MGAbstractGel mgAll_Loop
MGTransf represents a transformation of a space dimension.
Definition: Transf.h:35
MG_DLL_DECLR const MGInterval mgZERO_TO_DBLPAI
static const MGVector & x_unit_vector_2D()
Return x axis unit vector. m_x_unit_vector_2D を返却。
Definition: Default.h:127
static const MGTransf & identity_transf()
Return 4 by 4 unit transformation. m_identity_transf を返却。
Definition: Default.h:106
static const MGVector & null_vector()
Return null vector.
Definition: Default.h:145
MG_DLL_DECLR const MGAbstractGel mgAll_BVertex
MG_DLL_DECLR const MGAbstractGel mgAll_Face
MG_DLL_DECLR const MGTransf mgID_TRANSF_2D
MG_DLL_DECLR const MGAbstractGel mgAll_PVertex
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
MG_DLL_DECLR const MGAbstractGel mgAll_FSurface
MG_DLL_DECLR const MGAbstractGel mgAll_RLBRep
Vector of a general n space dimension.
Definition: Vector.h:26
static const MGVector & x_unit_vector()
Return x axis unit vector. m_x_unit_vector を返却。
Definition: Default.h:133
MG_DLL_DECLR const MGAbstractGel mgAll_Surface
static const MGMatrix & null_matrix()
Return null matrix.
Definition: Default.h:118
static const MGInterval & empty_interval()
Return empty interval. m_empty_interval を返却。
Definition: Default.h:100
static const MGKnotVector & infinite_knot_vector()
Return infinite knot vector. m_infinite_knot_vector を返却。
Definition: Default.h:157
Defines a Box of any space dimendion.
Definition: Box.h:34
MG_DLL_DECLR const MGBox mgEMP_BOX
MG_DLL_DECLR const MGAbstractGel mgAll_1Manifold
MG_DLL_DECLR const MGAbstractGel mgAll_Plane
MG_DLL_DECLR const MGKnotVector mgINFINITE_KNOT_VECTOR
static const MGPosition & null_position()
Return null position.
Definition: Default.h:142
MG_DLL_DECLR const MGAbstractGel mgAll_2Manifold
MG_DLL_DECLR const MGTransf mgNULL_TRANSF
MG_DLL_DECLR const MGAbstractGel mgAll_RSBRep
MG_DLL_DECLR const MGAbstractGel mgAll_CompositeCurve
MG_DLL_DECLR const MGAbstractGel mgAll_Geo
Interval of 1 dimension, i.e. MGInterval is a real line.
Definition: Interval.h:22
MG_DLL_DECLR const MGAbstractGel mgAll_Gell
Represent a positional data.
Definition: Position.h:28
MG_DLL_DECLR const MGTransf mgID_TRANSF
static const MGTransf & null_transf()
Return null transformation.
Definition: Default.h:103
Defines Knot vector of B-Representation.
Definition: KnotVector.h:28
MG_DLL_DECLR const MGMatrix mgUNIT_MATR
MG_DLL_DECLR const MGAbstractGel mgAll_Object
static const MGPosition & origin_2D()
Return 2D origin point(0,0). m_origin_2D を返却。
Definition: Default.h:115
MG_DLL_DECLR const MGAbstractGel mgAll_SurfCurve
MG_DLL_DECLR const MGAbstractGel mgAll_SPhere
MG_DLL_DECLR const MGBox mgEMP_BOX_2D
static const MGBox & empty_box()
Return empty 3D box. m_empty_box を返却。
Definition: Default.h:94
MG_DLL_DECLR const MGAbstractGel mgAll_TrimmedCurve
MG_DLL_DECLR const MGInterval mgEMP_INTERV
static const MGVector & y_unit_vector()
Return y axis unit vector. m_y_unit_vector を返却。
Definition: Default.h:136
MG_DLL_DECLR const MGAbstractGel mgAll_Point
MG_DLL_DECLR const MGAbstractGel mgAll_Ellipse
MG_DLL_DECLR const MGAbstractGel mgAll_0Manifold
static const MGKnotVector & null_knot_vector()
Return null knot vector. m_null_knot_vector を返却。
Definition: Default.h:154
static const MGMatrix & unit_matrix()
Return 3 by 3 unit matrix. m_unit_matrix を返却。
Definition: Default.h:121
static const MGVector & zero_vector_2D()
Return 2D zero vector. m_zero_vector_2D を返却。
Definition: Default.h:151
static const MGVector & y_unit_vector_2D()
Return y axis unit vector. m_y_unit_vector_2D を返却。
Definition: Default.h:130
MG_DLL_DECLR const MGMatrix mgUNIT_MATR_2D
static const MGMatrix & unit_matrix_2D()
Return 2 by 2 unit matrix. m_unit_matrix_2D を返却。
Definition: Default.h:124
MG_DLL_DECLR const MGAbstractGel mgAll_SBRep
MG_DLL_DECLR const MGAbstractGel mgAll_Attrib
MG_DLL_DECLR const MGAbstractGel mgAll_Curve
MG_DLL_DECLR const MGAbstractGel mgAll_LBRep
MG_DLL_DECLR const MGAbstractGel mgAll_Straight
MG_DLL_DECLR const MGKnotVector mgNULL_KNOT_VECTOR
MG_DLL_DECLR const MGAbstractGel mgAll_Cylinder
static const MGBox & empty_box_2D()
Return empty 2D box. m_empty_box_2D を返却。
Definition: Default.h:97
static const MGBox & null_box()
Return null box.
Definition: Default.h:91
static const MGVector & zero_vector()
Return 3D zero vector. m_zero_vector を返却。
Definition: Default.h:148
MG_DLL_DECLR const MGAbstractGel mgAll_Group
MG_DLL_DECLR const MGMatrix mgNULL_MATR
static const MGTransf & identity_transf_2D()
Return 3 by 3 unit transformation. m_identity_transf_2D を返却。
Definition: Default.h:109
Defines default values of each class.
Definition: Default.h:80
MG_DLL_DECLR const MGAbstractGel mgAll_Topo
static const MGVector & z_unit_vector()
Return z axis unit vector. m_z_unit_vector を返却。
Definition: Default.h:139
MG_DLL_DECLR const MGAbstractGel mgAll_STL
static const MGPosition & origin()
Return 3D origin point(0,0,0). m_origin を返却。
Definition: Default.h:112
MG_DLL_DECLR const MGAbstractGel mgAll_Shell
MGMatrix is a matix of m by m, where m is the space dimension.
Definition: Matrix.h:30
MG_DLL_DECLR const MGAbstractGel mgAll_Edge