27 return _is_registered;
52 if (table->is_registered()) {
67 return _sliders.size();
77 nassertr(n >= 0 && n < (
int)_sliders.size(), NULL);
78 return _sliders[n]._slider;
89 nassertr(n >= 0 && n < (
int)_sliders.size(), _empty_array);
90 return _sliders[n]._rows;
102 SlidersByName::const_iterator sni;
103 sni = _sliders_by_name.find(name);
104 if (sni != _sliders_by_name.end()) {
105 return (*sni).second;
129 return _sliders.empty();
144 CDReader cdata(_cycler, current_thread);
145 return cdata->_modified;
154 INLINE
void SliderTable::
156 CDWriter cdata(_cycler,
true, current_thread);
157 cdata->_modified = modified;
165 INLINE SliderTable::CData::
174 INLINE SliderTable::CData::
175 CData(
const SliderTable::CData ©) :
176 _modified(copy._modified)
This class records a set of integers, where each integer is either present or not present in the set...
const SparseArray & get_slider_rows(int n) const
Returns the set of rows (vertices) governed by the nth slider in the table.
bool has_slider(const InternalName *name) const
Returns true if the table has at least one slider by the indicated name, false otherwise.
const SparseArray & find_sliders(const InternalName *name) const
Returns a list of slider indices that represent the list of sliders with the indicated name...
UpdateSeq get_modified(Thread *current_thread) const
Returns a sequence number that's guaranteed to change at least when any VertexSliders in the table ch...
This is an abstract base class that retains some slider value, which is a linear value that typically...
bool is_empty() const
Returns true if the table has no sliders, false if it has at least one.
bool is_registered() const
Returns true if this table has been registered.
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
Stores the total set of VertexSliders that the vertices in a particular GeomVertexData object might d...
int get_num_sliders() const
Returns the number of sliders in the table.
A thread; that is, a lightweight process.
const VertexSlider * get_slider(int n) const
Returns the nth slider in the table.
This is a sequence number that increments monotonically.