[vtkusers] how to rotate vtkAnnotatedCubeActor ?

Mark Wyszomierski markww at gmail.com
Mon Apr 9 14:41:46 EDT 2007


Thanks a lot Dean, I'll check it out,

Mark

On 4/7/07, dean.inglis at camris.ca <dean.inglis at camris.ca> wrote:
> Hi Mark,
>
> I have made some changes to vtkACA that
> will allow one to change the final orientation
> of the annotated cube:
> 1) removed internal bool ivars Cube, FaceText,
> TextEdges: set/get directly the visibility of the
> corresponding constituent actors with
> Set/Get*Visibility
> 2) added an internal vtkAssemply ivar that keeps
> the props and allow access to this assembly so that
> all of the user transform/matrix or other vtkProp3D
> methods, such as SetOrientation will now work on
> the assembly of props: e.g.,
>  my_annotatedCubeActor->GetAssembly()->SetOrientation(45,45,45);
> 3) default face texts are now X+,X-,Y+,Y-,Z+,Z-
>
> Dean
>
>
> >
> > From: "Mark Wyszomierski"
> > Date: 2007/04/07 Sat AM 09:53:40 EDT
> > CC: vtkusers at vtk.org
> > Subject: Re: [vtkusers] how to rotate vtkAnnotatedCubeActor ?
> >
> > Hi Dean,
> >
> > Depending on the volume being renderered it may be a rotation other
> > than 90 degrees.
> >
> > If it's exactly 90 degrees, swapping the faces is possible, but then
> > you need to write a lot of code to make sure the text itself is
> > oriented correctly. By that I mean if you're putting the anatomical
> > character "S" on the front of the cube, you want to make sure that the
> > "A, P" etc are heads up in relation to the S too. It's tough to
> > explain.
> >
> > I just thought it was easier to always have it setup one way to start,
> > then apply one transform to the assembly and all of that is taken care
> > of for you.
> >
> > Thanks,
> > Mark
> >
> > On 4/7/07, dean.inglis wrote:
> > > Hi Mark, Michael, Jesús
> > >
> > > why do you want to initially rotate
> > > vtkAnnotatedCubeActor, and in what way?
> > > If you are rotating by any multiple of 90
> > > degrees about any of the x,y, or z axes, then
> > > you should really only need to change the
> > > text on the faces.
> > >
> > > Dean
> > >
>



More information about the vtkusers mailing list