[vtkusers] RE: vtkusers Digest, Vol 7, Issue 18

shijith shijith at ddd.co.jp
Mon Nov 8 04:21:18 EST 2004


add the code segment given below in OnCreate() Of your view class.
	this->renWin->SetWindowId(this->GetSafeHwnd());
Now, if you want capture the WM_LBUTTONDOWN event, then go to windowproc()
function in your view class and comment

-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org]On
Behalf Of vtkusers-request at vtk.org
Sent: Monday, November 08, 2004 5:54 PM
To: vtkusers at vtk.org
Subject: vtkusers Digest, Vol 7, 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. ID problems after clipping data (Timo Frenzel)
   2. How to update the renderwindow? ( zfjgo )
   3. vtk SDI is no response for mouseclicking?  ( zfjgo )
   4. How to rotate an object around its center? ( zfjgo )
   5. RE: vtk SDI is no response for mouseclicking?  (de Boer Ingo)
   6. documentation  (Fabien JALABERT)
   7. 2d picker (Moti Freiman)
   8. Scalability (Roland Schulz)
   9. vtkgui 1.0 released (Silvano Imboden)


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

Message: 1
Date: Sun, 7 Nov 2004 18:41:07 +0100
From: "Timo Frenzel" <rohlof at gmx.de>
Subject: [vtkusers] ID problems after clipping data
To: <vtkusers at vtk.org>
Message-ID: <E1CQr1p-0007qS-00 at smtp07.web.de>
Content-Type: text/plain;	charset="us-ascii"

Hi,

i've got Problems after clipping data (SetClipFunction(plane)) from a
PolyData volume with vtkClipPolyData.

I put the clipped data into a new PolyData structure and wanna build a
locator on it. But if the locator reads the polydata, it sometimes produces
an error ('vktcommon.dll memory access'-error while checking number of IDs).
This error occurs, if the clipped data does not contain a special part of
the volume. If i invert the clipped data, the error does not occur.
Probably there is a association with the clipped IDs and the error.

Did anyone noticed the same problem?

Here's my code for reconstuction:

vtkClipPolyData *clipper = vtkClipPolyData::New();
clipper -> SetInput(polydata); //polydata is a polydata volume with some
polys and cells
clipper -> SetClipFunction(plane);
clipper -> GenerateClippedOutputOn();
clipper -> SetValue(0.0);
clipper -> Update();

vtkPolyData *clipData = vtkPolyData::New();
clipData -> DeepCopy((vtkDataSet *)clipper ->GetClippedOutput());
clipData -> BuildLinks();
clipData -> Update();

vtkPointLocator *clipDataLoc = vtkPointLocator:New();
clipDataLoc -> SetDataSet(clipData);
clipDataLoc -> Update(); //while updating the data, the error occurs -
sometimes
clipDataLoc -> BuildLocator();

The error message: 'VTKVOMMOON.DLL: 0xC0000005: Access Violation'

Thx in advance, Timo Frenzel.




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

Message: 2
Date: Mon, 8 Nov 2004 08:51:27 +0800 (CST)
From: " zfjgo " <zfjgo at 126.com>
Subject: [vtkusers] How to update the renderwindow?
To: vtkusers at vtk.org
Message-ID: <418EC30F.00002D.05641 at m64.126.com>
Content-Type: text/plain; charset="gb2312"

Hi,
    I use Visual C++ created an application with a splitted window. Left
window
contains some buttons and text box. What I expect is that:
when I give some value in the text boxes and click the button, the right
render window will be updated. But now the right window won't be update
unless I click on it.
    However,I want to delete a renderwindow,but renwin->Delete(); is useless
among code unless I add it in the front of the function. Else the
renderwindow is not update and exist all along.
    Why?
    Be eager to your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://public.kitware.com/pipermail/vtkusers/attachments/20041108/206cfc8d/a
ttachment-0001.htm

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

Message: 3
Date: Mon, 8 Nov 2004 11:04:32 +0800 (CST)
From: " zfjgo " <zfjgo at 126.com>
Subject: [vtkusers] vtk SDI is no response for mouseclicking?
To: vtkusers at vtk.org
Message-ID: <418EE240.00019E.08048 at m64.126.com>
Content-Type: text/plain; charset="gb2312"

