[vtkusers] Seek User "shijith"!

shijith shijith at ddd.co.jp
Tue Oct 19 05:01:10 EDT 2004


Hi,
What's wrong with your VTK MFC application?
Shijith
-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org]On
Behalf Of vtkusers-request at vtk.org
Sent: Tuesday, October 19, 2004 5:49 PM
To: vtkusers at vtk.org
Subject: vtkusers Digest, Vol 6, Issue 38


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: Re: [vtkusers] problem with vtk on linux (debian) with
      opengl	libs from (Mathieu Malaterre)
   2. How to size glyphs with one scalar field,	and colour with
      another? (s comp)
   3. Re: problem with vtk on linux (debian) with opengl libs	from
      (Meshulum Laks)
   4. Re: How to size glyphs with one scalar field, and	colour with
      another? (Craig N. Scott)
   5. Static library problem (Mirelle Mellqvist)
   6. vtkExtractEdges actor does not respond to SetOpacity,	is
      there a fix or workaround for this (s comp)
   7. Re: problem compiling  vtk-4.5.0  on fedora core 2
      (Manoj Kumar Singh)
   8. How to transform a ImageData to BMP type? ( zfjgo )
   9. Seek User "shijith"! ( zfjgo )


----------------------------------------------------------------------

Message: 1
Date: Mon, 18 Oct 2004 23:12:38 -0400
From: Mathieu Malaterre <mathieu.malaterre at kitware.com>
Subject: Re: Re: [vtkusers] problem with vtk on linux (debian) with
	opengl	libs from
To: <mlaks at verizon.net>
Cc: vtkusers at vtk.org
Message-ID: <20041019031238.XAXC9098.fep02.biz.rr.com@[127.0.0.1]>
Content-Type: text/plain; charset=iso-8859-1

Thanks Mitchell I was just trying to help you as I had gone through the same
problems, that's all. Anyway I did setup a wiki page:

http://vtk.org/Wiki/VTK_OpenGL

That should help other people setup their opengl driver, but as you mention,
if nvidia worked out of the box, ATI should *seriously* rethink the quality
of their linux driver.

You mentioned an open source dicom workstation, where are you going to get
the dicom lib ?

Anyway enjoy,
Mathieu


> Dear Mathieu,
>
> I am very grateful for all of your help.
> I jgave up. I ust pulled the 9800xt card and removed the ati radeon
drivers
> and installed a nvidia 5950 utra and ran the nvidia intaller and it ran
> immediately.
> Beautiful Cones!!!! no vtk problems!!
> gears of 6000+ frames per second!!!
>
> nvidia rules!!!
>
> I probably could have gotten the ati working, but I really want to learn
VTK
> and ITK and build my open source dicom workstation for linux, not figure
out
> ati radeon drivers. So I am getting rid of the radeon- putting it in the
> windows pc workstation that yielded the nvidia card, and I am glad I had
both
> to try.
>
> You are a very kind and helpful person, and I look forward to asking
> substantive vtk questions as I get through the examples.!!!
> Thanks,
> MItchell
>
> On Monday 18 October 2004 10:10 am, you wrote:
>
> > Meshulum Laks wrote:
> > > One additional point
> > > I mention also that I clearly again have a satisfactory install of
opengl
> > > for the ati radeon driver
> > > as when i run the application
> > > fgl_glxgears that was installed by the fglrx deb
> > > it again runs with speeds of 600frames/persecond
> > >
> > > It seems to be a problem with running vtk via these drivers itself
> > >
> > > is there a viable alternative, and what have others done...
> > > also how to trick debian apt to deal with this kind of shared library
> > > conflict in /usr/X11R6/lib/libGL.so.1.2 etc
> > > so that i can get my kde back?
> >
> > Mitchell,
> >
> > 	Ok I reread the instructions on:
> >
> > http://www.watchland.org/dmcgraw/ati-debian.html
> >
> > 	I think you should use alien to convert to tgz, extract at top level
> > '/', then go to /lib/modules/fglrx/build_mod ...
> >
> > HTH,
> > Mathieu
> > Ps: avoid aving multiple libGL in different directory, it just doesn't
> > make sense. Also if you used libGL.a at some point I'd suggest you
> > remove all your binaries, 'make clean' if you are paranoid.
>




------------------------------

