Commit af2bb60b authored by Berk Geveci's avatar Berk Geveci
Browse files

ENH: 1. Added new classes for dealing with selections 2. Removed const...

ENH: 1. Added new classes for dealing with selections 2. Removed const modifier. VTK and ParaView are not const correct and it is difficult to work with const methods
parent ba350985
......@@ -30,6 +30,7 @@ SET(Kit_SRCS
vtkPVOptions.cxx
vtkPVOptionsXMLParser.cxx
vtkPVProgressHandler.cxx
vtkPVSelectionInformation.cxx
vtkPVServerInformation.cxx
vtkPVServerOptions.cxx
vtkPVServerSocket.cxx
......@@ -41,6 +42,7 @@ SET(Kit_SRCS
vtkProcessModuleConnectionManager.cxx
vtkProcessModuleGUIHelper.cxx
vtkRemoteConnection.cxx
vtkSelectionSerializer.cxx
vtkSelfConnection.cxx
vtkServerConnection.cxx
vtkStringList.cxx
......@@ -56,6 +58,7 @@ SET_SOURCE_FILES_PROPERTIES(
vtkPVInformation
vtkProcessModuleConnection
vtkProcessModuleGUIHelper
vtkSelectionSerializer.cxx
vtkRemoteConnection
vtkUndoElement
ABSTRACT
......@@ -71,6 +74,7 @@ SET_SOURCE_FILES_PROPERTIES(
vtkPVServerOptions.cxx
vtkPVServerSocket.cxx
vtkPVCreateProcessModule
vtkSelectionSerializer.cxx
WRAP_EXCLUDE
)
......
......@@ -34,7 +34,7 @@ public:
vtkStandardNewMacro(vtkMPIMToNSocketConnectionPortInformation);
vtkCxxRevisionMacro(vtkMPIMToNSocketConnectionPortInformation, "1.1");
vtkCxxRevisionMacro(vtkMPIMToNSocketConnectionPortInformation, "1.2");
//----------------------------------------------------------------------------
vtkMPIMToNSocketConnectionPortInformation::vtkMPIMToNSocketConnectionPortInformation()
......@@ -128,7 +128,7 @@ void vtkMPIMToNSocketConnectionPortInformation::AddInformation(vtkPVInformation*
//----------------------------------------------------------------------------
void
vtkMPIMToNSocketConnectionPortInformation::CopyToStream(vtkClientServerStream* css) const
vtkMPIMToNSocketConnectionPortInformation::CopyToStream(vtkClientServerStream* css)
{
css->Reset();
*css << vtkClientServerStream::Reply
......
......@@ -69,7 +69,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
// Description:
// Set the host name.
......
......@@ -19,7 +19,7 @@ cxx the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#include "vtkObjectFactory.h"
vtkStandardNewMacro(vtkPVArrayInformation);
vtkCxxRevisionMacro(vtkPVArrayInformation, "1.4");
vtkCxxRevisionMacro(vtkPVArrayInformation, "1.5");
//----------------------------------------------------------------------------
vtkPVArrayInformation::vtkPVArrayInformation()
......@@ -366,7 +366,7 @@ void vtkPVArrayInformation::AddInformation(vtkPVInformation* info)
}
//----------------------------------------------------------------------------
void vtkPVArrayInformation::CopyToStream(vtkClientServerStream* css) const
void vtkPVArrayInformation::CopyToStream(vtkClientServerStream* css)
{
css->Reset();
*css << vtkClientServerStream::Reply;
......
......@@ -89,7 +89,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
// Description:
......
......@@ -18,7 +18,7 @@
#include "vtkObjectFactory.h"
vtkStandardNewMacro(vtkPVClassNameInformation);
vtkCxxRevisionMacro(vtkPVClassNameInformation, "1.2");
vtkCxxRevisionMacro(vtkPVClassNameInformation, "1.3");
//----------------------------------------------------------------------------
vtkPVClassNameInformation::vtkPVClassNameInformation()
......@@ -64,7 +64,7 @@ void vtkPVClassNameInformation::AddInformation(vtkPVInformation* info)
//----------------------------------------------------------------------------
void
vtkPVClassNameInformation::CopyToStream(vtkClientServerStream* css) const
vtkPVClassNameInformation::CopyToStream(vtkClientServerStream* css)
{
css->Reset();
*css << vtkClientServerStream::Reply << this->VTKClassName
......
......@@ -44,7 +44,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
protected:
......
......@@ -24,7 +24,7 @@
#include <vtkstd/set>
vtkStandardNewMacro(vtkPVClientServerIdCollectionInformation);
vtkCxxRevisionMacro(vtkPVClientServerIdCollectionInformation, "1.7");
vtkCxxRevisionMacro(vtkPVClientServerIdCollectionInformation, "1.8");
typedef vtkstd::set<vtkClientServerID> vtkClientServerIdSetBase;
class vtkClientServerIdSetType : public vtkClientServerIdSetBase {};
......@@ -49,7 +49,7 @@ void vtkPVClientServerIdCollectionInformation::
{
this->Superclass::PrintSelf(os,indent);
cerr << indent << "Ids: ";
os << indent << "Ids: ";
vtkstd::set<vtkClientServerID>::const_iterator IdIter;
for (IdIter = this->ClientServerIds->begin();
IdIter != this->ClientServerIds->end();
......@@ -104,7 +104,7 @@ void vtkPVClientServerIdCollectionInformation
//----------------------------------------------------------------------------
void vtkPVClientServerIdCollectionInformation
::CopyToStream(vtkClientServerStream* css) const
::CopyToStream(vtkClientServerStream* css)
{
css->Reset();
......
......@@ -47,7 +47,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
//BTX
......
......@@ -24,7 +24,7 @@
#include <vtkstd/vector>
vtkStandardNewMacro(vtkPVCompositeDataInformation);
vtkCxxRevisionMacro(vtkPVCompositeDataInformation, "1.5");
vtkCxxRevisionMacro(vtkPVCompositeDataInformation, "1.6");
struct vtkPVCompositeDataInformationInternals
{
......@@ -206,7 +206,7 @@ void vtkPVCompositeDataInformation::AddInformation(vtkPVInformation* pvi)
}
//----------------------------------------------------------------------------
void vtkPVCompositeDataInformation::CopyToStream(
vtkClientServerStream* css) const
vtkClientServerStream* css)
{
unsigned int i, j;
......
......@@ -47,7 +47,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
// Description:
......
......@@ -42,7 +42,7 @@
#include <vtkstd/vector>
vtkStandardNewMacro(vtkPVDataInformation);
vtkCxxRevisionMacro(vtkPVDataInformation, "1.19");
vtkCxxRevisionMacro(vtkPVDataInformation, "1.20");
//----------------------------------------------------------------------------
vtkPVDataInformation::vtkPVDataInformation()
......@@ -785,7 +785,7 @@ int vtkPVDataInformation::DataSetTypeIsA(const char* type)
}
//----------------------------------------------------------------------------
void vtkPVDataInformation::CopyToStream(vtkClientServerStream* css) const
void vtkPVDataInformation::CopyToStream(vtkClientServerStream* css)
{
css->Reset();
*css << vtkClientServerStream::Reply;
......
......@@ -60,7 +60,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
// Description:
......
......@@ -29,7 +29,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPVDataSetAttributesInformation);
vtkCxxRevisionMacro(vtkPVDataSetAttributesInformation, "1.7");
vtkCxxRevisionMacro(vtkPVDataSetAttributesInformation, "1.8");
//----------------------------------------------------------------------------
vtkPVDataSetAttributesInformation::vtkPVDataSetAttributesInformation()
......@@ -411,7 +411,7 @@ vtkPVDataSetAttributesInformation::GetArrayInformation(const char *name) const
//----------------------------------------------------------------------------
void
vtkPVDataSetAttributesInformation
::CopyToStream(vtkClientServerStream* css) const
::CopyToStream(vtkClientServerStream* css)
{
css->Reset();
*css << vtkClientServerStream::Reply;
......
......@@ -77,7 +77,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
protected:
......
......@@ -25,7 +25,7 @@
#endif
vtkStandardNewMacro(vtkPVDisplayInformation);
vtkCxxRevisionMacro(vtkPVDisplayInformation, "1.2");
vtkCxxRevisionMacro(vtkPVDisplayInformation, "1.3");
//----------------------------------------------------------------------------
vtkPVDisplayInformation::vtkPVDisplayInformation()
......@@ -92,7 +92,7 @@ void vtkPVDisplayInformation::AddInformation(vtkPVInformation* pvi)
}
//----------------------------------------------------------------------------
void vtkPVDisplayInformation::CopyToStream(vtkClientServerStream* css) const
void vtkPVDisplayInformation::CopyToStream(vtkClientServerStream* css)
{
css->Reset();
*css << vtkClientServerStream::Reply << this->CanOpenDisplay
......
......@@ -36,7 +36,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
// Description:
......
......@@ -40,7 +40,7 @@ public:
//BTX
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const = 0;
virtual void CopyToStream(vtkClientServerStream*) = 0;
virtual void CopyFromStream(const vtkClientServerStream*);
//ETX
......
......@@ -20,7 +20,7 @@
#include "vtkQuadricClustering.h"
vtkStandardNewMacro(vtkPVLODPartDisplayInformation);
vtkCxxRevisionMacro(vtkPVLODPartDisplayInformation, "1.3");
vtkCxxRevisionMacro(vtkPVLODPartDisplayInformation, "1.4");
//----------------------------------------------------------------------------
vtkPVLODPartDisplayInformation::vtkPVLODPartDisplayInformation()
......@@ -84,7 +84,7 @@ void vtkPVLODPartDisplayInformation::AddInformation(vtkPVInformation* info)
//----------------------------------------------------------------------------
void
vtkPVLODPartDisplayInformation::CopyToStream(vtkClientServerStream* css) const
vtkPVLODPartDisplayInformation::CopyToStream(vtkClientServerStream* css)
{
css->Reset();
*css << vtkClientServerStream::Reply;
......
......@@ -46,7 +46,7 @@ public:
// Description:
// Manage a serialized version of the information.
virtual void CopyToStream(vtkClientServerStream*) const;
virtual void CopyToStream(vtkClientServerStream*);
virtual void CopyFromStream(const vtkClientServerStream*);
protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment