[vtkusers] VTK with wxWidgets

Jothy jothybasu at gmail.com
Fri Sep 9 11:46:11 EDT 2011


This is how I created in python. It works fine.

def CreateOrientedAxes():
    axesActor = vtk.vtkAxesActor();
    axesActor.AxisLabelsOn();
    axesActor.SetShaftTypeToCylinder();
    axesActor.SetTipTypeToCone();
    axesActor.SetTotalLength([30,30,30])
    axes = vtk.vtkOrientationMarkerWidget()
    axes.SetOrientationMarker(axesActor)
    return axes

self.axes=CO.CreateOrientedAxes()
self.axes.SetInteractor(iren)
self.axes.EnabledOn()
 self.axes.InteractiveOn()
 self.ModelRenderer.ResetCamera()
 self.frameM.show()

You could try setting the origin of the vtkAxesActor yourself.

Jothy








On Fri, Sep 9, 2011 at 4:22 PM, Nelson <gnjoseph at gmail.com> wrote:

> Jothy:
>
> I already tried the method - InteractiveOn()
> Could you tell me how to remove extra space around the axes actor.
> I also attached the image after set InteractiveOn() to the actor widget for
> your perusal.
>
> http://vtk.1045678.n5.nabble.com/file/n4773424/screen-shot.jpg Actually I
> want to create axes actor like this.  Is it possible? Any suggestion...
>
> http://vtk.1045678.n5.nabble.com/file/n4786722/Untitled.jpg
>
> Thanks.
>
> -----
> Regards,
> Nelson
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/VTK-with-wxWidgets-tp3330391p4786722.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110909/bdbec0a7/attachment.htm>


More information about the vtkusers mailing list