[vtk-developers] Lightweight transform?

Volpe, Christopher R (Research) volpecr at crd.ge.com
Fri Feb 7 10:16:28 EST 2003



> I would be very interested to see a chunk of your code that 
> demonstrates
> how you are using the vtkTransform.

I'm really not doing anything esoteric with it. Mainly just some SetMatrix calls, a couple of
Identity calls, some Rotations, Translations, and a GetMatrix. 

> 
> The 'Legacy Hack' warning occurs if you do something like this:
>   transform->GetMatrix()->SetElement(i,j,val);

Ah. Got it.

> because you aren't allowed to directly change the transform's matrix
> (for the same reason that you shouldn't directly change the 
> vtkDataArray
> inside a vtk data set that is part of a pipeline).
> 
> If the Identity(), Translate() etc. methods are too slow for your
> application, you can subclass a new "vtkSimpleTransform" class
> from the vtkLinearTransform class.

Yep, that's what I figured. Of course, I wouldn't call it vtkSimpleTransform, since a class of that
name is used internally within vtkAbstractTransform :).

thanks,
Chris

> 

begin 600 winmail.dat
M>)\^(AX/`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<`
M&````$E032Y-:6-R;W-O9G0 at 36%I;"Y.;W1E`#$(`06``P`.````TP<"``<`
M"@`0`!P`!0`>`0$@@`,`#@```-,'`@`'``H`$``<``4`'@$!"8`!`"$```!#
M1D(S.#%#0T,X0T%#0C0S03DY,D)#03 at T-T-!1CDS00"=!P$$@`$`+````%)%
M.B!;=G1K+61E=F5L;W!E<G-=($QI9VAT=V5I9VAT('1R86YS9F]R;3\`/Q`!
M#8`$``(````"``(``0.0!@!D"0``,0````,`"5D!`````P#>/Y].```#``%N
M(`````,`/8`((`8``````,````````!&`````%*%``!];@$`'@`^@`@@!@``
M````P````````$8`````5(4```$````$````.2XP``L`ZH$((`8``````,``
M``````!&``````:%`````````P`_@`@@!@``````P````````$8``````84`
M```````+`#N`""`&``````#`````````1@`````#A0````````L`0(`((`8`
M`````,````````!&``````Z%`````````P`\@`@@!@``````P````````$8`
M````$(4````````#`$&`""`&``````#`````````1@`````1A0````````,`
M0H`((`8``````,````````!&`````!B%`````````@$)$`$```!B`P``7@,`
M`%D%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F`*8!/_R#@*^$4`2N@'C4\8BM2*5'O)0)0[2UA"X!C(#-/\R#1_2&C;D#2
M1V$[L1Z0'S-;X,\G$BD2"X`E`D%B(L(]D/U3Z#I(MAST(:$@H"N0'/1<0V@%
M$",E,-Q]8H```!X`<``!````*````%MV=&LM9&5V96QO<&5R<UT at 3&EG:'1W
M96EG:'0@=')A;G-F;W)M/P`"`7$``0```!L````!PLXP[P$*"<HT$2%(D[:_
M'<*^&!C&`""A9J```P`N```````+``(``0```!X`0A`!````0@```#Q0:6YE
M+DQ.6"XT+C,S+C`S,#(P-C$W,C at U.3`N,C,T.3$M,3`P,#`P0&)A;G%U;RYI
M<G5S+G)O8F%R=',N8V$^`````P#]/^0$``!``#D`@%OHXKO.P@$#`/$_"00`
M`!X`,4`!````$@```$-(4DE35$]02$52+E9/3%!%`````P`:0``````>`#!`
M`0```!(```!#2%))4U1/4$A%4BY63TQ010````,`&4```````P`F```````#
M`#8```````,`@!#_____"P#R$`$````"`4<``0```#8```!C/553.V$]34%2
M2S0P,#MP/4=%.VP]6$U",#)#4D1'12TP,S`R,#<Q-3$V,CA:+3,T-S at T,```
M``(!^3\!````=0````````#<IT#(P$(0&K2Y"``K+^&"`0`````````O3SU'
M12]/53U#4D1.25-+05E53D$O0TX]4D5#25!)14Y44R]#3CU%6$-(04Y'12!#
M3$E%3E0@*$580S`Q0U)$1T4I+T-./4-(4DE35$]02$52+E9/3%!%`````!X`
M^#\!````&P```%9O;'!E+"!#:')I<W1O<&AE<B!2("A#4D0I```>`#A``0``
M`!(```!#2%))4U1/4$A%4BY63TQ010````(!^S\!````=0````````#<IT#(
MP$(0&K2Y"``K+^&"`0`````````O3SU'12]/53U#4D1.25-+05E53D$O0TX]
M4D5#25!)14Y44R]#3CU%6$-(04Y'12!#3$E%3E0@*$580S`Q0U)$1T4I+T-.
M/4-(4DE35$]02$52+E9/3%!%`````!X`^C\!````&P```%9O;'!E+"!#:')I
M<W1O<&AE<B!2("A#4D0I```>`#E``0```!(```!#2%))4U1/4$A%4BY63TQ0
M10```$``!S#$Z=[BN\["`4``"##TDQ/CN\["`1X`/0`!````!0```%)%.B``
M````'@`=#@$````H````6W9T:RUD979E;&]P97)S72!,:6=H='=E:6=H="!T
M<F%N<V9O<FT_`!X`-1`!````-@```#Q&0D4Y,$1&0S(T,$)!-30Q0C,X030S
M1C,Y.3$S03$V1#`U049%0D,P0'AM8C`R8W)D9V4^````"P`I```````+`",`
M``````,`!A"?#DS;`P`'$/("```#`!`0`0````,`$1`!````'@`($`$```!E
M````25=/54Q$0D5615)924Y415)%4U1%1%1/4T5%04-(54Y+3T993U520T]$
M151(051$14U/3E-44D%415-(3U=93U5!4D554TE.1U1(15942U1204Y31D]2
M34E-4D5!3$Q93D]41``````"`7\``0```#8````\1D)%.3!$1D,R-#!"034T
J,4(S.$$T,T8S.3DQ,T$Q-D0P-4%&14)#,$!X;6(P,F-R9&=E/@```(1(
`
end



More information about the vtk-developers mailing list