INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/src/CutModule/kernel )
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib/maracasVisuLib/../../../ )
-INCLUDE_DIRECTORIES( ${PROJECT_BINARY_DIR}/lib/GUI/Qt/Viewers
+INCLUDE_DIRECTORIES(
+ ${PROJECT_BINARY_DIR}/lib/GUI/Qt/Viewers
${PROJECT_SOURCE_DIR}/lib/GUI/Qt/Viewers
${PROJECT_SOURCE_DIR}/lib/GUI/Qt/VolumeRenderer
+ ${PROJECT_SOURCE_DIR}/lib/GUI/Qt/SurfaceRenderer
${PROJECT_SOURCE_DIR}/lib/GUI/Wx/VolumeRenderer
+ ${PROJECT_SOURCE_DIR}/lib/GUI/Wx/SurfaceRenderer
${PROJECT_SOURCE_DIR}/lib/GUI/Base/VolumeRenderer
+ ${PROJECT_SOURCE_DIR}/lib/GUI/Base/SurfaceRenderer
+ ${PROJECT_SOURCE_DIR}/lib/Kernel/VTKObjects/SurfaceRenderer
${PROJECT_SOURCE_DIR}/lib/Kernel/VTKObjects/ViewerWidgets
${PROJECT_SOURCE_DIR}/lib/Kernel/VTKObjects/VolumeRenderer
- ${PROJECT_SOURCE_DIR}/lib/Kernel/ITKVTK
+
+
)
#----------------------------------------------------------------------------
# DEPENDENCIES (LIBRARIES TO LINK WITH)
SET ( ${EXE_NAME}_LINK_LIBRARIES
- GUIQtViewers
- GUIQtVolumeRenderer
- #${VTK_LIBRARIES}
- ${QT_LIBRARIES}
- QVTK
- creaMaracasVisu
+ GUIQtViewers
# ${WXWIDGETS_LIBRARIES}
# ${KWWidgets_LIBRARIES}
# ${VTK_LIBRARIES}
}
}else{
std::string inputFilename = argv[1];
+
+ vtkMetaImageReader* reader = vtkMetaImageReader::New();
+ reader->SetFileName(inputFilename.c_str());
+ reader->Update();
+ img = reader->GetOutput();
+
}
+ADD_SUBDIRECTORY(SurfaceRenderer)
ADD_SUBDIRECTORY(VolumeRenderer)
# if you need to create a static library
# comment out the following line :
+ SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/creaMaracasVisu)
+ SET(${LIBRARY_NAME}_INSTALL_FOLDER creaMaracasVisu)
CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
#SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES LINKER_LANGUAGE C)
if(checked){
invariant();
VolRendData = new VolumeRendererManagerData(ImageData, true);
- VolRendData->SetLookupTable(LookUpTable);
+ if(!LookUpTable){
+
+ }else{
+ VolRendData->SetLookupTable(LookUpTable);
+ }
Renderer->AddActor(VolRendData->getProp3D());
}else{
Renderer->RemoveActor(VolRendData->getProp3D());
+ADD_SUBDIRECTORY(SurfaceRenderer)
ADD_SUBDIRECTORY(Viewers)
ADD_SUBDIRECTORY(VolumeRenderer)
# ${BOOST_LIBRARIES}
${QT_LIBRARIES}
QVTK
- GUIQtVolumeRenderer
+
+ GUIQtVolumeRenderer
+ GUIQtSurfaceRenderer
+
KernelViewerWidgets
# If this library must link against other libraries
# USER! : Add here any extra Library you need
# if you need to create a static library
# comment out the following line :
+ SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/creaMaracasVisu)
+ SET(${LIBRARY_NAME}_INSTALL_FOLDER creaMaracasVisu)
CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
# and uncomment the 2 lines hereafter:
this->m_VolumeRender->SetRenderer(this->getRenderer());
this->m_VolumeRender->SetInteractor(this->_qtvtkviewer->GetRenderWindow()->GetInteractor());
+
+ this->m_SurfaceRender->setRenderer(this->getRenderer());
+ this->m_SurfaceRender->setInteractor(this->_qtvtkviewer->GetRenderWindow()->GetInteractor());
}
QtVTKViewerWidget::~QtVTKViewerWidget()
void QtVTKViewerWidget::setImage(vtkImageData* img){
this->_qtvtkviewer->setImage(img);
this->m_VolumeRender->SetImageData(img);
+ this->m_SurfaceRender->SetImageData(img);
+
}
void QtVTKViewerWidget::SetLookupTable(vtkLookupTable *lookuptable){
this->_qtvtkviewer->SetLookupTable(lookuptable);
this->m_VolumeRender->SetLookUpTable(lookuptable);
+
}
void QtVTKViewerWidget::on_checkBoxShowPlanes_clicked(){
<ui version="4.0">
<class>QtVTKViewerWidget</class>
<widget class="QWidget" name="QtVTKViewerWidget">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>801</width>
+ <height>616</height>
+ </rect>
+ </property>
<property name="windowTitle">
<string>Form</string>
</property>
</sizepolicy>
</property>
<property name="currentIndex">
- <number>1</number>
+ <number>2</number>
</property>
<widget class="QWidget" name="page">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
- <width>239</width>
- <height>417</height>
+ <width>98</width>
+ <height>28</height>
</rect>
</property>
<attribute name="label">
<rect>
<x>0</x>
<y>0</y>
- <width>176</width>
- <height>417</height>
+ <width>98</width>
+ <height>28</height>
</rect>
</property>
<attribute name="label">
</property>
</widget>
</widget>
+ <widget class="QWidget" name="page_3">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>155</width>
+ <height>505</height>
+ </rect>
+ </property>
+ <attribute name="label">
+ <string>Surface Rendering</string>
+ </attribute>
+ <widget class="QtSurfaceRendererPanel" name="m_SurfaceRender" native="true">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>151</width>
+ <height>271</height>
+ </rect>
+ </property>
+ </widget>
+ </widget>
</widget>
</item>
<item>
<header>qtvolumerendererpanel.h</header>
<container>1</container>
</customwidget>
+ <customwidget>
+ <class>QtSurfaceRendererPanel</class>
+ <extends>QWidget</extends>
+ <header location="global">qtsurfacerendererpanel.h</header>
+ <container>1</container>
+ </customwidget>
</customwidgets>
<resources/>
<connections/>
# if you need to create a static library
# comment out the following line :
+ SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/creaMaracasVisu)
+ SET(${LIBRARY_NAME}_INSTALL_FOLDER creaMaracasVisu)
CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
# and uncomment the 2 lines hereafter:
+ADD_SUBDIRECTORY(SurfaceRenderer)
ADD_SUBDIRECTORY(VolumeRenderer)
+
# if you need to create a static library
# comment out the following line :
+ SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/creaMaracasVisu)
+ SET(${LIBRARY_NAME}_INSTALL_FOLDER creaMaracasVisu)
CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES LINKER_LANGUAGE C)
# Add a ADD_SUBDIRECTORY command for each of your libraries
#ADD_SUBDIRECTORY(ITKVTK)
ADD_SUBDIRECTORY(VTKObjects)
-
\ No newline at end of file
+
+ADD_SUBDIRECTORY(SurfaceRenderer)
ADD_SUBDIRECTORY(ViewerWidgets)
ADD_SUBDIRECTORY(VolumeRenderer)
# comment out the following line :
+ SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/creaMaracasVisu)
+ SET(${LIBRARY_NAME}_INSTALL_FOLDER creaMaracasVisu)
CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES LINKER_LANGUAGE C)
# comment out the following line :
+ SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/creaMaracasVisu)
+ SET(${LIBRARY_NAME}_INSTALL_FOLDER creaMaracasVisu)
CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES LINKER_LANGUAGE C)
void VolumeRendererManagerData::EnableBoundingBox(vtkRenderWindowInteractor* interactor)
{
//EED9Juin2011 if(_volumeMappergpu){
+ if(!_boxWidgetS1){
_boxWidgetS1 = vtkBoxWidget::New();
_boxWidgetS1->SetInteractor( interactor );
_boxWidgetS1->SetPlaceFactor(1.01);
callback->Delete();
_boxWidgetS1->EnabledOn();
_boxWidgetS1->GetSelectedFaceProperty()->SetOpacity(0.0);
+ }else{
+ _boxWidgetS1->EnabledOn();
+ }
//EED9Juin2011 }
}
void VolumeRendererManagerData::DisableBoundingBox(){
if(_boxWidgetS1){
_boxWidgetS1->EnabledOff();
- _boxWidgetS1->Delete();
- _boxWidgetS1 = 0;
+ //_boxWidgetS1->Delete();
+ //_boxWidgetS1 = 0;
}
}