MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
PickObjectCB.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
8 
9 #ifndef _MGPickObjectCB_HH_
10 #define _MGPickObjectCB_HH_
11 
12 #include "mg/PickObject.h"
13 
14 class MGCurve;
15 
20 
33 class MG_DLL_DECLR MGPickObjectCB:public MGPickObject{
34 
35 public:
36 
38 
39 MGPickObjectCB():MGPickObject(),m_start_end(-1){;};
40 MGPickObjectCB(const MGPickObjectCB& pcb);
41 
44  MGGelPosition& gelp,
45  int start_end
46 ):MGPickObject(gelp),m_start_end(start_end){;};
47 
50  MGPickObject& pobj,
51  int start_end
52 ):MGPickObject(pobj),m_start_end(start_end){;};
53 
54 //Copy constructor.
55 //MGPickObjectCB(const MGPickObjectCB& pobj2);
56 
58 virtual ~MGPickObjectCB(){;};
59 
62 
64 
66 virtual MGPickObjectCB* clone()const;
67 
70  double span_length,
71  int line_density
72 )const;
73 
75 int start_end(){return m_start_end;};
76 
78 const MGCurve* curve()const;
79 
81 void set_start_end(int start_end){m_start_end=start_end;};
82 
83 private:
84 
85  int m_start_end;
86  mutable mgVBO m_vbo;//VBO to display the boundary information.
88 };
89  // end of MGObjectRelated group
91 #endif
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
MGPickObjectCB is a MGPickObject that includes the boundary information of a MGCurve.
Definition: PickObjectCB.h:33
MGPickObjectCB(MGPickObject &pobj, int start_end)
Conversion constructor from MGPickObject and start/end.
Definition: PickObjectCB.h:49
virtual void hilight_using_display_list(double span_length, int line_density) const
Highlightthe object using the display list of this object.
virtual MGPickObject & operator=(const MGPickObject &pobj)
Assignment operator.
MGGelPosition is a class to locate where a gel is in a group hierarchy.
Definition: GelPosition.h:39
virtual MGPickObject * clone() const
Generate a newed clone object.
MGPickObjectCB()
Definition: PickObjectCB.h:39
MGPickObject is a class to locate where an object is in a group hierarchy.
Definition: PickObject.h:39
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
virtual ~MGPickObjectCB()
Definition: PickObjectCB.h:58
int start_end()
Return the edge pointer.
Definition: PickObjectCB.h:75
MGPickObjectCB(MGGelPosition &gelp, int start_end)
Conversion constructor from MGGelPosition and MGEdge.
Definition: PickObjectCB.h:43
void set_start_end(int start_end)
Set the object pointer.
Definition: PickObjectCB.h:81