I am writing a windows application using VC++6 and MFC . I wrote the program
base on the vtk window sample program "vtkSDI", and when I need to catch the
mouse click event using classwizard like WM_LBUTTONDOWN, WM_RBUTTONDOWN or
WM_MOUSEMOVE. could there be some suggestion to solve this problem?? I
really need to work this program!

Thanks for your help.
The following is my code,but it does not work.

LRESULT CVtkSDIView::CallInteractor(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    if (this->iren->GetInitialized())
    {
		return vtkHandleMessage2(this->m_hWnd,uMsg,wParam,lParam,this->iren);
    }

    return 0;
}


void CVtkSDIView::OnLButtonDown(UINT nFlags, CPoint point)
{
	// TODO: Add your message handler code here and/or call default
	CString msg;
	msg="asdsadsadasdsad";
	AfxMessageBox(msg);
	this->CallInteractor(WM_LBUTTONDOWN,(WPARAM)(UINT)(nFlags),MAKELPARAM((poin
t.x), (point.y)));

}
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://public.kitware.com/pipermail/vtkusers/attachments/20041108/f0a6a3d1/a
ttachment-0001.html

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

Message: 4
Date: Mon, 8 Nov 2004 11:20:29 +0800 (CST)
From: " zfjgo " <zfjgo at 126.com>
Subject: [vtkusers] How to rotate an object around its center?
To: vtkusers at vtk.org
Message-ID: <418EE5FD.000007.27653 at m64.126.com>
Content-Type: text/plain; charset="gb2312"

Hi everybody,
   Usually we can rotate an object around its center by clicking mouse using
vtkRenderWindowInteractor.Now I want rotate it at certain angle around its
center.But RotateX,RotateY,RotateZ only rotate it around axes X,Y,Z,not its
center.
   How to obtain the center of an object displayed in renderwindow. How to
rotate it around its center?
  Help me!!
 Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://public.kitware.com/pipermail/vtkusers/attachments/20041108/575e2f68/a
ttachment-0001.htm

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

Message: 5
Date: Mon, 8 Nov 2004 09:19:15 +0100
From: "de Boer Ingo" <I.deBoer at polytec.de>
Subject: RE: [vtkusers] vtk SDI is no response for mouseclicking?
To: "zfjgo" <zfjgo at 126.com>, <vtkusers at vtk.org>
Message-ID:
	<1484AEC8AB498A4EB64D4A8137D23FD90145009C at 02polywbr.waldbronn.polytec.de>

Content-Type: text/plain;	charset="Windows-1252"

Hi,

please look at the samples at

http://www.vtk.org/Bug/bug.php?op=show&bugid=649&pos=0


greets
  Ingo

---
Dr.-Ing. Ingo H. de Boer

Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax  : ++49 7243 604 255

-----Original Message-----
From: zfjgo [mailto:zfjgo at 126.com]
Sent: Monday, November 08, 2004 4:05 AM
To: vtkusers at vtk.org
Subject: [vtkusers] vtk SDI is no response for mouseclicking?


I am writing a windows application using VC++6 and MFC . I wrote the program
base on the vtk window sample program "vtkSDI", and when I need to catch the
mouse click event using classwizard like WM_LBUTTONDOWN, WM_RBUTTONDOWN or
WM_MOUSEMOVE. could there be some suggestion to solve this problem?? I
really need to work this program!

Thanks for your help.
The following is my code,but it does not work.

LRESULT CVtkSDIView::CallInteractor(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
if (this->iren->GetInitialized())
{
return vtkHandleMessage2(this->m_hWnd,uMsg,wParam,lParam,this->iren);
}

return 0;
}


void CVtkSDIView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CString msg;
msg="asdsadsadasdsad";
AfxMessageBox(msg);
this->CallInteractor(WM_LBUTTONDOWN,(WPARAM)(UINT)(nFlags),MAKELPARAM((point
.x), (point.y)));

}

-----------------------------------------------------------
?????????"G"?? ????????????


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

Message: 6
Date: Mon, 08 Nov 2004 09:20:51 +0100
From: Fabien JALABERT <fabien.jalabert at laposte.net>
Subject: [vtkusers] documentation
To: vtkusers at vtk.org
Message-ID: <418F2C63.8050004 at laposte.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello, can somebody suggest me a free and online documentation
(introduction or tutorial) ?
Best should be a printable one (PDF, ...)
Thanks !