Message: 2
Date: Tue, 19 Oct 2004 13:54:36 +1000 (EST)
From: s comp <sscomp2004 at yahoo.com.au>
Subject: [vtkusers] How to size glyphs with one scalar field,	and
	colour with another?
To: vtkusers at vtk.org
Message-ID: <20041019035436.92753.qmail at web61108.mail.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi All,

How can I size glyphs with one scalar field and colour them with another?

Thanks,

Sonam



---------------------------------
Find local movie times and trailers on Yahoo! Movies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://public.kitware.com/pipermail/vtkusers/attachments/20041019/6898fc5e/a
ttachment.htm

------------------------------

Message: 3
Date: Tue, 19 Oct 2004 00:09:45 -0400
From: Meshulum Laks <mlaks at verizon.net>
Subject: Re: [vtkusers] problem with vtk on linux (debian) with opengl
	libs	from
To: Mathieu Malaterre <mathieu.malaterre at kitware.com>
Cc: vtkusers at vtk.org
Message-ID: <200410190009.45342.mlaks at verizon.net>
Content-Type: text/plain;  charset="iso-8859-8-i"

On Monday 18 October 2004 11:12 pm, you wrote:
> You mentioned an open source dicom workstation, where are you going to get
> the dicom lib ?

I have been using dcmtk (c++), which is very nice to use to decode dicom
files.

I also have been using the open source (essentially c ) wustl ctn software
which is nice as it has a full database backed (Postgresql) dicom server,
which I have currently stored over 10 terabytes of dicom files serving my
hospital.
so I think maybe to use  a combination of both to speed my work and just
build
the gui with qt.
I have already written a simple toy display with opengl. But now I see from
the work of the people who wrote Osirix for Mac OSX the power of vtk and I
want to tap into that!
Mitchell


------------------------------

Message: 4
Date: Tue, 19 Oct 2004 14:51:49 +1000
From: "Craig N. Scott" <craig.scott at csiro.au>
Subject: Re: [vtkusers] How to size glyphs with one scalar field, and
	colour with another?
To: s comp <sscomp2004 at yahoo.com.au>
Cc: vtkusers at vtk.org
Message-ID: <1098161509.5505.48.camel at caulfield>
Content-Type: text/plain

I had to do something similar myself recently, only with scalars and
vectors (not fields). I got little response from the mailing list, but I
eventually worked out a solution using vtkProgammableGlyphFilter. It
involves saving the scalar data array to be used for scaling, then
setting the scalar array for the reader to the one I wanted to color by.
What follows is a brief snippet of Tcl code. It should draw spheres with
radius corresponding to a scalar point data set called "radius" and
color the spheres  according to a different scalar point data set called
"colorValues". I haven't tested the code below (I've pulled it out from
pieces of some of my work), but it should do the trick.

PS: I don't claim that it is good Tcl coding style, nor particularly
efficient!
======================================

vtkUnstructuredGridReader  reader
reader SetFileName "something.vtk"

reader SetScalarsName "radius"
reader Update

set srcArray [[[reader GetOutput] GetPointData] GetArray "radius"]

vtkDoubleArray radiusArray
radiusArray DeepCopy $srcArray

reader SetScalarsName "colorValues"

vtkSphereSource sphere

# procedure for generating glyphs
proc Glyph {} {
   set ptId [glypher GetPointId]
   set xyz  [glypher GetPoint]
   set x [lindex $xyz 0]
   set y [lindex $xyz 1]
   set z [lindex $xyz 2]

   set radius [radiusArray GetTuple1 $ptId]

   eval sphere SetRadius $radius
   eval sphere SetCenter $xyz
}

vtkProgrammableGlyphFilter glypher
glypher SetInput [reader GetOutput]
glypher SetSource [sphere GetOutput]
glypher SetGlyphMethod {Glyph}

vtkDataSetMapper resultMapper
resultMapper SetInput [glypher GetOutput]

 :
 (set up an actor, renderer, etc. as per usual)
 :


On Tue, 2004-10-19 at 13:54, s comp wrote:
> Hi All,
>
> How can I size glyphs with one scalar field and colour them with
> another?
>
> Thanks,
>
> Sonam

--
Dr Craig Scott, CSIRO (CMIS)
Melbourne, Australia

Computers are easy to reboot. Attitudes are much harder.


------------------------------

