[vtkusers] 3D volume camera clipping help

mark.ostroot at lickenbrocktech.com mark.ostroot at lickenbrocktech.com
Thu Jun 28 14:07:16 EDT 2018


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/20180628/4f59a8e3/attachment.html>


More information about the vtkusers mailing list