<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Well I do that keeping a list of lists.<br><br>My big list contains one list for each region. Then each region list contains all the polyDatas associated to the contour on every slide for that given region. Of course I know in what order and where to look for the polydata of a given slice.<br><br>For each slice I know how many regions i need, so I create as many vtkContourWidgets as regions needed. I create them in a certain order (and save them in a list) so as to know which is which, and then the association between region's slice poly data and region vtkcontourWidget is rather simple because I know the index of each list.<br><br>i.e vtkContourWidget1 corresponding to region 1 should initialize with polyData from region list 1, polyData number x (being X the slice).<br><br>Hope i didnt confuse you too much :S<br><br>Any other idea es welcome ^^<br><br><hr id="stopSpelling">From: yxp233@postech.ac.kr<br>To: vtkusers@vtk.org<br>Date: Wed, 23 Mar 2011 11:40:35 +0900<br>Subject: [vtkusers] How to initialize multiple contours in one slice by        vtkcontourwidget<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxEmailStyle17
{font-family:'Calibri','sans-serif';color:windowtext;}
.ExternalClass .ecxMsoChpDefault
{;}
@page WordSection1
{size:8.5in 11.0in;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}
</style><div class="ecxWordSection1"><p class="ecxMsoNormal">Dear Users,</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">In my segmented binary liver CT, there are multiple regions for certain slices. I need to initialize multiple contours over the multiple segmented regions by vtkcontourwidget for editing. It is easy if there is only one contour to initialize in one slice. But it is a different story if there are multiple contours to initialize in one slice. Does anyone have any good ideas?</p><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal">Thanks,</p><p class="ecxMsoNormal">Yang</p></div><br>_______________________________________________
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                                            </body>
</html>