Have a look at this test:<div><br></div><div><a href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master">http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master</a></div>
<div><br></div><div><br></div><div>Specially this function:</div><div><br></div><div><div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)">oid loadData(const std::string &filename, const std::string &imageFilename)</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l106" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l106" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 106</a>   {</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l107" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l107" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 107</a>     this->unloadData();</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l108" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l108" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 108</a> </div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l109" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l109" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 109</a>     vesKiwiDataLoader loader;</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l110" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l110" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 110</a>     vtkSmartPointer<vtkPolyData> polyData =</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l111" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l111" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 111</a>       vtkPolyData::SafeDownCast(loader.loadDataset(filename));</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l112" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l112" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 112</a>     assert(polyData.GetPointer());</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l113" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l113" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 113</a> </div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l114" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l114" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 114</a>     vesKiwiPolyDataRepresentation* rep = new vesKiwiPolyDataRepresentation();</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l115" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l115" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 115</a>     rep->initializeWithShader(this->ShaderProgram);</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l116" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l116" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 116</a>     rep->setPolyData(polyData);</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l117" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l117" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 117</a>     rep->addSelfToRenderer(this->renderer());</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l118" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l118" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 118</a>     this->DataRep = rep;</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l119" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l119" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 119</a> </div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l120" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l120" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 120</a>     this->setBackgroundImage(imageFilename);</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><a id="l121" href="http://vtk.org/gitweb?p=VES.git;a=blob;f=src/kiwi/Testing/TestTexturedBackground.cpp;h=fe6959f29159664c7c726cc72f1b26d078424278;hb=refs/heads/master#l121" class="linenr" style="color:rgb(153,153,153);text-decoration:none"> 121</a>   }</div>
<div class="pre" style="font-family:monospace;white-space:pre;background-color:rgb(255,255,255)"><br></div><br><div class="gmail_quote">On Mon, Jan 7, 2013 at 1:18 PM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, <div><br></div><div>You can certainly do this. VES can be fed vtkPolyData which could define a line or a line loop. VES does not uses vtk smart pointers but uses new C++ smart pointers which are very well supported on different platforms. </div>

<div><br></div><div>Under the source code, have a look at</div><div><br></div><div>root/ves/testing</div><div><br></div><div>or </div><div>root/kiwi/testing</div><div><br></div><div>and there you will find simple examples.</div>

<div><br></div><div>Hope this helps, </div><div>Aashish</div><div><br></div><div><br><div class="gmail_quote"><div><div class="h5">On Mon, Jan 7, 2013 at 12:27 PM, SHAMSUDHEEN TK <span dir="ltr"><<a href="mailto:shamsutk87@gmail.com" target="_blank">shamsutk87@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>
        <p>I'm really newbie with <strong>VTK</strong> and <strong>VES</strong>.</p>

<p>I have successfully built the <strong>VES</strong> and have run the <strong>Kiwi</strong> example ( which is too complex and only used to read data) in my simulator.</p>

<p>Now I want to draw a simple line  using <strong>VES</strong>, same as <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Line" rel="nofollow" target="_blank">this <strong>VTK sample</strong> application</a> do (I have done the <strong>Xcode</strong> configuration settings to build <strong>VES</strong>).</p>




<p>I know that the above <strong>VTK</strong> application will not compile on <strong>iOS</strong> because a lot of <strong>VTK</strong> code is based on the <strong>OpenGL</strong> rendering API which is not available on handhelds.</p>




<p>I understood that <strong>VES</strong> provides a rendering engine (based on <strong>OpenGL ES</strong>) which is totally different as the one implied in <strong>VTK</strong>.</p>

<p>I'm unable to find some <strong>VTK</strong> equivalent classes in <strong>VES</strong>, example like <b><code>vtkSmartPointer</code></b></p>

<p>So could anyone  recommend me a simple guide to  draw a  line  using <strong>VES</strong> ? or any reference links.</p>

<p>Thanks.</p>

    </div>
<br></div></div>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com" target="_blank">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>    
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com">www.kitware.com</a>    
</div>