[vtkusers] Re: Drawing Grid Lines

Poonam Shanbhag poonamshanbhag at yahoo.com
Sat Oct 26 13:41:13 EDT 2002


hello 
  I am new to this list. My qst may seem very basic. I
want to draw gird lines on the vtk rendering window.
Is there any way I can do it? since I am not able to
draw multiple lines using vtkLine function and
vtkCellArray too

Please help

Poonam
--- vtkusers-request at public.kitware.com wrote:
> Send vtkusers mailing list submissions to
>  vtkusers at public.kitware.com
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
>  http://public.kitware.com/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body
> 'help' to
>  vtkusers-request at public.kitware.com
> 
> You can reach the person managing the list at
>  vtkusers-admin at public.kitware.com
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of vtkusers digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Problem with vtkFlRenderWindowInteractor
> (Charl P. Botha)
>    2. Re: Re: vtkLineSource - multiple points
> (K.R.Subramanian)
>    3. Vtk File Format (Vahid Zahiri)
>    4. Volume Rendering, Need To Display Cursor
> (Matthew Mendez)
>    5. Re: Vtk File Format (Prabhu Ramachandran)
>    6. Kylix 3 for C++ and VTK 4.0 (Marcelo Costa
> Oliveira)
>    7. cmake? (Tom G. Smith (Smitty))
>    8. Re: cmake? (Andy Cedilnik)
>    9. Re: cmake? (Amy Henderson)
>   10. Re: cmake? (Sebastien BARRE)
>   11. Can't interact remotely with binary from
> Cone.cxx (Tom G. Smith (Smitty))
>   12. error... (cspl)
> 
> --__--__--
> 
> Message: 1
> Subject: Re: [vtkusers] Problem with
> vtkFlRenderWindowInteractor
> From: "Charl P. Botha" <c.p.botha at its.tudelft.nl>
> To: Joshua A Foster <jafoster at uncc.edu>
> Cc: vtkusers at public.kitware.com
> Date: 25 Oct 2002 17:22:28 +0200
> 
> On Fri, 2002-10-25 at 16:56, Joshua A Foster wrote:
> > XRequest.143: BadAccess (attempt to access private
> resource denied) 0x2800003
> 
> I've never seen this...  what would help immensely
> is if you could
> produce a short(ish) snippet of code with which you
> can reproduce this
> error.  If I can reproduce it at my end, I actually
> have a chance of
> fixing it.
> 
> BTW, which versions of everything are you using? 
> Software, platform,
> drivers?
> 
> > The view starts with one actor, then actors are
> added from other parts of a 
> > program via a callback.  Is there a restriction on
> adding actors while 
> > interacting with the window?
> 
> This shouldn't be a problem.
> 
> > Another problem that I have frequently is not all
> actors being drawn.  I can 
> > print out the visible actor count and it is
> correct, but only a few of the 
> > actors are shown on the screen.  I can replace the
> 
> > vtkFlRenderWindowInteractor with a regular
> vtkRenderWindowInteractor and the 
> > actors are shown correctly.  Do you have any ideas
> on what I could do to 
> > correct this?
> 
> There used to be a problem like this with some of
> the older NVidia
> drivers, but that affected all renderwindows.  Once
> again, I need to
> able to reproduce this as I haven't seen it yet.
> 
> -- 
> charl p. botha http://cpbotha.net/
> http://visualisation.tudelft.nl/
> 
> --__--__--
> 
> Message: 2
> Date: Fri, 25 Oct 2002 13:43:06 -0400
> From: "K.R.Subramanian" <krs at cs.uncc.edu>
> Organization: Univ. of N. Carolina at Charlotte
> To: Phil Cook <p.cook at cs.ucl.ac.uk>
> Cc: vtkusers at public.kitware.com,
> stefan.bruckner at chello.at
> Subject: Re: [vtkusers] Re: vtkLineSource - multiple
> points
> 
> Phil Cook wrote:
> 
> > >
> > > Message: 1
> > > From: Stefan Bruckner
> <stefan.bruckner at chello.at>
> > > To: vtkusers at public.kitware.com
> > > Date: 24 Oct 2002 21:52:31 +0200
> > > Subject: [vtkusers] vtkLineSource - multiple
> points
> > >
> > > Hi. I have a question regarding vtkLineSource: I
> want to create a
> > > polyline connecting several points.
> Additionally, I want to be able to
> > > add new points to the line later.
> > >
> > > However, vtkLineSource only supports two points.
> > >
> > > What's the best way to to this? Is using several
> line sources a good
> > > way, what alternatives are there?
> > >
> > > Thanks for your help!
> > >
> > > --
> > > Stefan Bruckner
> > >
> > >
> >
> > Try vtkTubeFilter. It will draw a multi-sided (min
> sides == 3) tube
> > around lines composed of many points. First,
> define the points
> > (vtkPoints) and lines (vtkCellArray), then call
> poly->SetPoints(points)
> > and poly->SetLines(lines). You can then use poly
> as the input to a
> > vtkTubeFilter.
> >
> > You will need to reapply the filter if you change
> the input points.
> 
> Or put the TubeFilter around a  1D structured grid 
> -:) works fine..
> 
>     -- krs
> 
> >
> >
> > Phil
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> >
> http://public.kitware.com/mailman/listinfo/vtkusers
> 
> --
> K.R.Subramanian                        Phone: (704)
> 687-4872
> Department of Computer Science         FAX:   (704)
> 687-4893
> UNC Charlotte, CARC 311                Email:
> krs at cs.uncc.edu
> Charlotte, NC 28223-0001               Web:
> http://www.cs.uncc.edu/~krs
> 
> 
> 
> 
> --__--__--
> 
> Message: 3
> From: Vahid Zahiri <vahid at elham.iut.ac.ir>
> Reply-To: vahid at elham.iut.ac.ir
> Organization: Isfahan Univ of Tech Computer Center
> To: vtkusers at public.kitware.com
> Date: Fri, 25 Oct 2002 21:22:59 +0330
> Subject: [vtkusers] Vtk File Format
> 
> 
>  hello
>  i have a file with vtk format , it is contain a
> Structured Grid.
>  can i add another  Structured Grid to this
> file,(two Structured Grid in
>  one file), and how can i read them?
>  thanks in advance.
> 
>  Vahid Zahiri
> 
> --__--__--
> 
=== message truncated ===

=====
Poonam Shanbhag
4735, Belwood Green, 
Baltimore, MD - 21227

Tel : (410) 247 3759

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/



More information about the vtkusers mailing list