<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks again for your quick and effective reply.</div><div><br></div><div>Importing <span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><b><font class="Apple-style-span" color="#1b0e51">#include </font></b></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><b><font class="Apple-style-span" color="#1b0e51"><vtkTransform.h></font></b><font class="Apple-style-span" color="#cf3125"> in my VES project giving an error as </font></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><b><font class="Apple-style-span" color="#98264f">vtkCommonTransformsModule.h not found in </font></b></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><b><font class="Apple-style-span" color="#98264f">vtkTransform.h</font></b><font class="Apple-style-span" color="#cf3125">.</font></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><b><br></b></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; ">There is no VES classes returning </span><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; ">vtkTransform pointer to me.</span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; ">Could you please explain little-bit.</span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><b>Note:</b></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; ">Actually I have done the single access rotation in X axis without effecting/reseting the Y-Axis.</span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; ">I have just modified the </span><b><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">currentTranslation.</span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: rgb(112, 65, 167); ">x</span></span></b><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">, <b>currentTranslation.</b></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: rgb(112, 65, 167); "><b>y</b> with my own logic in the below method/guesture and it worked fine</span></span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: rgb(112, 65, 167); "><br></span></span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: rgb(112, 65, 167); "> </span></span><b><span class="Apple-style-span" style="color: rgb(61, 34, 127); font-family: Menlo; font-size: 11px; ">handleSingleTouchPanGesture</span>  <span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: #b933a1">self</span></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">-></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: #508186">renderer</span></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">.</span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: #508186">app</span></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">-></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: #3d227f">handleSingleTouchPanGesture</span></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">(currentTranslation.</span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: #7041a7">x</span></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">, currentTranslation.</span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: #7041a7">y</span></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">);</span></b></div><div><font class="Apple-style-span" face="Menlo"><span class="Apple-style-span" style="font-size: 11px;"><b><br></b></span></font></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">However Im looking for the <b>Communication with VES and VTK</b> (iOS and Windows).</span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">My plan is to rotate a 3D model in widows pc while iOS app rotate the same 3D model in iPad.</span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">So Im unable to use </span><b><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">currentTranslation.</span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: rgb(112, 65, 167); ">x</span></span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">, currentTranslation.</span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: rgb(112, 65, 167); ">y in VTK (windows)</span></span></b></div><div><b><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><span style="color: rgb(112, 65, 167); "><br></span></span></b></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">The only way to get the rotation angle.</span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">So I have looked for another method </span><span class="Apple-style-span" style="color: rgb(44, 25, 116); font-family: Menlo; font-size: 11px; ">vesActor->setRotation(vector);. However it resetting my Y axis previous rotation state while rotating X-axis.</span></div><div><b><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><br></span></b></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><br></span></div><div><font class="Apple-style-span" color="#98264f"><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><b>Note</b>:</span> have just used <span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "> </span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "> <b>bool loadDataset(const std::string& filename);</b> </span>method to load my 3D file.this is a<b> </b>vesKiwiViewerApp.h class method.</font></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(207, 49, 37); font-family: Menlo; font-size: 11px; "> </span></div><div><font class="Apple-style-span" color="#cf3125" face="Menlo"><span class="Apple-style-span" style="font-size: 11px;"><b>Thanks.</b></span></font></div><br><div><div>On Feb 17, 2013, at 12:29 AM, Pat Marion wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I would use a vtkTransform.  It has the api you describe.<br><br><a href="http://www.vtk.org/doc/nightly/html/classvtkTransform.html">http://www.vtk.org/doc/nightly/html/classvtkTransform.html</a><br><br><br>Pat<br><br><div class="gmail_quote">

On Sun, Feb 17, 2013 at 9:47 AM, shamsudheen <span dir="ltr"><<a href="mailto:shamsutk87@gmail.com" target="_blank">shamsutk87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">

<div style="word-wrap:break-word"><div><br></div><div>Hi All,<div><br></div><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px">Im using </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><b>vesKiwiViewerApp</b></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"> in my iOS application.</span></span></div>

</div><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><br>

</span></span></div><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px">In my code, Im trying to rotate my 3D model manually using the below code</span></span></div>

<div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><br>

</span></span></div><div><font color="#2c1974"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px">             </span></span><span style="font-family:Menlo;font-size:11px"> vesVector4f rot ;</span></font></div>

