[vtkusers] implicitmodeller - negative distance inside object

David.Pont at scionresearch.com David.Pont at scionresearch.com
Mon Mar 9 16:41:47 EDT 2009


My understanding is that ImplicitModeller gives a distance from polydata,
the distance is always positive and will be the distance to the nearest
part of the polydata. It does not try to determine in / out, it simply
obtains the distance. The suggested method of using intersection with a
line sounds like the correct way to determine in/out.

  regards, Dave Pont




                                                                           
             "Rashindra                                                    
             Manniesing"                                                   
             <r.manniesing at era                                          To 
             smusmc.nl>                <vtkusers at vtk.org>                  
             Sent by:                                                   cc 
             vtkusers-bounces@                                             
             vtk.org                                               Subject 
                                       Re: [vtkusers] implicitmodeller -   
                                       negative distance inside object     
             10/03/2009 01:58                                              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Thank you for your reactions.

I've tried several things (in a custom ImplicitMOdeller class):

1. checked return value of cell->EvaluatePosition(..), but does not seem to
give the correct sign. According to cell class description, distance2 is
more reliable, but distance2 does not return the sign.

2. made a OBBTree of the polydata, and using obb->InsideOrOutisde(x), but
this terribly slowed down the calcutions

3. Shooting rays (as PointInPolygon), not implemented yet ... first I want
to try existing solutions

4. Other suggestions perhaps?


Rashindra









-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You will find discussions on this topic in the archives.
Search for a test if point is inside the surface. Generally, there is a
bug in the direct implementation, I work around it by shooting rays and
counting intersections.

- - Dominik


Message: 6
Date: Thu, 05 Mar 2009 23:19:06 +0100
From: Arturo Caissut <arturo_caissut at tiscali.it>
Subject: Re: [vtkusers] implicitmodeller - negative distance inside
             object
To: vtkusers at vtk.org
Message-ID: <49B04FDA.2070806 at tiscali.it>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Hi,
I had a similar need some time ago during a project developed with a
teacher of mine, and we created a "custom" Implicit Modeller class.
Maybe it could be a good starting point for you: the main (only?)
difference with vtkImplicitModeller is that into the class a "IN/OUT"
check is performed, so that internal points are considered to have
positive distance while external points have a negative one.
It was originally intended as a quick "filling" filter for a 3D surface
polydata, setting a high enough distance value, it generates a full volume.
Hope it'll help you.

Regards,
Arturo



Rashindra Manniesing ha scritto:
>
>
>
> I am new to VTK so please forgive if the following question has a
> trivial answer.
>
>
>
> I am using ImplicitModeller to get from a PolyData object to a
> distance map, and I was wondering whether it is possible to specify an
> inside and outside of the polydata object, such that the distances
> inside has different sign than the distances outside ?
>
>
>
> Best regards,
>
> Rashindra Manniesing
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkMyImplicitModeller.cxx
URL:
<
http://www.vtk.org/pipermail/vtkusers/attachments/20090305/8d413123/attachm
ent-0001.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vtkMyImplicitModeller.h
URL:
<.),
http://www.vtk.org/pipermail/vtkusers/attachments/20090305/8d413123/attachm
ent-0001.txt>

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

Message: 7
Date: Thu, 5 Mar 2009 15:24:21 -0800
From: Robbie Jaeger <rjaeger at gmail.com>
Subject: [vtkusers] Add timestamp to unstructuredgrid or polydata
To: vtkusers at vtk.org
Message-ID:
             <818aad690903051524y2217caf8lc51c22e4e3322f55 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello,

I'm creating an unstructuredgrid and exporting it using an
XMLUnstructuredGridWriter object.  Is there a timestamp feature for
unstructured grids so that I can label the grid as being from a specific
instance in time?  The ultimate goal would be to take a series of these XML
files and be able to go through them step by step.

If this feature does not exist for the unstructuredgrid class, can the
polydata class do this?

Thanks,
Robbie
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<
http://www.vtk.org/pipermail/vtkusers/attachments/20090305/9106dc8b/attachm
ent-0001.htm>

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

