[vtkusers] Re: vtkusers Digest, Vol 11, Issue 18

yala kaluma yala_aiiii at hotmail.com
Sun Mar 13 14:35:57 EST 2005


Hi,

I am having problem with the script below.
It seems like the compiler doesn trecognize the folder VTK_DATA_ROOT...
So i switched it to the path of the VTKDATA I downloaded (with 
Data/masonry.bmp in it). But it still doesn t  work..
I am not sure i understand what VTK_DATA_ROOT represents anyway.

In the VTK folder I downloaded. There is not a whole lot of example written 
in C++. If anybody knows the adress of a site where I can find any I would 
really apreciate.
How would you write the line
reader SetFileName "$VTK_DATA_ROOT/Data/masonry.bmp"

in C++?



Thank u very much
Yala, true VTK newbie...


package require vtk

# we have to make sure it works with multiple scalar components

# Image pipeline

vtkBMPReader reader

reader SetFileName "$VTK_DATA_ROOT/Data/masonry.bmp"

reader SetDataExtent 0 255 0 255 0 0

reader SetDataSpacing 1 1 1

reader SetDataOrigin 0 0 0

reader UpdateWholeExtent

vtkTransform transform

transform RotateZ 45

transform Scale 1.414 1.414 1.414

vtkImageReslice reslice

reslice SetInput [reader GetOutput]

reslice SetResliceTransform transform

reslice InterpolateOn

reslice SetInterpolationModeToCubic

reslice WrapOn

reslice AutoCropOutputOn

vtkImageViewer viewer

viewer SetInput [reslice GetOutput]

viewer SetZSlice 0

viewer SetColorWindow 256.0

viewer SetColorLevel 127.5

viewer Render



----- Original Message ----- 
From: <vtkusers-request at vtk.org>
To: <vtkusers at vtk.org>
Sent: Sunday, March 13, 2005 6:00 PM
Subject: vtkusers Digest, Vol 11, Issue 18


> Send vtkusers mailing list submissions to
> vtkusers at vtk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
> vtkusers-request at vtk.org
>
> You can reach the person managing the list at
> vtkusers-owner at vtk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
>   1. Disable vtkGenericWindowInteractor? (Stephan Theisen)
>   2. actor to outLine (Vahid Zahiri)
>   3. Re:DICOM spacing (Patrick Violante) (fengfenghsy)
>   4. [vtkusers]vtkActor array (Alejandro Galindo Mateo)
>   5. vtkCutter (Alejandro Galindo Mateo)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 12 Mar 2005 19:58:37 +0100
> From: Stephan Theisen <StephanTheisen at gmx.de>
> Subject: [vtkusers] Disable vtkGenericWindowInteractor?
> To: vtkusers at vtk.org
> Message-ID: <42333BDD.7070901 at gmx.de>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> Hi together!
>
> I've the following problem: I've developed a vtkCanvas and implemented a
> vtkGenericWindowInteractor. But
> this Interactor does too much. Because if I want to interact with an
> other panel, that is active for the moment and
> overlays the vtkCanvas, the Interactor for the vtkCanvas reacted. How
> can I disable the interactor of the vtkCanvas
> during I interact with other panels?
>
> Thanks in advance
>
> Stephan
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 12 Mar 2005 20:11:41 +0000
> From: Vahid Zahiri <tux.dev at gmail.com>
> Subject: [vtkusers] actor to outLine
> To: vtkusers at vtk.org
> Message-ID: <e83ce42f05031212116e10627b at mail.gmail.com>
> Content-Type: text/plain; charset=US-ASCII
>
> hello
> is it possible i get outline from actor with create it from data ( or
> mapper ) ?
> thank in advance
> vahid zahiri
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 13 Mar 2005 13:35:03 +0800
> From: "fengfenghsy" <fengfenghsy at 163.com>
> Subject: [vtkusers] Re:DICOM spacing (Patrick Violante)
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID: <20050313053307.4A38134766 at public.kitware.com>
> Content-Type: text/plain; charset="gb2312"
>
> Patrick,
>     It seems that once  the DICOM files generated from the PACS, the image 
> slice between two adjancent DICOM slice has been definitely conformed. 
> It`s value determined by the PACS equipments. But unfortunately ,I have 
> not found the fuction in VTK to read it out! Is there any one who can? 
> thanks a lot!
>
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡fengfenghsy
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡fengfenghsy at 163.com
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-03-13
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 13 Mar 2005 11:28:08 +0100
> From: "Alejandro Galindo Mateo" <agalmat at hotmail.com>
> Subject: [vtkusers]vtkActor array
> To: vtkusers at vtk.org
> Message-ID: <BAY10-F406B0A7149766E796A18CBBC550 at phx.gbl>
> Content-Type: text/plain; charset=iso-8859-1; format=flowed
>
> Hello vtkusers,
>
> I have a problem with arrays.  I define an array of vtkActor:
>
> vtkActor **array = new vtkActor* [170];
>
> and then I set the input:
>
> array[0]->SetInput(mapper); (mapper is a vtkPolyDataMapper)
>
> I compile it without any problem but when I execute it I get:
>
> "Segmentation fault (core dumped)" just when the program has to set the
> input.
> Can anyone tell me if I missed something?
>
> Thanks,
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Sun, 13 Mar 2005 14:56:05 +0100
> From: "Alejandro Galindo Mateo" <agalmat at hotmail.com>
> Subject: [vtkusers] vtkCutter
> To: vtkusers at vtk.org
> Message-ID: <BAY10-F134283F5FE4FFE5AE79A89BC550 at phx.gbl>
> Content-Type: text/plain; charset=iso-8859-1; format=flowed
>
> Hello vtkusers,
>
> I have a vtkStructuredPoints and I want to extract slices from it, I have
> used vtkCutter but I want to know if there is another way to do it faster 
> as
> vtkCutter takes too much time for me.
>
> I would thank any suggestion,
>
>
>
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 11, Issue 18
> ****************************************
> 



More information about the vtkusers mailing list