<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">At the moment, I am simply collecting the objects in a struct and storing<br>
them in a C++ container which is member of the class handling the pipeline.<br>
I have included below a sample of what I am doing at the moment. Is there a<br>
better way of doing this?<br>
<br>
Thanks,<br>
Panos<br></blockquote><div><br></div><div>That is a perfectly acceptable and typical way to access objects in the pipeline.</div><div><br></div><div>Cory</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
==============================<wbr>=================<br>
class QuadView<br>
{<br>
private:<br>
struct PipelineObjects2D<br>
{<br>
vtkSmartPointer<vtkImageStack> imageStack;<br>
vtkSmartPointer<vtkRenderer> renderer;<br>
vtkSmartPointer<<wbr>vtkGenericOpenGLRenderWindow> renderWindow;<br>
};<br>
<br>
struct ImageDataStruct<br>
{<br>
vtkSmartPointer<vtkImageData> imageData;<br>
vtkSmartPointer<<wbr>vtkLookupTable> lookupTable;<br>
std::unordered_map<<wbr>IQuadViewUI::ViewKey,<br>
vtkSmartPointer<<wbr>vtkImageResliceMapper>> <br>
resliceMapperContainer;<br>
std::unordered_map<<wbr>IQuadViewUI::ViewKey,<br>
vtkSmartPointer<vtkImageSlice><wbr>> <br>
imageSliceContainer;<br>
};<br>
<br>
std::map<unsigned long /*image UID*/, ImageDataStruct> <br>
m_ImageDataContainer;<br>
std::unordered_map<<wbr>IQuadViewUI::ViewKey, PipelineObjects2D> <br>
m_PipelineObject2DContainer;<br>
<br>
public:<br>
<br>
// more code<br>
};<br>
<br>
==============================<wbr>=================<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div></div>