[vtkusers] vtkAxisActor2D - 1D line with ticks

Louis Desjardins lost_bits1110 at hotmail.com
Thu Dec 9 10:28:49 EST 2004


(I'm sorry for sending this again but i"m not sure if it went through the 
first time apparently there was mail server problems..?)

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'm obvoiusly missing something because it doesnt show up
I'd appreciate any help!
Thank you, experts!





More information about the vtkusers mailing list