Commit d29aa93d authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

ENH: Python wrapping for vtkArray and support classes

Note: vtkArrayExtentsList.h and vtkArraySort.h are not wrapped
because they do not define a "<<" operator, the wrappers don't
yet have any way of checking which operators are defined.
parent bf25de90
......@@ -401,6 +401,9 @@ SET_SOURCE_FILES_PROPERTIES(
)
SET_SOURCE_FILES_PROPERTIES(
vtkArrayCoordinates.cxx
vtkArrayExtents.cxx
vtkArrayRange.cxx
vtkTimeStamp.cxx
vtkVariant.cxx
......
......@@ -102,14 +102,11 @@ public:
void Resize(const vtkIdType i);
void Resize(const vtkIdType i, const vtkIdType j);
void Resize(const vtkIdType i, const vtkIdType j, const vtkIdType k);
//BTX
void Resize(const vtkArrayRange& i);
void Resize(const vtkArrayRange& i, const vtkArrayRange& j);
void Resize(const vtkArrayRange& i, const vtkArrayRange& j, const vtkArrayRange& k);
void Resize(const vtkArrayExtents& extents);
//ETX
//BTX
// Description:
// Returns the extent (valid coordinate range) along the given
// dimension.
......@@ -118,7 +115,6 @@ public:
// Returns the extents (the number of dimensions and size along each
// dimension) of the array.
virtual const vtkArrayExtents& GetExtents() = 0;
//ETX
// Description:
// Returns the number of dimensions stored in the array. Note that
......@@ -155,7 +151,6 @@ public:
// Returns the label for the i-th array dimension.
vtkStdString GetDimensionLabel(vtkIdType i);
//BTX
// Description:
// Returns the coordinates of the n-th value in the array, where n is
// in the range [0, GetNonNullSize()). Note that the order in which
......@@ -204,7 +199,6 @@ public:
virtual void CopyValue(vtkArray* source, const vtkArrayCoordinates& source_coordinates, const vtkArrayCoordinates& target_coordinates) = 0;
virtual void CopyValue(vtkArray* source, const vtkIdType source_index, const vtkArrayCoordinates& target_coordinates) = 0;
virtual void CopyValue(vtkArray* source, const vtkArrayCoordinates& source_coordinates, const vtkIdType target_index) = 0;
//ETX
// Description:
// Returns a new array that is a deep copy of this array.
......
......@@ -82,7 +82,6 @@ public:
// Returns the index of the i-th dimension.
const vtkIdType& operator[](vtkIdType i) const;
// Description:
// Equality comparison
bool operator==(const vtkArrayCoordinates& rhs) const;
......@@ -94,7 +93,9 @@ public:
ostream& stream, const vtkArrayCoordinates& rhs);
private:
//BTX
vtkstd::vector<vtkIdType> Storage;
//ETX
};
#endif
......
......@@ -190,7 +190,9 @@ public:
ostream& stream, const vtkArrayExtents& rhs);
private:
//BTX
vtksys_stl::vector<vtkArrayRange> Storage;
//ETX
};
#endif
......
......@@ -77,6 +77,7 @@ public:
// to assign each slice.
void SetCount(vtkIdType count);
// Description:
// Accesses the i-th slice.
vtkArrayExtents& operator[](vtkIdType i);
......@@ -86,7 +87,9 @@ public:
const vtkArrayExtents& operator[](vtkIdType i) const;
private:
//BTX
vtkstd::vector<vtkArrayExtents> Storage;
//ETX
};
#endif
......
......@@ -93,7 +93,9 @@ public:
ostream& stream, const vtkArraySort& rhs);
private:
//BTX
vtkstd::vector<vtkIdType> Storage;
//ETX
};
#endif
......
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