Message: 5
Date: Tue, 19 Oct 2004 06:42:03 +0000
From: "Mirelle Mellqvist" <mirelle_mellqvist at hotmail.com>
Subject: [vtkusers] Static library problem
To: vtkusers at vtk.org
Message-ID: <BAY1-F22R1JBjbUf9Sp00003a32 at hotmail.com>
Content-Type: text/plain; charset=iso-8859-1; format=flowed

Hi all!
I decided a while ago to use static libraries with vtk (earlier I used
dynamically linkend) and I have had a few examples working with the static
libraries. I am using Visual studio .net and I am pretty sure that I have
included all the libraries in a correct way. Now when we started working on
a new project I keep getting these errors that I don't understand.
I have looked through the mailing list for problems of the same kind, but no
luck there. So therefor I decided to send out an e-mail in hope that someone
else ran into this problem.
Please let me know if you know what I am missing out on. Here are my errors:

Compiling resources...
Linking...
vtkRendering.lib(vtkOpenGLFreeTypeTextMapper.obj) : error LNK2019:
unresolved external symbol "public: float __thiscall FTFont::Advance(char
const *)" (?Advance at FTFont@@QAEMPBD at Z) referenced in function "public:
virtual void __thiscall vtkOpenGLFreeTypeTextMapper::GetSize(class
vtkViewport *,int * const)"
(?GetSize at vtkOpenGLFreeTypeTextMapper@@UAEXPAVvtkViewport@@QAH at Z)
vtkRendering.lib(vtkOpenGLFreeTypeTextMapper.obj) : error LNK2019:
unresolved external symbol "public: void __thiscall FTFont::BBox(char const
*,float &,float &,float &,float &,float &,float &)"
(?BBox at FTFont@@QAEXPBDAAM11111 at Z) referenced in function "public: virtual
void __thiscall vtkOpenGLFreeTypeTextMapper::GetSize(class vtkViewport *,int
* const)" (?GetSize at vtkOpenGLFreeTypeTextMapper@@UAEXPAVvtkViewport@@QAH at Z)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol "public: static class FTLibrary * __cdecl
FTLibrary::GetInstance(void)" (?GetInstance at FTLibrary@@SAPAV1 at XZ) referenced
in function "public: struct FT_LibraryRec_ * * __thiscall
vtkFreeTypeUtilities::GetLibrary(void)"
(?GetLibrary at vtkFreeTypeUtilities@@QAEPAPAUFT_LibraryRec_@@XZ)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FT_Set_Transform referenced in function
_vtkFreeTypeUtilitiesFaceRequester
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FT_New_Memory_Face referenced in function
_vtkFreeTypeUtilitiesFaceRequester
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FTC_Manager_Done referenced in function "private: void
__thiscall vtkFreeTypeUtilities::ReleaseCacheManager(void)"
(?ReleaseCacheManager at vtkFreeTypeUtilities@@AAEXXZ)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol "public: bool __thiscall FTFont::FaceSize(unsigned
int,unsigned int)" (?FaceSize at FTFont@@QAE_NII at Z) referenced in function
"public: struct vtkFreeTypeUtilities::Entry * __thiscall
vtkFreeTypeUtilities::GetFont(class vtkTextProperty *,double * const)"
(?GetFont at vtkFreeTypeUtilities@@QAEPAUEntry at 1@PAVvtkTextProperty@@QAN at Z)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol "public: __thiscall FTGLPixmapFont::FTGLPixmapFont(void)"
(??0FTGLPixmapFont@@QAE at XZ) referenced in function "public: struct
vtkFreeTypeUtilities::Entry * __thiscall vtkFreeTypeUtilities::GetFont(class
vtkTextProperty *,double * const)"
(?GetFont at vtkFreeTypeUtilities@@QAEPAUEntry at 1@PAVvtkTextProperty@@QAN at Z)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol "public: static void __cdecl
FTLibraryCleanup::AddDependency(void (__cdecl*)(void))"
(?AddDependency at FTLibraryCleanup@@SAXP6AXXZ at Z) referenced in function
"public: __thiscall
vtkFreeTypeUtilitiesCleanup::vtkFreeTypeUtilitiesCleanup(void)"
(??0vtkFreeTypeUtilitiesCleanup@@QAE at XZ)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FTC_CMapCache_New referenced in function "private: void
__thiscall vtkFreeTypeUtilities::InitializeCacheManager(void)"
(?InitializeCacheManager at vtkFreeTypeUtilities@@AAEXXZ)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FTC_ImageCache_New referenced in function "private: void
__thiscall vtkFreeTypeUtilities::InitializeCacheManager(void)"
(?InitializeCacheManager at vtkFreeTypeUtilities@@AAEXXZ)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FTC_Manager_New referenced in function "private: void
__thiscall vtkFreeTypeUtilities::InitializeCacheManager(void)"
(?InitializeCacheManager at vtkFreeTypeUtilities@@AAEXXZ)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FTC_Manager_LookupSize referenced in function "public: int
__thiscall vtkFreeTypeUtilities::GetSize(unsigned long,int,struct
FT_SizeRec_ * *)"
(?GetSize at vtkFreeTypeUtilities@@QAEHKHPAPAUFT_SizeRec_@@@Z)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FTC_Manager_LookupFace referenced in function "public: int
__thiscall vtkFreeTypeUtilities::GetFace(unsigned long,struct FT_FaceRec_ *
*)" (?GetFace at vtkFreeTypeUtilities@@QAEHKPAPAUFT_FaceRec_@@@Z)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FTC_CMapCache_Lookup referenced in function "public: int
__thiscall vtkFreeTypeUtilities::GetGlyphIndex(unsigned long,char,unsigned
int *)" (?GetGlyphIndex at vtkFreeTypeUtilities@@QAEHKDPAI at Z)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FTC_ImageCache_Lookup referenced in function "public: int
__thiscall vtkFreeTypeUtilities::GetGlyph(unsigned long,int,unsigned
int,struct FT_GlyphRec_ * *,int)"
(?GetGlyph at vtkFreeTypeUtilities@@QAEHKHIPAPAUFT_GlyphRec_@@H at Z)
vtkRendering.lib(vtkFreeTypeUtilities.obj) : error LNK2019: unresolved
external symbol _FT_Get_Kerning referenced in function "public: int
__thiscall vtkFreeTypeUtilities::GetBoundingBox(class vtkTextProperty *,char
const *,int * const)"
(?GetBoundingBox at vtkFreeTypeUtilities@@QAEHPAVvtkTextProperty@@PBDQAH at Z)
Release/WinApp.exe : fatal error LNK1120: 17 unresolved externals

