[vtkusers] Re: vtkusers Digest, Vol 21, Issue 15
Sajjadul Islam
rupam_sajjad at yahoo.com
Sun Jan 15 15:25:50 EST 2006
How to incorporate monte carlo volume rendering in the VTK?
Sajjad
vtkusers-request at vtk.org wrote: 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. Re: error: invalid static_cast from type 'int' to type 'const
itk::Image*' (Cesar Rabak)
2. VTK, Java and Key PressEvent! (Chris Hughes)
3. TCL script to open several files... (Renato N. Elias)
4. Problems with texture mapping (Ankur Deshmukh)
----------------------------------------------------------------------
Message: 1
Date: Sat, 14 Jan 2006 18:28:32 -0300 (ART)
From: Cesar Rabak
Subject: Re: [vtkusers] error: invalid static_cast from type 'int' to
type 'const itk::Image*'
To: Luis Ibanez , charfeddine amir
Cc: insight insight , vtkusers vtkusers
Message-ID: <20060114212832.87384.qmail at web30406.mail.mud.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"
OTOH, now we know the best season to ask for the full power of divinatory abilities
Luis Ibanez escreveu:
Hi Amir,
We may need to look at the code that
you wrote in your file migAppBase.cxx :-)
It seems that you are attempting to assign
an integer to a SmartPointer of an image.
That will not work....
Please be nice to us and share with mailing
list the lines of code around line 246 of
your file
/usr/local/myITKgui/migAppBase.cxx
We already tried hard to use our divinatory
mental powers to guess what you may have
written in that file...
but given that today is almost Full Moon, and
that we are too far from the Winter Solstice,
our divinatory skills didn't work quite well.
Best regards,
Luis
---------------------
charfeddine amir wrote:
> Hi All
>
> while trying to build myITKgui package, i get error during build process :
>
> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h:90: error:
> invalid static_cast from type 'int' to type 'const itk::Image
> char, 3u>*'
> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h: In member
> function 'bool itk::SmartPointer::operator==(R) const [with
> R = int, TObjectType = itk::Image]':
> /usr/local/myITKgui/migAppBase.cxx:246: instantiated from here
> /usr/local/include/InsightToolkit/Common/itkSmartPointer.h:86: error:
> invalid static_cast from type 'int' to type 'const itk::Image
> char, 3u>*'
> make[1]: *** [migAppBase.o] Erreur 1
> make: *** [default_target] Erreur 2
> [root at timhpux myITKguibin]#
>
> thankx for any help or comment.
> Amir.
>
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
---------------------------------
Yahoo! doce lar. Faça do Yahoo! sua homepage.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/vtkusers/attachments/20060114/e671233c/attachment.html
------------------------------
Message: 2
Date: Sat, 14 Jan 2006 23:00:41 -0000
From: "Chris Hughes"
Subject: [vtkusers] VTK, Java and Key PressEvent!
To:
Message-ID:
<200601142300.k0EN0j20093291 at mailhost.informatics.bangor.ac.uk>
Content-Type: text/plain; charset="us-ascii"
Hi Guys,
A quick question. I have added an Observer to an interactor which on a
KeyPress calls a specific function. This works and I am able to see the
function being called every time I press a key, but how can I work out which
key was pressed, so that I can add a response to it! Java.
Many Thanks,
Chris
------------------------------
Message: 3
Date: Sun, 15 Jan 2006 10:43:26 -0200
From: "Renato N. Elias"
Subject: [vtkusers] TCL script to open several files...
To:
Message-ID: <20060115124243.0BFEF7000191 at smtp2.oi.com.br>
Content-Type: text/plain; charset="us-ascii"
Dear friends,
I'd like to write a VTK/TCL script to read several Ensight Case files, apply
the "append dataset" and "clean to grid" filters and export the result to an
unique VTK file, but my problem is: how can I read several files in a TCL
scrip without having to write a reader block for each case file? I'm trying
to do something like this:
...
# radical is used to build the file names
set radical [lindex $argv 0]
# number of files to be read
set nprocs [lindex $argv 1]
append radical "_"
# example radical = foo, nprocs=2
# will produce the following filenames: foo_00.case and foo_01.case
# foo_00.case + foo_01.case = foo.vtk
for {set i 0} {$i < $nprocs} {incr i} {
set casefile(i) $radical
if {$i < 10} { append casefile(i) "0" }
append casefile(i) $i
append casefile(i) ".case"
puts " Reading Ensight casefile $casefile(i)"
vtkGenericEnSightReader reader
reader SetCaseFileName $casefile(i)
reader Update
...
...
}
as everybody can see, it'll never work....
I understood that the "reader" is an object and I should create one object
to each casefile, so, how could I do that?
I guess it's a very basic question, but I just started to learn TCL and VTK
and I have not found any similar example in the VTK books.
thanks a lot for any help
Renato N. Elias
===================================================
PhD Student
High Performance Computing Center - NACAD/COPPE
Federal University of Rio de Janeiro, RJ -Brazil
http://www.nacad.ufrj.br/~rnelias
------------------------------
Message: 4
Date: Sun, 15 Jan 2006 06:31:26 -0700
From: Ankur Deshmukh
Subject: [vtkusers] Problems with texture mapping
To: vtkusers at vtk.org
Message-ID: <43CA4EAE.107 at uccs.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hey Guys,
I am trying to texture map a jpeg image to a medical dat set. I was
wondering if any one has done this before and could help me wiht my
predicament. As I try to map this texture to the volume data, the jpeg
image just sticks into the volume data with no actual mapping occuring.
Here is an image of whats happening:
http://cs.uccs.edu/~asdeshmu/figure.png
I am wondering how to correct this problem and have not gotten anywhere.
Any help would be highly appreciated.
Thanks
Ankur
------------------------------
_______________________________________________
vtkusers mailing list
vtkusers at vtk.org
http://www.vtk.org/mailman/listinfo/vtkusers
End of vtkusers Digest, Vol 21, Issue 15
****************************************
---------------------------------
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060115/ba9fd514/attachment.htm>
More information about the vtkusers
mailing list