Message: 8
Date: Thu, 5 Mar 2009 18:42:08 -0800 (PST)
From: John Hsieh <cthsieh2001 at yahoo.com>
Subject: [vtkusers]  About color map and STL
To: vtkusers at vtk.org
Message-ID: <22365247.post at talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hello,
I am currently working on one project that requires to calculate the
distance deviation bewteen two surfaces (STL file format) and also asks to
display the deviation in various color.
I knew the vtkLookUpTable class may useful to my project, but I don't know
how to use it.
I need more information about how to use vtkLookUpTable to deal with STL
data.
Thanks


--
View this message in context:
http://www.nabble.com/About-color-map-and-STL-tp22365247p22365247.html
Sent from the VTK - Users mailing list archive at Nabble.com.



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

Message: 9
Date: Thu, 5 Mar 2009 19:28:47 -0800 (PST)
From: Dasan <janghang at gmail.com>
Subject: [vtkusers]  vtkDelaunay2D: How to remove discarded points
To: vtkusers at vtk.org
Message-ID: <22365659.post at talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Dear VTK Users,

Thanks to many people in this forum, I could use vtkDelaunay2D to construct
mesh from point cloud.  Thank you so much, every VTK users in this forum.

But I still have many questions on vtkDelaunay2D:

Q1. how can I remove some discarded points by SetTolerance(double)? For
example the following picture show a meshing result of triangulation
(vtkDelaunay2D). But as you can see, some points which were not used for
triangulation still exist inside triangles.

http://www.nabble.com/file/p22365659/Untitled-1.jpeg


How can I remove this?


Q2. what is the different between BoundingTriangleOn and Off? The main
difference I observed is that when I use "On," mesh lost colors which I
assigned as scalars and mesh's color becomes gray scale.  Do you know why?

"Boolean controls whether bounding triangulation points (and associated
triangles) are included in the output. (These are introduced as an initial
triangulation to begin the triangulation process. This feature is nice for
debugging output.) "

I cannot understand what this means due to lack of knowledge for
triangulation.

--
View this message in context:
http://www.nabble.com/vtkDelaunay2D%3A-How-to-remove-discarded-points-tp2236

5659p22365659.html
Sent from the VTK - Users mailing list archive at Nabble.com.



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

Message: 10
Date: Thu, 5 Mar 2009 22:24:41 -0800 (PST)
From: Dasan <janghang at gmail.com>
Subject: Re: [vtkusers] vtkDelaunay2D: How to remove discarded points
To: vtkusers at vtk.org
Message-ID: <22366840.post at talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Q1 may be a wrong question. These points would not be the discarded points
from SetTolerance. Anyway, Does anybody know why tkDelaunay2D displays
points? I expect to see only mesh!





Dasan wrote:
>
> Dear VTK Users,
>
> Thanks to many people in this forum, I could use vtkDelaunay2D to
> construct mesh from point cloud.  Thank you so much, every VTK users in
> this forum.
>
> But I still have many questions on vtkDelaunay2D:
>
> Q1. how can I remove some discarded points by SetTolerance(double)? For
> example the following picture show a meshing result of triangulation
> (vtkDelaunay2D). But as you can see, some points which were not used for
> triangulation still exist inside triangles.
>
>  http://www.nabble.com/file/p22365659/Untitled-1.jpeg
>
>
> How can I remove this?
>
>
> Q2. what is the different between BoundingTriangleOn and Off? The main
> difference I observed is that when I use "On," mesh lost colors which I
> assigned as scalars and mesh's color becomes gray scale.  Do you know
why?
>
> "Boolean controls whether bounding triangulation points (and associated
> triangles) are included in the output. (These are introduced as an
initial
> triangulation to begin the triangulation process. This feature is nice
for
> debugging output.) "
>
> I cannot understand what this means due to lack of knowledge for
> triangulation.
>
>

--
View this message in context:
http://www.nabble.com/vtkDelaunay2D%3A-How-to-remove-discarded-points-tp2236

5659p22366840.html
Sent from the VTK - Users mailing list archive at Nabble.com.



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

Message: 11
Date: Fri, 06 Mar 2009 09:38:48 +0100
From: <wassim_belhadj at topnet.tn>
Subject: Re: [vtkusers] [VtkEdge] vtkColorTransferFunction of lungs
To: Lisa Avila <lisa.avila at kitware.com>
Cc: vtkusers at vtk.org, vtkedge at vtkedge.org
Message-ID: <7b2f6d37c1bdf2c5c9ab48b121c8875f at pop.topnet.tn>
Content-Type: text/plain; charset="UTF-8"