--
Fabien JALABERT
Doctorant
Centre LGI2P

Icole des Mines d'Alhs - Site EERIE
Parc Scientifique Georges Besse
F 30035 Nnmes Cedex 1

http://www.lgi2p.ema.fr/~jalabert
fabien.jalabert at ema.fr
Tel : 04.66.38.70.78
Fax : 04.66.38.70.74



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

Message: 7
Date: Mon, 08 Nov 2004 10:26:19 +0200
From: Moti Freiman <freiman at cs.huji.ac.il>
Subject: [vtkusers] 2d picker
To: vtkusers at vtk.org
Message-ID: <418F2DAB.3080103 at cs.huji.ac.il>
Content-Type: text/plain; charset=us-ascii; format=flowed

Hello!

i'm trying to build gui for select points on 2d images. i tried to use
vtkPicker, but without success.
can someone has some basic code example or class for doing this.
thank you!

--
Moti Freiman.
Medical Image Processing and Computer-Assisted Surgery Laboratory.
School of Computer Science and Engineering.
The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel
Phone: +(972)-2-658-5371 (laboratory)
E-mail: freiman at cs.huji.ac.il
WWW site: http://www.cs.huji.ac.il/~freiman



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

Message: 8
Date: Mon, 8 Nov 2004 09:43:46 +0100
From: Roland Schulz <r2s2 at gmx.de>
Subject: [vtkusers] Scalability
To: vtkusers at vtk.org
Message-ID: <200411080943.46789.r2s2 at gmx.de>
Content-Type: text/plain;  charset="iso-8859-1"

Hey,

how does VTK scale to Terabyte data and over 200 render processes? Is VTK
apropriate for that?
The goal is to visual isoplanes for finite element data. We have no export
filter yet, so we can't just test it. Has someone a tool to create
parallel/partitioned sample data of that size?
Is the scalability different when using Paraview ontop of VTK?

regards
Roland Schulz



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

Message: 9
Date: Mon,  8 Nov 2004 09:53:44 +0100 (MET)
From: "Silvano Imboden" <s.imboden at cineca.it>
Subject: [vtkusers] vtkgui 1.0 released
To: <vtkusers at vtk.org>
Message-ID: <000201c4c570$745011b0$ea07ba82 at int.cineca.it>
Content-Type: text/plain; charset="us-ascii"

vtkGUI is a free, open source program written in TCL/IncrTCL that was
initially inspired by vtkPipeline and vtkShow. Its purpose is to allow quick
assembly of a VTK pipeline in order to teach/learn/prototype with VTK.



vtkGUI its not meant to do any robust work. However, since it can save VTK
pipelines in both TCL and, to some extent, C++ it can be used as the
starting point for any bigger application.



Features:

- Easily create any VTK Object and connect them to form a pipeline

- Inspect / change any parameter of any created object

- Load / Save as plain TCL script

- Saved files can be executed as stand alone scripts

- Loads "most" of the TCL VTK Examples (see the manual for limitations)

- Export as C++ source code



Authors:

Silvano Imboden (Cineca - Italy): concept, previous version, supervision
Stefan Svensson, Katerina Vrotsou (M.Sc. media technology and engineering
students - Sweden): current release developers



Release notes:

The current release is distributed for Windows only and is provided with an
installation program (40MB). vtkGUI will use it's own embedded versions of
TCL, IncrTCL and VTK so it should run immediately after the installation on
any machine. vtkGUI doesn't use/change any environment variable so it will
not disturb your previous installed TCL and VTK.



In theory vtkGUI should run also on Linux using different versions of VTK,
but the portability has not yet been properly tested. Some hints can be
found in the readme. Any feedback is welcome (mailto vtkgui at cineca.it).



WebSite:

http://visit.cineca.it/vtkGUI



Enjoy



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

Silvano Imboden
CINECA Computing Center
Via Magnanelli 6/3
40033 Casalecchio di Reno
Bologna, Italy
 ----------------------------



-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://public.kitware.com/pipermail/vtkusers/attachments/20041108/4df71b80/a
ttachment.html

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

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


End of vtkusers Digest, Vol 7, Issue 18
***************************************





More information about the vtkusers mailing list