7 #ifndef _MGPickObjects_HH_
8 #define _MGPickObjects_HH_
11 #include "mg/AbstractGels.h"
12 #include "mg/Pvector.h"
13 #include "mg/PickObject.h"
76 void assign(const_iterator first, const_iterator last);
84 iterator
begin(){
return m_PickObjects.begin();};
85 const_iterator
begin()
const{
return m_PickObjects.begin();};
87 iterator
end(){
return m_PickObjects.end();};
88 const_iterator
end()
const{
return m_PickObjects.end();};
90 reverse_iterator
rbegin(){
return m_PickObjects.rbegin();};
91 const_reverse_iterator
rbegin()
const{
return m_PickObjects.rbegin();};
93 reverse_iterator
rend(){
return m_PickObjects.rend();};
94 const_reverse_iterator
rend()
const{
return m_PickObjects.rend();};
96 void clear(){m_PickObjects.clear();};
97 bool empty()
const{
return m_PickObjects.empty();};
107 const MGFSurface* get_object_to_tessellate()
const;
113 iterator includes(
const MGObject* objin);
122 void erase(iterator first, iterator last);
125 iterator erase(iterator i);
132 void erase_except_front();
155 void reset_with_symmetric_difference(
const MGPickObjects& pobjs2);
158 void reserve(
size_t n);
164 void resize(
size_t n){m_PickObjects.resize(n);};
201 int size()
const{
return int(m_PickObjects.size());};
207 void setNoDisplay()
const;
210 void setDisplay()
const;
218 #endif // _MGPickObjects_HH_
std::vector< MGPickObject * >::reverse_iterator reverse_iterator
Definition: Pvector.h:33
const MGPickObject & front() const
Definition: PickObjects.h:78
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
container_type::reference reference
types:
Definition: PickObjects.h:35
MGGelPosition Container Class.
Definition: GelPositions.h:23
std::vector< MGPickObject * >::size_type size_type
Definition: Pvector.h:37
std::vector< MGPickObject * >::const_iterator const_iterator
Definition: Pvector.h:32
void pop_back()
Definition: PickObjects.h:99
MGPickObjects & operator&=(const MGPickObjects &gelps)
Definition: PickObjects.h:70
reverse_iterator rend()
Definition: PickObjects.h:93
Is a container of MGAbstractGel, to specify what kind of gels are required.
Definition: AbstractGels.h:25
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
container_type::const_iterator const_iterator
Definition: PickObjects.h:38
bool empty() const
Definition: PickObjects.h:97
const_reverse_iterator rend() const
Definition: PickObjects.h:94
container_type::size_type size_type
Definition: PickObjects.h:39
const MGPickObject & back() const
Definition: PickObjects.h:81
const MGPickObject & operator[](size_t i) const
virtual ~MGPickObjects();
Definition: PickObjects.h:59
const container_type & object_vector() const
Definition: PickObjects.h:204
Is an abstract class which represents a whole geometry and a topology.
Definition: Object.h:42
MGPickObjects()
Constructors.
Definition: PickObjects.h:45
MGPickObject & back()
Definition: PickObjects.h:82
const_iterator begin() const
Definition: PickObjects.h:85
iterator end()
Definition: PickObjects.h:87
MGPickObjects & operator-=(const MGPickObjects &gelps)
Definition: PickObjects.h:67
const_reverse_iterator rbegin() const
Definition: PickObjects.h:91
reverse_iterator rbegin()
Definition: PickObjects.h:90
iterator begin()
Definition: PickObjects.h:84
MGPickObject & operator[](size_t i)
Definition: PickObjects.h:60
std::vector< MGPickObject * >::reference reference
Definition: Pvector.h:35
void resize(size_t n)
resize the length of the sequence.
Definition: PickObjects.h:164
std::vector< MGPickObject * >::iterator iterator
Definition: Pvector.h:31
MGPickObject & front()
Definition: PickObjects.h:79
MGPickObjects & operator-=(const MGAbstractGels &types)
Definition: PickObjects.h:69
container_type m_PickObjects
Definition: PickObjects.h:213
MGFSurface is an abstract class to provide the comman interfaces to MGFace and MGSurface.
Definition: FSurface.h:33
container_type & object_vector()
Definition: PickObjects.h:203
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
const_iterator end() const
Definition: PickObjects.h:88
MGPickObject is a class to locate where an object is in a group hierarchy.
Definition: PickObject.h:39
container_type::const_reference const_reference
Definition: PickObjects.h:36
MGPickObjects & operator-=(const MGPickObject &gelp)
Definition: PickObjects.h:68
container_type::iterator iterator
Definition: PickObjects.h:37
void clear()
Definition: PickObjects.h:96
MGPickObjects & operator+=(const MGPickObjects &gelps)
Set operation.
Definition: PickObjects.h:65
a container class for MGPickObject.
Definition: PickObjects.h:29
container_type::const_reverse_iterator const_reverse_iterator
Definition: PickObjects.h:41
std::vector< MGPickObject * >::const_reference const_reference
Definition: Pvector.h:36
container_type::reverse_iterator reverse_iterator
Definition: PickObjects.h:40
int size() const
Obtain the pobj number defined.
Definition: PickObjects.h:201
std::vector< MGPickObject * >::const_reverse_iterator const_reverse_iterator
Definition: Pvector.h:34
MGPvector< MGPickObject > container_type
Definition: PickObjects.h:32
void erase(int i)
erase i-th element.
Definition: PickObjects.h:128