55 #ifndef vtkSMRangeDomainTemplate_h 56 #define vtkSMRangeDomainTemplate_h 89 T GetMinimum(
unsigned int idx,
int& exists);
96 T GetMaximum(
unsigned int idx,
int& exists);
108 bool GetMinimumExists(
unsigned int idx);
109 bool GetMaximumExists(
unsigned int idx);
115 bool GetResolutionExists();
125 return this->GetMinimum(idx, not_used);
130 return this->GetMaximum(idx, not_used);
139 unsigned int GetNumberOfEntries();
186 this->Value[0] = this->Value[1] = 0;
187 this->Valid[0] = this->Valid[1] =
false;
189 vtkEntry(T min,
bool minValid, T max,
bool maxValid)
191 this->Value[0] = min;
192 this->Value[1] = max;
193 this->Valid[0] = minValid;
194 this->Valid[1] = maxValid;
198 this->Value[0] = min;
199 this->Value[1] = max;
200 this->Valid[0] = this->Valid[1] =
true;
205 return this->Valid == other.
Valid && this->Value == other.
Value;
211 const std::vector<vtkEntry>&
GetEntries()
const {
return this->Entries; }
214 typedef typename std::vector<vtkEntry>::const_iterator cit;
215 cit b = this->Entries.begin();
216 cit e = this->Entries.end();
217 if (this->Entries.size() != new_value.size() || !std::equal(b, e, new_value.begin()))
219 this->Entries = new_value;
220 this->DomainModified();
235 bool GetComputedDefaultValue(
unsigned int index, T& value);
237 std::vector<vtkEntry> Entries;
240 #if !defined(VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION) 241 #define VTK_SM_RANGE_DOMAIN_TEMPLATE_INSTANTIATE(T) \ 242 template class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMRangeDomainTemplate<T> 244 #include "vtkSMRangeDomainTemplate.txx" 245 #define VTK_SM_RANGE_DOMAIN_TEMPLATE_INSTANTIATE(T) 246 #endif // !defined(VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION) 248 #endif // !defined(vtkSMRangeDomainTemplate_h) 253 #if defined(VTK_SM_RANGE_DOMAIN_TEMPLATE_TYPE) 254 #if defined(VTK_BUILD_SHARED_LIBS) && defined(_MSC_VER) 255 #pragma warning(push) 256 #pragma warning(disable : 4091) // warning C4091: 'extern ' : 258 #pragma warning(disable : 4231) // Compiler-specific extension warning. 264 #undef VTK_SM_RANGE_DOMAIN_TEMPLATE_TYPE superclass for type-specific range domains i.e.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void SetAnimationValue(vtkSMProperty *, int vtkNotUsed(index), double vtkNotUsed(value))
Set the value of an element of a property from the animation editor.
virtual void Update(vtkSMProperty *requestingProperty)
Update self based on the "unchecked" values of all required properties.
superclass for all SM properties
T GetMaximum(unsigned int idx)
virtual int SetDefaultValues(vtkSMProperty *, bool vtkNotUsed(use_unchecked_values))
A vtkSMProperty is often defined with a default value in the XML itself.
int Resolution
Resolution is the number of steps in the values list.
represents the possible values a property can have
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTK_SM_RANGE_DOMAIN_TEMPLATE_INSTANTIATE(T)
virtual int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *elem)
Set the appropriate ivars from the xml element.
virtual int IsInDomain(vtkSMProperty *vtkNotUsed(property))
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes.
std::vector< DefaultModes > DefaultModeVector
bool operator==(const vtkEntry &other) const
vtkTuple< bool, 2 > Valid
DefaultModes DefaultDefaultMode
vtkEntry(T min, bool minValid, T max, bool maxValid)
const std::vector< vtkEntry > & GetEntries() const
void SetEntries(const std::vector< vtkEntry > &new_value)
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
T GetMinimum(unsigned int idx)
Returns the minimum/maximum value, is exists, otherwise 0 is returned.