Hello Lisa,

Thank you ver much for your answer I'm pleased :-)

My data is CT and  I'm  using Volume rendering techniques to view the
lungs.

I used Volview  and I  find a good transfer function
(vtkPiecewiseFunction) for Lungs but I have not found the appropriate
vtkColorTransferFunction. I would be delighted if you can help me.

I currently developing an interactive GUI for adjusting transfer function
nodes.

I have left the interaction with Gradient opacity function as this function
is not supported yet by the GPU ray cast mapper.

Can you tell me please when this feature will be added to VTKEdge?

I' m using VTKEdge/VTK CVS and Qt4

Best Regards,
BELHADJ wassim













On Thu, 05 Mar 2009 17:05:39 -0500, Lisa Avila <lisa.avila at kitware.com>
wrote:
> Hello Wassim,
>
> Are you trying to view the lungs as a surface, or transparently? I
> assume your data is CT?
>
> The best way to "find" a good transfer function is with an interactive
> GUI for adjusting transfer function nodes. You could try downloading the
> trial version of VolView 3 from the Kitware web site, adjust the
> transfer function interactively until you find a good one, then copy out
> the node values into your program. That is what I almost always do when
> I have to do a task like this - there is usually enough variation in
> scan parameters that you can't really say "this hardcoded function will
> be the best to show lungs in all CT data". Would be nice if that worked.
> :-)
>
> If you are still having problems after trying something interactive to
> help you, let me know.
>
> Lisa
>
>
> wassim_belhadj at topnet.tn wrote:
>> Hi,
>>
>> I'm using VTk/VTKEdge for lungs Volume rendering.
>>
>> My problem is that I have not found the appropriate
>> vtkColorTransferFunction of lungs.
>>
>> Most of the examples provide vtkColorTransferFunction and
>> vtkPiecewiseFunction functions of muscles, bones, skin but not lungs.
>>
>> Bellow my transfer function that I used to display Lungs.
>>
>>           opacityFun->AddPoint(-960,0.0);
>>           opacityFun->AddPoint(-950, 1.0);
>>          opacityFun->AddPoint(-550,1.0 );
>>           opacityFun->AddPoint(-500,0.3 );
>>           opacityFun->AddPoint(-450, 0.0);
>>           opacityFun->AddPoint(-300, 0.0);
>>
>> Can someone HELP ME?
>>
>> Best regards,
>> wassim
>> _______________________________________________
>> VtkEdge mailing list
>> VtkEdge at vtkedge.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/vtkedge
>>
>>


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

Message: 12
Date: Fri, 6 Mar 2009 10:04:16 +0000 (GMT)
From: Nour Mestiri <nourmestiri at yahoo.fr>
Subject: [vtkusers] Help! How to extract the surface of a volume?
To: vtk <vtkusers at vtk.org>
Message-ID: <816277.95540.qm at web28216.mail.ukl.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all vtk users.
I need your help. In?fact, i have a sequence of 2D 'segmented' images which
represent the bones of the human head.
When i make the reconstruction, i obtain the whole volume of the skull.. My
objective is to keep just the extern surface of this skull and eliminate
all
the rest.
I used the marching cubes algorithm but?the result is not exactly what i
want!!!
Is it possible to extract the surface of the volume? If yes, how to do?
Thank you.




-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<
http://www.vtk.org/pipermail/vtkusers/attachments/20090306/1a2466bb/attachm
ent-0001.htm>

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

Message: 13
Date: Fri, 06 Mar 2009 13:44:22 +0100
From: Eugen Wintersberger <eugen.wintersberger at jku.at>
Subject: [vtkusers] Exodus II problem
To: vtkusers at vtk.org
Message-ID: <1236343462.9124.14.camel at wheeler.hlphys.uni-linz.ac.at>
Content-Type: text/plain

Hi there
  I am fairly new to VTK and would like to know how to extract data from
an ExodusII file using vktExodusReader using the python bindings of VTK.
I have stored displacement data in the file from a finite element
simulation. This data appears as a 3 component vector in the ExodusII
file. The data structure should be an unstructured grid (tets).

I tried the following (most probably naive) approach

import vtk

d = vtk.vtkExodusReader()
d.SetFileName("bilayer_result.e")
d.UpdateInformation()
d.SetPointArrayStatus("u",1)
d.AddFilterOutputVar("u")
d.Update()
print d

