ParaView
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 "vtkPVServerImplementationCoreModule.h" //needed for exports
25 #include "vtkSIVectorProperty.h"
26 
27 template <class T, class force_idtype = int>
28 class VTKPVSERVERIMPLEMENTATIONCORE_EXPORT vtkSIVectorPropertyTemplate : public vtkSIVectorProperty
29 {
30 public:
32  void PrintSelf(ostream& os, vtkIndent indent);
33 
35 
47  vtkGetMacro(ArgumentIsArray, bool);
49 
50 protected:
53 
57  virtual bool Push(vtkSMMessage*, int);
58 
62  virtual bool Pull(vtkSMMessage*);
63 
67  virtual bool ReadXMLAttributes(vtkSIProxy* proxyhelper, vtkPVXMLElement* element);
68 
72  bool Push(T* values, int number_of_elements);
73 
75 
76 private:
77  vtkSIVectorPropertyTemplate(const vtkSIVectorPropertyTemplate&) VTK_DELETE_FUNCTION;
78  void operator=(const vtkSIVectorPropertyTemplate&) VTK_DELETE_FUNCTION;
79 };
80 
81 #endif
82 
83 // VTK-HeaderTest-Exclude: vtkSIVectorPropertyTemplate.h
void PrintSelf(ostream &os, vtkIndent indent)
virtual bool Push(vtkSMMessage *, int)
Push a new state to the underneath implementation.
virtual bool ReadXMLAttributes(vtkSIProxy *proxyhelper, vtkPVXMLElement *element)
Set the appropriate ivars from the xml element.
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...
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.