[slicer-users] endoscopy camera control via IGTLink?

Jay Mung jmung at usc.edu
Wed Jun 29 16:53:47 EDT 2011


(sorry for sending this twice steve i realized i didn't cc' the mailing list)

Thanks Steve for pointing me at the Python console. I tried the
example you provided and it looks promising. I was able to use the
setPosition method and change the camera position via the command
line.

One thing I'm wondering: The endoscopy module generates a path for the
flythough. Is there a way to access the path coordinates via the
Python console? Or the methods within the Endoscopy.path class?  I
think I was able to access the "Node" for the path model but I
couldn't get anywhere from there. I think I'll be in a good place if I
can duplicate the Endoscopy GUI functionality with the python command
line.

Thanks for putting up with my mundane questions. I'm a beginner at
this, and I really appreciate your help.

Jay


On Mon, Jun 27, 2011 at 6:45 AM, Steve Pieper <pieper at ibility.net> wrote:
> Hi Jay -
>
> Yes, the cameras are 'transformable' in slicer, meaning that you can
> make them transform - there's no GUI for this, but a module can do it
> if needed.
>
> Here's an example that can be used in the python console:
>
>>>> import Slicer
>>>> Slicer.slicer.MRMLScene.GetNodeByID('vtkMRMLCameraNode1').SetAndObserveTransformNodeID('vtkMRMLTransformNode4')
>
> Have a look at Modules/Endoscopy/EndoscopyGUI.py for more examples of
> manipulating mrml from python.
>
> Best of luck,
> Steve
>
>
> On Tue, Jun 21, 2011 at 7:03 PM, Jay Mung <jmung at usc.edu> wrote:
>> Hi all,
>>
>> I'm trying to implement virtual endoscopy with but the camera control
>> tied to an external tracker. Is there any existing capability to do
>> this? I thought the camera module might do it but I'm not getting
>> anywhere. If this requires programming (i think an earlier thread
>> alluded to this) can you point me in the right direction?
>>
>> Thanks for your help,
>>
>> Jay Mung
>> _______________________________________________
>> slicer-users mailing list
>> slicer-users at bwh.harvard.edu
>> http://massmail.spl.harvard.edu/mailman/listinfo/slicer-users
>> To unsubscribe: send email to slicer-users-request at massmail.spl.harvard.edu with unsubscribe as the subject
>>
>



-- 
Jay C Mung
PhD Candidate
Department of Biomedical Engineering
University of Southern California

1042 Denny Research Building DRB 140
Los Angeles, CA 90089



More information about the slicer-users mailing list