[vtkusers] vtkAxisActor2D - 1D line with ticks
Louis Desjardins
lost_bits1110 at hotmail.com
Thu Dec 9 09:17:32 EST 2004
Hello experts,
All I want to do is draw a 1D line with ticks on it (no plotting of
data or anything) and this is what I attempted:
vtkAxisActor2D *DepthAxisActor = vtkAxisActor2D::New();
double *point1 = new double[2];
double *point2 = new double[2];
point1[0] = 0;
point2[1] = 0;
point1[0] = 200;
point2[1] = 200;
DepthAxisActor->TickVisibilityOn();
DepthAxisActor->AxisVisibilityOn();
DepthAxisActor->SetPoint1(point1);
DepthAxisActor->SetPoint2(point2);
DepthAxisActor->SetNumberOfLabels(4);
Renderer->AddActor2D(DepthAxisActor);
I know this should be easy but I'm obvoiusly missing something because it
doesnt show up
I'd appreciate any help!
Thank you, experts!
More information about the vtkusers
mailing list