<div><span style="font-family:Menlo;font-size:11px"><font color="#2c1974">        </font></span></div><div><font color="#2c1974"><span style="font-family:Menlo;font-size:11px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">

       <span style="white-space:pre-wrap">  </span>rot[0] = 1;</div></span><span style="font-family:Menlo;font-size:11px"><span style="white-space:pre-wrap">     </span>rot[0] = 0;</span></font></div><div><font color="#2c1974"><span style="font-family:Menlo;font-size:11px"><span style="white-space:pre-wrap">  </span>rot[0] = 0;</span><span style="font-family:Menlo;font-size:11px">       </span><span style="font-family:Menlo;font-size:11px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">

       </div></span><span style="font-family:Menlo;font-size:11px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">        rot[3] = 90 * (M_PI/180.0);</div>

<div><br></div></span></font></div><div><span style="font-family:Menlo;font-size:11px"><font color="#2c1974">  </font></span></div><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><font color="#2c1974"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">

        vesKiwiPolyDataRepresentation* polyDataRepresentation =  self->renderer.app->getKiwiPolyDataRepresentation(0);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">        <br>
</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">        vesSharedPtr<vesActor> vesActor = polyDataRepresentation->actor();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">

      <br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">        vesVector3f center = vesActor->center();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">

               <br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">        vesActor->setRotation(vector);</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">

<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">

       [self scheduleRender];</div></div></font></span></span></div><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><br>

</span></span></div><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><br>

</span></span></div><div><font face="arial, sans-serif"><span style="font-size:13px">This would rotate my model on a particular direction.However when I change the axis ,the old rotated position is lost . Example code is given  below </span></font></div>

<div><font face="arial, sans-serif"><span style="font-size:13px"><br></span></font></div><div><div><font color="#2c1974"><span style="font-family:Menlo;font-size:11px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">

       <span style="white-space:pre-wrap">  </span>rot[0] = 0;</div></span><span style="font-family:Menlo;font-size:11px"><span style="white-space:pre-wrap">        </span>rot[0] = 1;</span></font></div><div><font color="#2c1974"><span style="font-family:Menlo;font-size:11px"><span style="white-space:pre-wrap">       </span>rot[0] = 0;</span><span style="font-family:Menlo;font-size:11px">       </span><span style="font-family:Menlo;font-size:11px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">

       </div></span><span style="font-family:Menlo;font-size:11px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo">        rot[3] = 90 * (M_PI/180.0);</div>

<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo"><br></div></span></font></div></div><div><font face="arial, sans-serif"><span style="font-size:13px">I cannot find any methods which I can use to rotate the object on a single </span></font><span style="font-family:arial,sans-serif;font-size:13px">axis</span><font face="arial, sans-serif"><span style="font-size:13px"> alone like </span></font><span style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;display:inline!important;word-spacing:0px"><span style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;display:inline!important;font-weight:normal;word-spacing:0px"><font color="#2c1974"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo;display:inline!important">

<font face="arial, sans-serif"><span style="font-size:13px">vesActor->rotateX(90); or </span></font></div></font></span></span><span style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;display:inline!important;word-spacing:0px"><span style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;display:inline!important;font-weight:normal;word-spacing:0px"><font color="#2c1974"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo;display:inline!important">

<font face="arial, sans-serif"><span style="font-size:13px">vesActor->rotateY(90) or </span></font></div></font></span></span><span style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;display:inline!important;word-spacing:0px"><span style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;display:inline!important;font-weight:normal;word-spacing:0px"><font color="#2c1974"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Menlo;display:inline!important">

<font face="arial, sans-serif"><span style="font-size:13px">vesActor->rotateZ(90)</span></font></div></font></span></span></div><div><font face="arial, sans-serif"><span style="font-size:13px"><br></span></font></div>
<div>
<font face="arial, sans-serif"><span style="font-size:13px">Are there any similar methods available in VES/Kiwi ?</span></font></div><div><font face="arial, sans-serif"><span style="font-size:13px"><br></span></font></div>

<div><font face="arial, sans-serif"><span style="font-size:13px"> Any help on this is appreciated</span></font></div><div><font face="arial, sans-serif"><span style="font-size:13px"><br></span></font></div><div><font face="arial, sans-serif"><span style="font-size:13px">Thanks .</span></font></div>

<div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:arial,sans-serif;word-spacing:0px"><br>

</span></span></div></div></blockquote></div><br>
</blockquote></div><br></body></html>