33 #ifndef __H__UG__bool_marker__
34 #define __H__UG__bool_marker__
114 template <
class TIter>
115 void mark(TIter begin, TIter end,
bool mark =
true)
125 template <
class TIter>
126 void unmark(TIter begin, TIter end) {
mark(begin, end,
false);}
137 bool replacesParent =
false);
141 bool replacesParent =
false);
145 bool replacesParent =
false);
149 bool replacesParent =
false);
Allows to mark elements.
Definition: bool_marker.h:64
BoolMarker()
Definition: bool_marker.cpp:37
bool m_defaultMark
Definition: bool_marker.h:166
void enable_strict_inheritance(bool enable)
Definition: bool_marker.h:98
bool strict_inheritance_enabled()
Definition: bool_marker.h:99
Grid * grid()
Definition: bool_marker.h:78
void clear()
Sets all marks to false. O(n).
Definition: bool_marker.cpp:105
ABool m_aBool
Definition: bool_marker.h:165
virtual ~BoolMarker()
Definition: bool_marker.cpp:54
bool is_marked(GridObject *e) const
Definition: bool_marker.cpp:86
virtual void volume_created(Grid *grid, Volume *vol, GridObject *pParent=NULL, bool replacesParent=false)
Notified whenever a new element of the given type is created in the given grid.
Definition: bool_marker.cpp:176
void assign_grid(Grid *g)
Assign the grid on which the marker shall operate.
Definition: bool_marker.cpp:59
virtual void grid_to_be_destroyed(Grid *grid)
derived from GridObserver
Definition: bool_marker.cpp:100
void mark(Face *e, bool mark=true)
Definition: bool_marker.h:111
bool m_markInheritanceEnabled
Definition: bool_marker.h:167
Grid::AttachmentAccessor< Vertex, ABool > m_aaMarkVRT
Definition: bool_marker.h:169
bool default_mark()
returns the default mark.
Definition: bool_marker.h:86
virtual void volumes_to_be_merged(Grid *grid, Volume *target, Volume *elem1, Volume *elem2)
Notified when two elements of the same type are going to be merged.
Definition: bool_marker.cpp:217
void mark(TIter begin, TIter end, bool mark=true)
Definition: bool_marker.h:115
bool is_marked(Vertex *e) const
Definition: bool_marker.h:104
Grid * m_pGrid
Definition: bool_marker.h:164
void unmark(Edge *e)
Definition: bool_marker.h:121
bool is_marked(Edge *e) const
Definition: bool_marker.h:105
void mark(Volume *e, bool mark=true)
Definition: bool_marker.h:112
Grid::AttachmentAccessor< Face, ABool > m_aaMarkFACE
Definition: bool_marker.h:171
void unmark(Vertex *e)
Definition: bool_marker.h:120
bool is_marked(Volume *e) const
Definition: bool_marker.h:107
void assign_grid(Grid &g)
Assign the grid on which the marker shall operate.
Definition: bool_marker.h:76
void unmark(Face *e)
Definition: bool_marker.h:122
void unmark(TIter begin, TIter end)
Definition: bool_marker.h:126
void mark(Vertex *e, bool mark=true)
Definition: bool_marker.h:109
void set_default_mark(bool mark)
set the mark which is applied when a new element is created
Definition: bool_marker.h:84
bool m_strictInheritanceEnabled
Definition: bool_marker.h:168
virtual void vertices_to_be_merged(Grid *grid, Vertex *target, Vertex *elem1, Vertex *elem2)
Notified when two elements of the same type are going to be merged.
Definition: bool_marker.cpp:196
bool is_marked(Face *e) const
Definition: bool_marker.h:106
Grid::AttachmentAccessor< Volume, ABool > m_aaMarkVOL
Definition: bool_marker.h:172
virtual void face_created(Grid *grid, Face *f, GridObject *pParent=NULL, bool replacesParent=false)
Notified whenever a new element of the given type is created in the given grid.
Definition: bool_marker.cpp:156
bool mark_inheritance_enabeld()
if enabled, marks are passed from parents on to their children
Definition: bool_marker.h:91
virtual void faces_to_be_merged(Grid *grid, Face *target, Face *elem1, Face *elem2)
Notified when two elements of the same type are going to be merged.
Definition: bool_marker.cpp:210
void mark(Edge *e, bool mark=true)
Definition: bool_marker.h:110
virtual void vertex_created(Grid *grid, Vertex *vrt, GridObject *pParent=NULL, bool replacesParent=false)
Notified whenever a new element of the given type is created in the given grid.
Definition: bool_marker.cpp:116
Grid::AttachmentAccessor< Edge, ABool > m_aaMarkEDGE
Definition: bool_marker.h:170
void enable_mark_inheritance(bool enable)
if enabled, marks are passed from parents on to their children
Definition: bool_marker.h:90
virtual void edges_to_be_merged(Grid *grid, Edge *target, Edge *elem1, Edge *elem2)
Notified when two elements of the same type are going to be merged.
Definition: bool_marker.cpp:203
virtual void edge_created(Grid *grid, Edge *e, GridObject *pParent=NULL, bool replacesParent=false)
Notified whenever a new element of the given type is created in the given grid.
Definition: bool_marker.cpp:136
void unmark(Volume *e)
Definition: bool_marker.h:123
Base-class for edges.
Definition: grid_base_objects.h:397
Faces are 2-dimensional objects.
Definition: grid_base_objects.h:510
the generic attachment-accessor for access to grids attachment pipes.
Definition: grid.h:182
Manages the elements of a grid and their interconnection.
Definition: grid.h:132
The base class for all geometric objects, such as vertices, edges, faces, volumes,...
Definition: grid_base_objects.h:157
Definition: grid_observer.h:80
Base-class for all vertex-types.
Definition: grid_base_objects.h:231
Volumes are 3-dimensional objects.
Definition: grid_base_objects.h:754
size_t target(SM_edge< typename T::value_type > const &e, ug::BidirectionalMatrix< T > const &m)
Definition: bidirectional_boost.h:100