43 #ifndef vtkSMRangeDomainTemplate_h 44 #define vtkSMRangeDomainTemplate_h 77 T GetMinimum(
unsigned int idx,
int& exists);
84 T GetMaximum(
unsigned int idx,
int& exists);
96 bool GetMinimumExists(
unsigned int idx);
97 bool GetMaximumExists(
unsigned int idx);
103 bool GetResolutionExists();
113 return this->GetMinimum(idx, not_used);
118 return this->GetMaximum(idx, not_used);
127 unsigned int GetNumberOfEntries();
174 this->Value[0] = this->Value[1] = 0;
175 this->Valid[0] = this->Valid[1] =
false;
177 vtkEntry(T min,
bool minValid, T max,
bool maxValid)
179 this->Value[0] = min;
180 this->Value[1] = max;
181 this->Valid[0] = minValid;
182 this->Valid[1] = maxValid;
186 this->Value[0] = min;
187 this->Value[1] = max;
188 this->Valid[0] = this->Valid[1] =
true;
193 return this->Valid == other.
Valid && this->Value == other.
Value;
199 const std::vector<vtkEntry>&
GetEntries()
const {
return this->Entries; }
202 typedef typename std::vector<vtkEntry>::const_iterator cit;
203 cit b = this->Entries.begin();
204 cit e = this->Entries.end();
205 if (this->Entries.size() != new_value.size() || !std::equal(b, e, new_value.begin()))
207 this->Entries = new_value;
208 this->DomainModified();
223 bool GetComputedDefaultValue(
unsigned int index, T& value);
225 std::vector<vtkEntry> Entries;
228 #if !defined(VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION) 229 #define VTK_SM_RANGE_DOMAIN_TEMPLATE_INSTANTIATE(T) \ 230 template class VTKREMOTINGSERVERMANAGER_EXPORT vtkSMRangeDomainTemplate<T> 232 #include "vtkSMRangeDomainTemplate.txx" 233 #define VTK_SM_RANGE_DOMAIN_TEMPLATE_INSTANTIATE(T) 234 #endif // !defined(VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION) 236 #endif // !defined(vtkSMRangeDomainTemplate_h) 241 #if defined(VTK_SM_RANGE_DOMAIN_TEMPLATE_TYPE) 242 #if defined(VTK_BUILD_SHARED_LIBS) && defined(_MSC_VER) 243 #pragma warning(push) 244 #pragma warning(disable : 4091) // warning C4091: 'extern ' : 246 #pragma warning(disable : 4231) // Compiler-specific extension warning. 252 #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.