[vtkusers] vtkChartXY: Rotate or flip a 2D Chart
AzDTo
clavier2008 at hotmail.fr
Tue Sep 9 02:52:24 EDT 2014
Here is the Part of code Source:
create a Chart..
.....
..
.
//rotate (90) a chart
pImpl->verticalModeTransform =
vtkSmartPointer<vtkContextTransform>::New();
pImpl->verticalModeTransform->AddItem(pImpl->chart);
pImpl->verticalModeTransform->Translate(0.0, sizeY);
pImpl->sizeY = sizeX;
pImpl->verticalModeTransform->Rotate(90);
pImpl->chart->SetAutoSize(true);
pImpl->chart->SetSize(vtkRectf(0.0, 0.0, sizeY, sizeX));
pImpl->view->GetScene()->AddItem(pImpl->verticalModeTransform);
...
..
.
the result Looks like this:
Default Chart
rotate to 90 degree
<http://vtk.1045678.n5.nabble.com/file/n5728619/1.png>
<http://vtk.1045678.n5.nabble.com/file/n5728619/Unbenannt.png>
thanks again
--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkChartXY-Rotate-or-flip-a-2D-Chart-tp5728574p5728619.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list