Build log was saved at
"file://c:\Mirelle\20041019\WinApp_Peter\Release\BuildLog.htm"
WinApp - 18 error(s), 0 warning(s)


---------------------- Done ----------------------

    Rebuild All: 0 succeeded, 1 failed, 0 skipped


Kind regards,
Mirelle Mellqvist

_________________________________________________________________
Ldttare att hitta drvmresan med MSN Resor http://www.msn.se/resor/



------------------------------

Message: 6
Date: Tue, 19 Oct 2004 16:53:07 +1000 (EST)
From: s comp <sscomp2004 at yahoo.com.au>
Subject: [vtkusers] vtkExtractEdges actor does not respond to
	SetOpacity,	is there a fix or workaround for this
To: vtkusers at vtk.org
Message-ID: <20041019065307.18929.qmail at web61104.mail.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I would like to make an edges actor transparent but

[edgeActor GetProperty] SetOpacity 0.1

does not work.

Is there another way to achieve this, or has it been fixed in new versions
of vtk?, I am using 4.2.?? windows binary distribution

(I would rather not upgrade at the moment if possible)

Thanks,

Sonam



---------------------------------
Find local movie times and trailers on Yahoo! Movies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://public.kitware.com/pipermail/vtkusers/attachments/20041019/b6ef6567/a
ttachment.html

------------------------------

Message: 7
Date: Tue, 19 Oct 2004 11:33:51 +0500
From: "Manoj Kumar Singh" <manoj at bhu.ac.in>
Subject: Re: [vtkusers] problem compiling  vtk-4.5.0  on fedora core 2
To: vtkusers at vtk.org
Message-ID: <155ec19adb.19adb155ec at mail.bhu.ac.in>
Content-Type: text/plain; charset=us-ascii



----- Original Message -----
From: Mathieu Malaterre <mathieu.malaterre at kitware.com>
Date: Tuesday, October 12, 2004 7:54 pm
Subject: Re: [vtkusers] problem compiling  vtk-4.5.0  on fedora core 2

