vtkSMMaterialDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMMaterialDomain.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkSMMaterialDomain_h
29 #define vtkSMMaterialDomain_h
30 
31 #include "vtkRemotingViewsModule.h" //needed for exports
32 #include "vtkSMStringListDomain.h"
33 
34 class vtkSMMaterialObserver;
35 
37 {
38 public:
39  static vtkSMMaterialDomain* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
46  virtual void Update(vtkSMProperty*) override;
47 
48 protected:
51 
52  virtual int ReadXMLAttributes(vtkSMProperty* prop, vtkPVXMLElement* element) override;
53 
54  void CallMeSometime();
55  friend class vtkSMMaterialObserver;
56  vtkSMMaterialObserver* Observer;
57 
58 private:
60  void operator=(const vtkSMMaterialDomain&) = delete;
61 };
62 
63 #endif
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
superclass for all SM properties
int ReadXMLAttributes(vtkSMProperty *prop, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
void Update(vtkSMProperty *) override
Update self checking the "unchecked" values of all required properties.
static vtkSMStringListDomain * New()
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
Manages the list of OSPRay materials choosable to draw with.
vtkSMMaterialObserver * Observer