uc = vtk.vtkExtractVectorComponents()
uc.SetInputConnection(d.GetOutputPort())

unfortunately vtkExtractVectorComponents complains that the input is no
vector.

Has anyone an idea how to get this working?

thanks in advance
   Eugen

PS: sorry for bothering you with such a maybe stupid question but I
could not find a useful example for vtkExodusReader anywhere on the web.
--
--------------------------------------------
|                                          |
| Dipl. Ing. Eugen Wintersberger           |
| Department of semicondutor physics       |
| University of Linz                       |
| Altenbergerstrasse 69                    |
| A-4040 Linz                              |
| Austria                                  |
|                                          |
| Mobile.: +43 664 3112861                 |
| Tel.: +43 732 2468 9605                  |
| E-Mail.: eugen.wintersberger at jku.at      |
| Skype: eugen20056221                     |
| ICQ: 214418739, nickname: thot           |
|                                          |
--------------------------------------------



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

Message: 14
Date: Fri, 06 Mar 2009 14:45:22 +0100
From: Eugen Wintersberger <eugen.wintersberger at jku.at>
Subject: [vtkusers] Confusion about GetOutputPort and GetOutput
To: vtkusers <vtkusers at vtk.org>
Message-ID: <1236347122.9124.19.camel at wheeler.hlphys.uni-linz.ac.at>
Content-Type: text/plain

Hi there
  its me again. I just had a look in "The Visualization Toolkit ....".
The book states that the usage of SetInput and GetOutput is highly
discouraged for VTK versions higher then 5.0. I use VTK 5.0.4 on an
Ubuntu 8.10 AMD64 installation. If I write my program using SetInput -
GetOutput I can easily access different attribute data from a dataset by
passing the index of the attribute data as an argument to the GetOutput
method of a dataset class. If I use, as recommended the GetOutputPort I
cannot use the index of attribute data. Can anyone explain me why this
is in this way or do I make a conceptual mistake?

regards
   Eugen
--
--------------------------------------------
|                                          |
| Dipl. Ing. Eugen Wintersberger           |
| Department of semicondutor physics       |
| University of Linz                       |
| Altenbergerstrasse 69                    |
| A-4040 Linz                              |
| Austria                                  |
|                                          |
| Mobile.: +43 664 3112861                 |
| Tel.: +43 732 2468 9605                  |
| E-Mail.: eugen.wintersberger at jku.at      |
| Skype: eugen20056221                     |
| ICQ: 214418739, nickname: thot           |
|                                          |
--------------------------------------------



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

Message: 15
Date: Fri, 6 Mar 2009 09:29:18 -0600
From: Ashish Singh <mrasingh at gmail.com>
Subject: [vtkusers] vtk debug leaks
To: VTK <vtkusers at vtk.org>
Message-ID:
             <e275438e0903060729l44fb6fecs2aa326105717ee17 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I am trying to compile and run the example 'Simpleview' at location:
Vtksource/Examples/GUI/Qt/SimpleView and am getting a lot of vtk debug leak
errors. The code compiles and runs fine. But when I close the application,
I
get the vtk debug errors. I am attaching a snapshot of the errors that I
get. My environment is as follows:

OS: Windows XP Pro x64
VTK version: 5.0.3, built with VTK_DEBUG_LEAKS:BOOL=ON,
VTK_USE_GUISUPPORT:BOOL=ON, VTK_USE_QVTK:BOOL=ON
Qt version:4.2.3
CMake version:2.4.6
Microsoft Visual Studio 2005

Can anyone please suggest how to fix these errors?

Thanks,
Ashish
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<
http://www.vtk.org/pipermail/vtkusers/attachments/20090306/1a40fc66/attachm
ent-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkdebugleaks.JPG
Type: image/jpeg
Size: 42441 bytes
Desc: not available
URL:
<
http://www.vtk.org/pipermail/vtkusers/attachments/20090306/1a40fc66/attachm
ent-0001.jpeg>

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

Message: 16
Date: Fri, 06 Mar 2009 08:42:15 -0700
From: Clinton Stimpson <clinton at elemtech.com>
Subject: Re: [vtkusers] vtk debug leaks
To: Ashish Singh <mrasingh at gmail.com>
Cc: VTK <vtkusers at vtk.org>
Message-ID: <49B14457.8040500 at elemtech.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Those leaks were fixed about 6 months ago.  You can see the fixes in CVS.

