------------------------------------------------------------------------------ set position and size of the entire plot
| 1908 | //------------------------------------------------------------------------------ |
| 1909 | // set position and size of the entire plot |
| 1910 | int vtkParallelCoordinatesRepresentation::SetPositionAndSize(double* position, double* size) |
| 1911 | { |
| 1912 | // rescale the Xs so that they fit into the range prescribed by position and size |
| 1913 | double oldPos[2], oldSize[2]; |
| 1914 | oldPos[0] = oldPos[1] = oldSize[0] = oldSize[1] = 0.; |
| 1915 | this->GetPositionAndSize(oldPos, oldSize); |
| 1916 | |
| 1917 | for (int i = 0; i < this->NumberOfAxes; i++) |
| 1918 | { |
| 1919 | this->Xs[i] = position[0] + size[0] * (this->Xs[i] - oldPos[0]) / oldSize[0]; |
| 1920 | } |
| 1921 | |
| 1922 | this->YMin = position[1]; |
| 1923 | this->YMax = position[1] + size[1]; |
| 1924 | |
| 1925 | this->Modified(); |
| 1926 | return 1; |
| 1927 | } |
| 1928 | |
| 1929 | //------------------------------------------------------------------------------ |
| 1930 | vtkPolyDataMapper2D* vtkParallelCoordinatesRepresentation::InitializePlotMapper( |
no test coverage detected