Developer Documentation
|
Classes | |
struct | index_iterator |
struct | iterator |
Public Types | |
typedef ACG::PolyLineT< T > | PolyLine |
Public Member Functions | |
virtual | ~PolyLineCollectionT () |
Destructor. More... | |
size_t | add_poly_line (PolyLine *_poly_line) |
int | new_poly_line () |
Create empty polyline and return id. More... | |
void | reserve (size_t _count) |
Reserve space for additional _count polylines. More... | |
void | set_visible_all () |
Set all polylines to visible. More... | |
void | set_visible (const std::vector< size_t > &_visible) |
Set given polylines to visible. More... | |
void | set_selected (const std::vector< size_t > &_selected) |
Set given polylines to selected. More... | |
void | clear_selection () |
unselect all polylines in collection More... | |
void | clear () |
Clear Collection. More... | |
void | remove_polyline (int _id) |
Remove one polyline from the collection. More... | |
Access functions | |
size_t | n_polylines () |
PolyLine * | polyline (size_t _i) |
size_t | n_visible_polylines () |
PolyLine * | visible_polyline (size_t _i) |
Iterators | |
iterator | iter () |
index_iterator | visible_iter () |
index_iterator | selected_iter () |
Coloring | |
void | set_color (size_t _edge_scalar, const ACG::Vec4uc &_color) |
ACG::Vec4uc | color (size_t _edge_scalar) |
Protected Attributes | |
std::vector< PolyLine * > | poly_lines_ |
std::vector< size_t > | visible_ |
std::vector< size_t > | selected_ |
std::queue< size_t > | empty_slots_ |
std::map< size_t, ACG::Vec4uc > | color_map_ |
Definition at line 49 of file PolyLineCollectionT.hh.
typedef ACG::PolyLineT<T> PolyLineCollectionT< T >::PolyLine |
Definition at line 51 of file PolyLineCollectionT.hh.
|
inlinevirtual |
Destructor.
The destructor will call delete on all PolyLines in the PolyLine Collection!
Definition at line 125 of file PolyLineCollectionT.hh.
|
inline |
Create a new polyline in the collection
_poly_line | The new polyline to be added to the collection |
Definition at line 137 of file PolyLineCollectionT.hh.
|
inline |
Clear Collection.
This will call delete on all polylines in the collection!
Definition at line 242 of file PolyLineCollectionT.hh.
|
inline |
unselect all polylines in collection
Definition at line 234 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 272 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 198 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 186 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 189 of file PolyLineCollectionT.hh.
|
inline |
Create empty polyline and return id.
Definition at line 163 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 187 of file PolyLineCollectionT.hh.
|
inline |
Remove one polyline from the collection.
This will also call delete on the given polyline!
_id | Id of the polyline to be removed |
Definition at line 259 of file PolyLineCollectionT.hh.
|
inline |
Reserve space for additional _count polylines.
Definition at line 177 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 200 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 271 of file PolyLineCollectionT.hh.
|
inline |
Set given polylines to selected.
_selected | PolyLine indices to set selected |
Definition at line 228 of file PolyLineCollectionT.hh.
|
inline |
Set given polylines to visible.
_visible | PolyLine indices to set visible |
Definition at line 219 of file PolyLineCollectionT.hh.
|
inline |
Set all polylines to visible.
Definition at line 206 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 199 of file PolyLineCollectionT.hh.
|
inline |
Definition at line 190 of file PolyLineCollectionT.hh.
|
protected |
Definition at line 283 of file PolyLineCollectionT.hh.
|
protected |
Definition at line 280 of file PolyLineCollectionT.hh.
|
protected |
Definition at line 276 of file PolyLineCollectionT.hh.
|
protected |
Definition at line 278 of file PolyLineCollectionT.hh.
|
protected |
Definition at line 277 of file PolyLineCollectionT.hh.