Clint

Ashish Singh wrote:
> Hi,
>
> I am trying to compile and run the example 'Simpleview' at location:
> Vtksource/Examples/GUI/Qt/SimpleView and am getting a lot of vtk debug
> leak errors. The code compiles and runs fine. But when I close the
> application, I get the vtk debug errors. I am attaching a snapshot of
> the errors that I get. My environment is as follows:
>
> OS: Windows XP Pro x64
> VTK version: 5.0.3, built with VTK_DEBUG_LEAKS:BOOL=ON,
> VTK_USE_GUISUPPORT:BOOL=ON, VTK_USE_QVTK:BOOL=ON
> Qt version:4.2.3
> CMake version:2.4.6
> Microsoft Visual Studio 2005
>
> Can anyone please suggest how to fix these errors?
>
> Thanks,
> Ashish
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




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

Message: 17
Date: Fri, 06 Mar 2009 10:39:35 -0500
From: John Eke <johne at annidis.com>
Subject: [vtkusers] Add ID to vtkImageActor
To: VTK <vtkusers at vtk.org>
Message-ID: <49B143B7.3030406 at annidis.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Guys,

Whats the easiest way to get a vtkImageActor with an ID field? I tried
inheritance, didn't work (maybe I didn't do it right). I tried creating
a replica of vtkImageActor, and renaming it to something else. But with
this, the New() method returns NULL

Please help

- John


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

Message: 18
Date: Fri, 6 Mar 2009 16:47:33 +0100
From: Mathieu Malaterre <mathieu.malaterre at gmail.com>
Subject: Re: [vtkusers] Add ID to vtkImageActor
To: John Eke <johne at annidis.com>
Cc: VTK <vtkusers at vtk.org>
Message-ID:
             <bf0c3b3f0903060747wb1720dfv8e34df7ca4e93d11 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Mar 6, 2009 at 4:39 PM, John Eke <johne at annidis.com> wrote:
> Hi Guys,
>
> Whats the easiest way to get a vtkImageActor with an ID field? I tried
> inheritance, didn't work (maybe I didn't do it right). I tried creating a
> replica of vtkImageActor, and renaming it to something else. But with
this,
> the New() method returns NULL

I did not quite followed what you are trying to do, but you understand
that vtkImageActor::New() returns a vtkOpenGLImageActor ?

2cts
--
Mathieu


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

Message: 19
Date: Fri, 6 Mar 2009 09:51:34 -0600
From: Ashish Singh <mrasingh at gmail.com>
Subject: Re: [vtkusers] vtk debug leaks
To: Clinton Stimpson <clinton at elemtech.com>, VTK <vtkusers at vtk.org>
Message-ID:
             <e275438e0903060751k31a562f0nb69515d201a9e1ad at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thanks Clinton. Can you please point me to the CVS and guide me on
searching
for these fixes there?

Thanks,
Ashish

On Fri, Mar 6, 2009 at 9:42 AM, Clinton Stimpson
<clinton at elemtech.com>wrote:

>
> Those leaks were fixed about 6 months ago.  You can see the fixes in CVS.
>
> Clint
>
> Ashish Singh wrote:
>
>> Hi,
>>
>> I am trying to compile and run the example 'Simpleview' at location:
>> Vtksource/Examples/GUI/Qt/SimpleView and am getting a lot of vtk debug
leak
>> errors. The code compiles and runs fine. But when I close the
application, I
>> get the vtk debug errors. I am attaching a snapshot of the errors that I
>> get. My environment is as follows:
>>
>> OS: Windows XP Pro x64
>> VTK version: 5.0.3, built with VTK_DEBUG_LEAKS:BOOL=ON,
>> VTK_USE_GUISUPPORT:BOOL=ON, VTK_USE_QVTK:BOOL=ON
>> Qt version:4.2.3
>> CMake version:2.4.6
>> Microsoft Visual Studio 2005
>>
>> Can anyone please suggest how to fix these errors?
>>
>> Thanks,
>> Ashish
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html:
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<
http://www.vtk.org/pipermail/vtkusers/attachments/20090306/ad6762d5/attachm
ent-0001.htm>

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