> Manoj,
>
>    could you run the make command in verbose mode:
>
> make VERBOSE=1
>
> And send me the compilation line that fail.
>
> Thanks
> Mathieu
Last few lines from running 'make VERBOSE=1' are :
make[3]: Entering directory `/usr/src/redhat/BUILD/VTK/Wrapping/Python'
Building executable /usr/src/redhat/BUILD/VTK/bin/vtkpython...
g++ -O2 -g -pipe -march=i386 -mcpu=i686 -Wno-deprecated
-Wno-deprecated -fPIC vtkPythonAppInit.o -o
/usr/src/redhat/BUILD/VTK/bin/vtkpython -rdynamic -L.
-L/usr/src/redhat/BUILD/VTK/lib -L/usr/lib/python2.3/config
-L/usr/X11R6/lib -lpython2.3 -lvtkCommon -lvtkFiltering -lvtkIO
-lvtkGraphics -lvtkImaging -lvtkzlib -lutil -lvtkRendering -lvtkPatented
-lvtkHybrid -lvtkParallel -lvtkPatented -lvtkRendering -lvtkGraphics
-lvtkImaging -lvtkftgl -lvtkfreetype -lGL -lXt -lSM -lICE -lSM -lICE
-lSM -lICE -lX11 -lXext -lX11 -lXext -lX11 -lXext -lvtkIO -lvtkFiltering
-lvtkCommon -lpthread -ldl -lm -lvtkDICOMParser -lvtkpng -lvtktiff
-lvtkzlib -lvtkjpeg -lvtkexpat
/usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x410e):
In function `posix_tmpnam':
: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib/python2.3/config/libpython2.3.a(posixmodule.o)(.text+0x4039):
In function `posix_tempnam':
: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/src/redhat/BUILD/VTK/lib/libvtkRendering.so: undefined reference to
`crc32'/usr/src/redhat/BUILD/VTK/lib/libvtkRendering.so: undefined
reference to `compress'
collect2: ld returned 1 exit status
make[3]: *** [/usr/src/redhat/BUILD/VTK/bin/vtkpython] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/VTK/Wrapping/Python'
make[2]: *** [default_target] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/VTK/Wrapping/Python'
make[1]: *** [default_target_Wrapping_Python] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/VTK'
make: *** [default_target] Error 2

Thanks
  Manoj
>
> >>>_______________________________________________
> >>>This is the private VTK discussion list.
> >>>Please keep messages on-topic. Check the FAQ at: <"
> >>
> >>target="l">" target="l">http://public.kitware.com/cgi-bin/vtkfaq>
> >>
> >>>Follow this link to subscribe/unsubscribe:
> >>>http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>
> >>
> >>
> >>
> >
> >
>
>
>
>



------------------------------

Message: 8
Date: Tue, 19 Oct 2004 16:25:04 +0800 (CST)
From: " zfjgo " <zfjgo at 126.com>
Subject: [vtkusers] How to transform a ImageData to BMP type?
To: vtkusers at vtk.org
Message-ID: <4174CF60.00001C.15765 at m59.126.com>
Content-Type: text/plain; charset="gb2312"



Now I have a ImageData file,but I don't know its data type,I want to
transform it to BMP type.How to do?
Thanks for your reply.



-----------------------------------------------------------
MxRW126W(R55gWSSJ>V#,N*DzLa9)W?T=5gWSSJ<~7~Nq#,http://www.126.com/
H+9zWn4s5DCb7QSJOd#,260UW?U<d12UW8=<~#,G?A&I16>74@,;x#,=gCfN^9c8f

------------------------------

Message: 9
Date: Tue, 19 Oct 2004 16:48:28 +0800 (CST)
From: " zfjgo " <zfjgo at 126.com>
Subject: [vtkusers] Seek User "shijith"!
To: vtkusers at vtk.org
Message-ID: <4174D4DC.000158.21432 at m58.126.com>
Content-Type: text/plain; charset="gb2312"

Hello  shijith

I encounter the same problem as you now.That is VTK in MFC.
So I am eager to contact with you.
My Email Add.    zfjgo at 126.com





-----------------------------------------------------------
MxRW126W(R55gWSSJ>V#,N*DzLa9)W?T=5gWSSJ<~7~Nq#,http://www.126.com/
H+9zWn4s5DCb7QSJOd#,260UW?U<d12UW8=<~#,G?A&I16>74@,;x#,=gCfN^9c8f

------------------------------

_______________________________________________
vtkusers mailing list
vtkusers at vtk.org
http://www.vtk.org/mailman/listinfo/vtkusers


End of vtkusers Digest, Vol 6, Issue 38
***************************************





More information about the vtkusers mailing list