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