5 #ifndef _MGPositions_HH_
6 #define _MGPositions_HH_
11 #include "mg/Position.h"
12 #include "mg/PickObjects.h"
54 typedef std::vector<MGPosition>::iterator
iterator;
55 typedef std::pair<const MGObject*, int>
obj_num;
58 void append_position_data(std::vector<MGPosition>& points)
const;
80 const std::list<const MGGel*>& gel_list
99 const std::set<unsigned>& selected,
112 iterator
begin(){
return m_positions.begin();};
113 const_iterator
begin()
const{
return m_positions.begin();};
117 const MGObject* object(
int posID)
const;
119 bool empty()
const{
return m_positions.empty();};
120 iterator
end(){
return m_positions.end();};
121 const_iterator
end()
const{
return m_positions.end();};
128 size_t size(){
return m_positions.size();};
131 const std::vector<MGPosition>&
points()
const{
return m_positions;};
132 std::vector<MGPosition>&
points(){
return m_positions;};
135 std::vector<obj_num> m_obj_nums;
136 std::vector<MGPosition> m_positions;
139 snap_kind m_snap_kind;
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
void push_back(const MGPosition &pos)
Definition: SnapPositions.h:127
void pop_back()
Definition: SnapPositions.h:126
void extract(const MGCurve &crv)
Extract position data.
Definition: SnapPositions.h:35
MGPosition & back()
Definition: SnapPositions.h:111
MGPoint represents one dimensional manifold, a point in a space.
Definition: Point.h:28
virtual void make_display_list(MGCL::VIEWMODE vmode=MGCL::DONTCARE)
size_t size()
Definition: SnapPositions.h:128
Definition: SnapPositions.h:34
Definition: SnapPositions.h:32
Definition: SnapPositions.h:33
MGPosition & front()
Definition: SnapPositions.h:123
Is an abstract class which represents a whole geometry and a topology.
Definition: Object.h:42
std::pair< const MGObject *, int > obj_num
Definition: SnapPositions.h:55
MGShell is a composition of MGFace's(trimmed surface).
Definition: Shell.h:32
std::vector< MGPosition > & points()
Definition: SnapPositions.h:132
MGSnapPositions is a class to store array(vector) of MGPosition's.
Definition: SnapPositions.h:25
iterator begin()
Definition: SnapPositions.h:112
const std::vector< MGPosition > & points() const
Get the point data array.
Definition: SnapPositions.h:131
snap_kind
Definition: SnapPositions.h:29
MGFace is a trimmed surface.
Definition: Face.h:51
MGGel is an abstract class which represents a group element.
Definition: Gel.h:53
Represent a positional data.
Definition: Position.h:28
MGSurface is an abstract class of 3D surface.
Definition: Surface.h:54
const MGPosition & front() const
Definition: SnapPositions.h:122
const MGPosition & operator[](int i) const
Definition: SnapPositions.h:124
VIEWMODE
Definition: MGCL.h:271
virtual void selectionDraw(MGCL::VIEWMODE viewMode=MGCL::DONTCARE)
const MGPosition & back() const
Definition: SnapPositions.h:110
iterator end()
Definition: SnapPositions.h:120
mgVBO & operator=(const mgVBO &vbo)
Assignment.
MGGroup is a class which constains MGGel elements.
Definition: Group.h:35
snap_kind get_snap_kind() const
Get and set the snap_kind.
Definition: SnapPositions.h:107
const_iterator end() const
Definition: SnapPositions.h:121
const_iterator begin() const
Definition: SnapPositions.h:113
a container class for MGPickObject.
Definition: PickObjects.h:29
std::vector< MGPosition >::const_iterator const_iterator
Definition: SnapPositions.h:53
void set_snap_kind(snap_kind kind)
Definition: SnapPositions.h:108
OpenGL 4 用描画のためのクラス, in other words, display list.
Definition: VBO.h:76
Definition: SnapPositions.h:36
std::vector< MGPosition >::iterator iterator
Definition: SnapPositions.h:54
MGPosition & operator[](int i)
Definition: SnapPositions.h:125
bool empty() const
Definition: SnapPositions.h:119