------------------------------------------------------------------------------
| 57 | |
| 58 | //------------------------------------------------------------------------------ |
| 59 | static void StringArrayToStringBuffer(vtkStringArray* sVals, std::string& sPack) |
| 60 | { |
| 61 | std::vector<std::string> sVect; // consecutive strings |
| 62 | |
| 63 | vtkIdType nv = sVals->GetNumberOfValues(); |
| 64 | sVect.reserve(nv); // reserve space for all strings |
| 65 | for (vtkIdType i = 0; i < nv; ++i) |
| 66 | { |
| 67 | // Push back current string value |
| 68 | sVect.push_back(sVals->GetValue(i)); |
| 69 | } |
| 70 | |
| 71 | // Concatenate vector of strings into single string |
| 72 | StringVectorToStringBuffer(sVect, sPack); |
| 73 | } |
| 74 | |
| 75 | //------------------------------------------------------------------------------ |
| 76 | static void StringHistoToBuffers( |
no test coverage detected