<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Hi everyone.<br><br>I'm quite a newb in VTK and I'm trying to develop an application using VTK and Cocoa.<br>My question is quite simple I think but I can't find the answer anywhere.<br><br>In my program, I read a file in which the coordinates of points are written.<br>These points are then displayed in a VTK View.<br>But how do I reset this view ?<br><br>For example when I want to load a new file I need first to delete all the points of the current file.<br>I tried this but doesn't work.<br><br>> cout << coll -> GetNumberOfItems() << endl;<br>> for (unsigned actorIndex = 0; actorIndex < myStruct -> getNumberOfElements(); ++actorIndex)<br>> {<br>> actor = (vtkActor*) coll -> GetItemAsObject(actorIndex);<br>> actor -> Delete();<br>> }<br>> cout << coll -> GetNumberOfItems() << endl;<br><br><br>Many thanks for your help.<br>Regards,<br>Benoist LAURENT<br /><hr />Découvrez toutes les possibilités de communication <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>avec vos proches</a></body>
</html>