[vtkusers] 3D volume camera clipping help

mark.ostroot at lickenbrocktech.com mark.ostroot at lickenbrocktech.com
Mon Jul 2 11:51:16 EDT 2018


Hello Aashish,
 
I ended up getting the new VTK master version working with my code, and the clipping problem went away! I was wondering if you knew an estimate of when the next release should be, or if you knew what commit fixed that bug, so I can apply a patch on our VTK version in house. 
Thank you for your help,
Mark O
 
 
 
--------- Original Message --------- Subject: RE: Re: Re: [vtkusers] 3D volume camera clipping help
From: mark.ostroot at lickenbrocktech.com
Date: 6/28/18 12:46 pm
To: "Aashish Chaudhary" <aashish.chaudhary at kitware.com>
Cc: vtkusers at vtk.org

  
I'm not quite certain what you mean, but I have cleaned the project I'm running so there shouldn't be anything old left over. Additionally the master branch of vtk is installed to a new directory, which is where all of my code is now linking to.
 
--------- Original Message --------- Subject: Re: Re: [vtkusers] 3D volume camera clipping help
From: "Aashish Chaudhary" <aashish.chaudhary at kitware.com>
Date: 6/28/18 11:36 am
To: mark.ostroot at lickenbrocktech.com
Cc: vtkusers at vtk.org

 would it be possible for you to do clear build (remove any other cache) and get rid of old build files? 

  On Thu, Jun 28, 2018 at 2:07 PM <mark.ostroot at lickenbrocktech.com> wrote:
 Hello Aashish,
 
I am getting some unresolved external symbols from the new libraries, specifically some issues with vtk volume set property and qvtkopenglwidget. I'm fairly certain I'm linking to the new libraries correctly, maybe I'm missing something obvious?
 
Some excerpts from visual studio:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl vtkVolume::SetProperty(class vtkVolumeProperty *)" (__imp_?SetProperty at vtkVolume@@QEAAXPEAVvtkVolumeProperty@@@Z) referenced in function "private: void __cdecl QTVTKRender::InitializeRendering(void)" (?InitializeRendering at QTVTKRender@@AEAAXXZ)
 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class vtkVolumeProperty * __cdecl vtkVolume::GetProperty(void)" (__imp_?GetProperty at vtkVolume@@QEAAPEAVvtkVolumeProperty@@XZ) referenced in function "public: void __cdecl QTVTKRender::updateShading(class QAction *)" (?updateShading at QTVTKRender@@QEAAXPEAVQAction@@@Z)
 error LNK2001: unresolved external symbol "public: virtual class QVTKInteractor * __cdecl QVTKOpenGLWidget::GetInteractor(void)" (?GetInteractor at QVTKOpenGLWidget@@UEAAPEAVQVTKInteractor@@XZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl QVTKOpenGLWidget::cleanupContext(void)" (?cleanupContext at QVTKOpenGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl QVTKOpenGLWidget::initializeGL(void)" (?initializeGL at QVTKOpenGLWidget@@MEAAXXZ)
2> SelectionTool.cpp
 error LNK2001: unresolved external symbol "protected: virtual void __cdecl QVTKOpenGLWidget::mouseDoubleClickEvent(class QMouseEvent *)" (?mouseDoubleClickEvent at QVTKOpenGLWidget@@MEAAXPEAVQMouseEvent@@@Z)
 error LNK2001: unresolved external symbol "protected: virtual void __cdecl QVTKOpenGLWidget::mouseMoveEvent(class QMouseEvent *)" (?mouseMoveEvent at QVTKOpenGLWidget@@MEAAXPEAVQMouseEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl QVTKOpenGLWidget::mousePressEvent(class QMouseEvent *)" (?mousePressEvent at QVTKOpenGLWidget@@MEAAXPEAVQMouseEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl QVTKOpenGLWidget::mouseReleaseEvent(class QMouseEvent *)" (?mouseReleaseEvent at QVTKOpenGLWidget@@MEAAXPEAVQMouseEvent@@@Z)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl QVTKOpenGLWidget::paintGL(void)" (?paintGL at QVTKOpenGLWidget@@MEAAXXZ)
error LNK2001: unresolved external symbol "protected: virtual bool __cdecl QVTKOpenGLWidget::renderVTK(void)" (?renderVTK at QVTKOpenGLWidget@@MEAA_NXZ)
error LNK2001: unresolved external symbol "protected: virtual void __cdecl QVTKOpenGLWidget::resizeGL(int,int)" (?resizeGL at QVTKOpenGLWidget@@MEAAXHH at Z)
 
Thanks in advance,
 Mark O
 
--------- Original Message --------- Subject: RE: Re: [vtkusers] 3D volume camera clipping help
From: mark.ostroot at lickenbrocktech.com
Date: 6/27/18 1:39 pm
To: "Aashish Chaudhary" <aashish.chaudhary at kitware.com>
Cc: vtkusers at vtk.org

 Dear Aashish,
I am grabbing the latest from master and compiling from source, I will test to see if this fixes my issue and let you know. 
 
-Mark 
 
--------- Original Message --------- Subject: Re: [vtkusers] 3D volume camera clipping help
From: "Aashish Chaudhary" <aashish.chaudhary at kitware.com>
Date: 6/27/18 12:48 pm
To: mark.ostroot at lickenbrocktech.com
Cc: vtkusers at vtk.org

 Dear Mark,   
We had a bug which could have resulted in what you are observing. Would it be possible for you to try current master and see if this goes away? 
 
- Aashish

  On Wed, Jun 27, 2018 at 3:39 PM <mark.ostroot at lickenbrocktech.com> wrote:
 Hello,
 
I have a 3D volume of some CT Data that works fine at the original aspect Ratio. I have some code that adjusts the aspect ratio of the volume by using the VtkReSlicer. Which works well for applying a new aspect ratio. My issue is that whenever my aspect ratio is non-Cubic I get some clipping of my volume at certain angles when it is being rotated around. I have tried using the "ResetCameraClippingRange" function, but this seems to have no effect on my Rendered volume. I know that the clipping range bounds are computed from the actor dimensions and they don't seem to change when I change the aspect ratio. Does anyone have any ideas on what I may be missing?
 
 
Some noteworthy information:
C++ application
VTK version 8.1.1
Render window is a QT openGL Widget
 
Thanks in advance,
Mark O
 
 
_______________________________________________
 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
 
 Search the list archives at: http://markmail.org/search/?q=vtkusers
 
 Follow this link to subscribe/unsubscribe:
 https://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180702/f71bd66a/attachment.html>


More information about the vtkusers mailing list