FineKernelToolKit  2.9.0
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義 ページ
Reference.h
説明を見る。
1 /****************************************************************************
2  *
3  * Copyright (c) 1999-2014, Fine Kernel Project, All rights reserved.
4  *
5  * Redistribution and use in source and binary forms,
6  * with or without modification, are permitted provided that the
7  * following conditions are met:
8  *
9  * - Redistributions of source code must retain the above
10  * copyright notice, this list of conditions and the
11  * following disclaimer.
12  *
13  * - Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the
15  * following disclaimer in the documentation and/or
16  * other materials provided with the distribution.
17  *
18  * - Neither the name of the copyright holders nor the names
19  * of its contributors may be used to endorse or promote
20  * products derived from this software without specific
21  * prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34  * POSSIBILITY OF SUCH DAMAGE.
35  *
36  ****************************************************************************/
37 /****************************************************************************
38  *
39  * Copyright (c) 1999-2014, Fine Kernel Project, All rights reserved.
40  *
41  * 本ソフトウェアおよびソースコードのライセンスは、基本的に
42  * 「修正 BSD ライセンス」に従います。以下にその詳細を記します。
43  *
44  * ソースコード形式かバイナリ形式か、変更するかしないかを問わず、
45  * 以下の条件を満たす場合に限り、再頒布および使用が許可されます。
46  *
47  * - ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、
48  * および下記免責条項を含めること。
49  *
50  * - バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の
51  * 資料に、上記の著作権表示、本条件一覧、および下記免責条項を
52  * 含めること。
53  *
54  * - 書面による特別の許可なしに、本ソフトウェアから派生した製品の
55  * 宣伝または販売促進に、本ソフトウェアの著作権者の名前または
56  * コントリビューターの名前を使用してはならない。
57  *
58  * 本ソフトウェアは、著作権者およびコントリビューターによって「現
59  * 状のまま」提供されており、明示黙示を問わず、商業的な使用可能性、
60  * および特定の目的に対する適合性に関す暗黙の保証も含め、またそれ
61  * に限定されない、いかなる保証もないものとします。著作権者もコン
62  * トリビューターも、事由のいかんを問わず、損害発生の原因いかんを
63  * 問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その
64  * 他の)不法行為であるかを問わず、仮にそのような損害が発生する可
65  * 能性を知らされていたとしても、本ソフトウェアの使用によって発生
66  * した(代替品または代用サービスの調達、使用の喪失、データの喪失、
67  * 利益の喪失、業務の中断も含め、またそれに限定されない)直接損害、
68  * 間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害に
69  * ついて、一切責任を負わないものとします。
70  *
71  ****************************************************************************/
72 #ifndef __FK_REFERENCE_HEADER__
73 #define __FK_REFERENCE_HEADER__
74 
75 #include <FK/Edge.h>
76 
77 class fk_Vertex;
78 class fk_Half;
79 class fk_Loop;
80 
81 #include <vector>
82 
83 /*
84  ここで定義する参照関数 ---
85 
86  頂点に関連する関数
87  - fk_Half * getOneHOnV(fk_Vertex *)
88  - vector<fk_Half *> getAllHOnV(fk_Vertex *)
89  - vector<fk_Edge *> getEOnVV(fk_Vertex *, fk_Vertex *)
90  - fk_Edge * getOneEOnV(fk_Vertex *)
91  - vector<fk_Edge *> getAllEOnV(fk_Vertex *)
92  - int getENumOnV(fk_Vertex *)
93  - fk_Loop * getOneLOnV(fk_Vertex *)
94  - vector<fk_Loop *> getAllLOnV(fk_Vertex *)
95  - vector<fk_Vertex *> getAllNeighborVOnV(fk_Vertex *)
96 
97  半稜線に関連する関数
98  - fk_Vertex * getVOnH(fk_Half *)
99  - fk_Half * getMateHOnH(fk_Half *)
100  - fk_Edge * getParentEOnH(fk_Half *)
101  - fk_Loop * getParentLOnH(fk_Half *)
102 
103  稜線に関連する関数
104  - fk_Vertex * getRightVOnE(fk_Edge *)
105  - fk_Vertex * getLeftVOnE(fk_Edge *)
106  - fk_Half * getRightHOnE(fk_Edge *)
107  - fk_Half * getLeftHOnE(fk_Edge *)
108  - fk_Loop * getRightLOnE(fk_Edge *)
109  - fk_Loop * getLeftLOnE(fk_Edge *)
110  - fk_EdgeStatus getEdgeStatus(fk_Edge *)
111 
112  ループに関連する関数
113  - fk_Vertex * getOneVonL(fk_Loop *)
114  - vector<fk_Vertex *> getAllVOnL(fk_Loop *)
115  - int getVNumOnL(fk_Loop *)
116  - fk_Half * getOneHOnL(fk_Loop *)
117  - vector<fk_Half *> getAllHOnL(fk_Loop *)
118  - fk_Edge * getOneEOnL(fk_Loop *)
119  - vector<fk_Edge *> getAllEOnL(fk_Loop *)
120  - fk_Loop * getOneNeighorLOnL(fk_Loop *)
121  - vector<fk_Loop *> getAllNeighborLOnL(fk_Loop *)
122  - fk_Loop * getNeighborLOnLH(fk_Loop *, fk_Half *)
123  - fk_Loop * getNeighborLOnLE(fk_Loop *, fk_Edge *)
124 
125 */
126 
128 
143  public:
144 
146 
147 
149 
157  fk_Half * getOneHOnV(fk_Vertex *V) const;
158 
160 
168  fk_Edge * getOneEOnV(fk_Vertex *V) const;
170 
172 
173 
175 
182  fk_Vertex * getVOnH(fk_Half *H) const;
183 
185 
192  fk_Half * getMateHOnH(fk_Half *H) const;
193 
195 
202  fk_Edge * getParentEOnH(fk_Half *H) const;
203 
205 
213  fk_Loop * getParentLOnH(fk_Half *H) const;
215 
217 
218 
220 
227  fk_Vertex * getRightVOnE(fk_Edge *E) const;
228 
230 
237  fk_Vertex * getLeftVOnE(fk_Edge *E) const;
238 
240 
247  fk_Half * getRightHOnE(fk_Edge *E) const;
248 
250 
257  fk_Half * getLeftHOnE(fk_Edge *E) const;
258 
260 
268  fk_Loop * getRightLOnE(fk_Edge *E) const;
269 
271 
279  fk_Loop * getLeftLOnE(fk_Edge *E) const;
280 
282 
296 
298 
300 
301 
303 
310  fk_Vertex * getOneVOnL(fk_Loop *L) const;
311 
313 
320  fk_Half * getOneHOnL(fk_Loop *L) const;
321 
323 
330  fk_Edge * getOneEOnL(fk_Loop *L) const;
332 };
333 
335 
350  public:
351 
353 
354 
356 
365 
367 
375  std::vector<fk_Half *> getAllHOnV(fk_Vertex *V) const;
376 
378 
386  std::vector<fk_Edge *> getAllEOnV(fk_Vertex *V) const;
387 
389 
397  std::vector<fk_Loop *> getAllLOnV(fk_Vertex *V) const;
398 
400 
407  int getENumOnV(fk_Vertex *V) const;
408 
410 
412 
413 
415 
423  std::vector<fk_Vertex *> getAllVOnL(fk_Loop *L) const;
424 
426 
434  std::vector<fk_Half *> getAllHOnL(fk_Loop *L) const;
435 
437 
445  std::vector<fk_Edge *> getAllEOnL(fk_Loop *L) const;
446 
448 
456  fk_Loop * getOneNeighborLOnL(fk_Loop *L) const;
457 
459 
472  fk_Half *H) const;
474 
481  int getVNumOnL(fk_Loop *L) const;
482 
484 };
485 
486 
488 
503  public:
504 
506 
514  std::vector<fk_Vertex *> getAllNeighborVOnV(fk_Vertex *V) const;
515 
517 
526  std::vector<fk_Edge *> getEOnVV(fk_Vertex *V1, fk_Vertex *V2) const;
527 
529 
537  fk_Loop * getOneLOnV(fk_Vertex *V) const;
538 
540 
552  fk_Loop * getNeighborLOnLE(fk_Loop *L, fk_Edge *E) const;
553 
555 
563  std::vector<fk_Loop *> getAllNeighborLOnL(fk_Loop *L) const;
564 };
565 
566 #endif // !__FK_REFERENCE_HEADER__
fk_Loop * getOneNeighborLOnL(fk_Loop *L) const
隣接ループ参照関数
fk_Vertex * getOneVOnL(fk_Loop *L) const
ループ所属頂点参照関数
位相状態参照用クラス(Level1)
Definition: Reference.h:142
fk_Loop * getNeighborLOnLE(fk_Loop *L, fk_Edge *E) const
稜線条件付き隣接ループ参照関数
fk_Edge * getParentEOnH(fk_Half *H) const
親稜線参照関数
fk_Half * getLeftHOnE(fk_Edge *E) const
左側半稜線参照関数
fk_Loop * getParentLOnH(fk_Half *H) const
親ループ参照関数
fk_Vertex * getRightVOnE(fk_Edge *E) const
右側頂点参照関数
fk_Loop * getRightLOnE(fk_Edge *E) const
右側ループ参照関数
std::vector< fk_Half * > getAllHOnL(fk_Loop *L) const
ループ所属全半稜線参照関数
位相状態参照用クラス(Level2)
Definition: Reference.h:349
ソリッドモデルのループ位相を管理するクラス
Definition: Loop.h:114
fk_Half * getOneHOnL(fk_Loop *L) const
ループ所属半稜線参照関数
fk_Edge * getOneEOnV(fk_Vertex *V) const
頂点接続稜線参照関数
fk_Vertex * getVOnH(fk_Half *H) const
半稜線接続頂点参照関数
int getVNumOnL(fk_Loop *L) const
ループ上頂点数参照関数
fk_Half * getOneHOnV(fk_Vertex *V) const
頂点接続半稜線参照関数
位相状態参照用クラス(Level3)
Definition: Reference.h:502
ソリッドモデルの頂点位相を管理するクラス
Definition: Vertex.h:95
fk_Vertex * getLeftVOnE(fk_Edge *E) const
左側頂点参照関数
fk_Edge * getOneEOnL(fk_Loop *L) const
ループ所属稜線参照関数
std::vector< fk_Loop * > getAllLOnV(fk_Vertex *V) const
頂点接続全ループ参照関数
fk_Loop * getOneLOnV(fk_Vertex *V) const
頂点接続ループ参照関数
std::vector< fk_Loop * > getAllNeighborLOnL(fk_Loop *L) const
全隣接ループ参照関数
int getENumOnV(fk_Vertex *V) const
頂点接続稜線数参照関数
std::vector< fk_Vertex * > getAllVOnL(fk_Loop *L) const
ループ所属全頂点参照関数
std::vector< fk_Edge * > getEOnVV(fk_Vertex *V1, fk_Vertex *V2) const
頂点間稜線参照関数
std::vector< fk_Vertex * > getAllNeighborVOnV(fk_Vertex *V) const
全隣接頂点参照関数
fk_Half * getMateHOnH(fk_Half *H) const
対半稜線参照関数
fk_Half * getRightHOnE(fk_Edge *E) const
右側半稜線参照関数
fk_EdgeStatus
稜線状態を表す列挙型
Definition: Edge.h:81
fk_Loop * getNeighborLOnLH(fk_Loop *L, fk_Half *H) const
半稜線条件付き隣接ループ参照関数
fk_Vertex * getOneNeighborVOnV(fk_Vertex *V) const
隣接頂点参照関数
fk_EdgeStatus getEdgeStatus(fk_Edge *E) const
稜線位相状態参照関数
std::vector< fk_Half * > getAllHOnV(fk_Vertex *V) const
頂点接続全半稜線参照関数
ソリッドモデルの半稜線位相を管理するクラス
Definition: Half.h:94
ソリッドモデルの稜線位相を管理するクラス
Definition: Edge.h:110
std::vector< fk_Edge * > getAllEOnV(fk_Vertex *V) const
頂点接続全稜線参照関数
std::vector< fk_Edge * > getAllEOnL(fk_Loop *L) const
ループ所属全稜線参照関数
fk_Loop * getLeftLOnE(fk_Edge *E) const
左側ループ参照関数