Message: 20
Date: Fri, 06 Mar 2009 11:02:34 -0500
From: John Eke <johne at annidis.com>
Subject: Re: [vtkusers] Add ID to vtkImageActor
To: Mathieu Malaterre <mathieu.malaterre at gmail.com>
Cc: VTK <vtkusers at vtk.org>
Message-ID: <49B1491A.1050600 at annidis.com>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL:
<
http://www.vtk.org/pipermail/vtkusers/attachments/20090306/72ff89be/attachm
ent-0001.htm>

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

Message: 21
Date: Fri, 6 Mar 2009 11:01:50 -0500
From: John Drescher <drescherjm at gmail.com>
Subject: Re: [vtkusers] vtk debug leaks
To: Ashish Singh <mrasingh at gmail.com>
Cc: VTK <vtkusers at vtk.org>, Clinton Stimpson <clinton at elemtech.com>
Message-ID:
             <387ee2020903060801u1fef8e22t38f10e2e3edee10 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Mar 6, 2009 at 10:51 AM, Ashish Singh <mrasingh at gmail.com> wrote:
> Thanks Clinton. Can you please point me to the CVS and guide me on
searching
> for these fixes there?
>
http://www.vtk.org/VTK/resources/software.html#cvs

John


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

Message: 22
Date: Fri, 6 Mar 2009 11:11:40 -0500
From: Mathieu Coursolle <mcoursolle at rogue-research.com>
Subject: Re: [vtkusers] Add ID to vtkImageActor
To: John Eke <johne at annidis.com>
Cc: VTK <vtkusers at vtk.org>
Message-ID: <5245297C-5D18-4137-88D2-E3C332214A7F at rogue-research.com>
Content-Type: text/plain; charset="us-ascii"; Format="flowed";
             DelSp="yes"

Hi,

If I understand correctly, you are trying to easily retrieve a
vtkActor instance based on some key.
I usually use a map where the key is a unique ID, and the value the
actual vtkActor.
That way I can retrieve quickly the actor associated with a key.
However, this has the inconvenient
of maintaining that map to make sure you remove actors which are
deleted, and add newly created
actors.

Hope this helps,

Mathieu

____________________
Mathieu Coursolle, M.Ing.
Rogue Research Inc.
www.rogue-research.com

On 6-Mar-09, at 11:02 AM, John Eke wrote:

> What I am trying to do is add a string Id as a private member to a
> vtkImageActor. I have a scenario where I am inserting multiple
> vtkImageActors into a renderer... and I want to selectively enable
> and disable them. The only way I can forsee doing that is if each
> image actor had an ID. That way I can iterate through the actors,
> find the one with the ID I am looking for, then enable it.
>
> Is there a better way to do this? If not how can I add the ID field
> to an image actor?
>
> I hope this clears things up
>
> - John
>
> Mathieu Malaterre wrote:
>>
>> On Fri, Mar 6, 2009 at 4:39 PM, John Eke <johne at annidis.com> wrote:
>>
>>> Hi Guys,
>>>
>>> Whats the easiest way to get a vtkImageActor with an ID field? I
>>> tried
>>> inheritance, didn't work (maybe I didn't do it right). I tried
>>> creating a
>>> replica of vtkImageActor, and renaming it to something else. But
>>> with this,
>>> the New() method returns NULL
>>>
>> I did not quite followed what you are trying to do, but you
>> understand
>> that vtkImageActor::New() returns a vtkOpenGLImageActor ?
>>
>> 2cts
>>
>
> --
> INFORMAL COMMUNICATION - The statements within this email and
> attachments if any, may be founded on partial knowledge, incorrect
> information, or incomplete understanding of the issues and should
> not be accorded the probity or status of a formal evidentiary
> deposition.
>
>
>
> CONFIDENTIALITY STATEMENT - This e-mail and  attachments if any, may
> contain confidential or privileged information. If you are not the
> intended recipient, please delete it, notify me immediately by reply
> e-mail, and be advised that you are not permitted to read, use,
> disclose, copy, or distribute it or its contents.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers









-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<
http://www.vtk.org/pipermail/vtkusers/attachments/20090306/d8f11bbe/attachm
ent.htm>

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

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


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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090310/43e3faf7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090310/43e3faf7/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic20807.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090310/43e3faf7/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090310/43e3faf7/attachment-0002.gif>


More information about the vtkusers mailing list