vtkSIVectorPropertyTemplate.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
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 =========================================================================*/
21 #ifndef vtkSIVectorPropertyTemplate_h
22 #define vtkSIVectorPropertyTemplate_h
23 
24 #include "vtkRemotingServerManagerModule.h" //needed for exports
25 #include "vtkSIVectorProperty.h"
26 
27 template <class T, class force_idtype = int>
29 {
30 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
35 
47  vtkGetMacro(ArgumentIsArray, bool);
49 
50 protected:
52  ~vtkSIVectorPropertyTemplate() override;
53 
57  bool Push(vtkSMMessage*, int) override;
58 
62  bool Pull(vtkSMMessage*) override;
63 
67  bool ReadXMLAttributes(vtkSIProxy* proxyhelper, vtkPVXMLElement* element) override;
68 
72  bool Push(T* values, int number_of_elements);
73 
75 
76 private:
78  void operator=(const vtkSIVectorPropertyTemplate&) = delete;
79 };
80 
81 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual bool Push(vtkSMMessage *, int)
Push a new state to the underneath implementation.
vtkSIProxy is the server-implementation for a vtkSMProxy that helps the vtkSMProxy with managing/upda...
Definition: vtkSIProxy.h:34
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
bool ReadXMLAttributes(vtkSIProxy *proxyhelper, vtkPVXMLElement *element) override
Set the appropriate ivars from the xml element.
Abstract class for SIProperty that hold an array of values.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
virtual bool Pull(vtkSMMessage *)
Pull the current state of the underneath implementation.