Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix buildsystem #4

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Fix buildsystem #4

wants to merge 10 commits into from

Conversation

jcfr
Copy link

@jcfr jcfr commented Oct 9, 2018

No description provided.

jcfr added 10 commits August 26, 2017 01:34
… ‘;’

Since starting with VTK7, vtkStandardNewMacro expects vtkObjectFactory.h,
this commit add the missing include.
This commit fixes the following warnings:

```
/tmp/ModelClip/qSlicerModelClipModuleWidget.cxx: In member function ‘void qSlicerModelClipModuleWidget::removePlane()’:
/tmp/ModelClip/qSlicerModelClipModuleWidget.cxx:229:11: warning: unused variable ‘index’ [-Wunused-variable]
       int index = this->planeList.indexOf(this->planeList.last());
           ^
/tmp/ModelClip/qSlicerModelClipModuleWidget.cxx: In member function ‘void qSlicerModelClipModuleWidget::setDepth()’:
/tmp/ModelClip/qSlicerModelClipModuleWidget.cxx:326:13: warning: unused variable ‘axisNorm’ [-Wunused-variable]
     double *axisNorm = new double[3];

```
This commit fixes the following errors:

```
/tmp/ModelClip/qSlicerModelClipModuleWidget.cxx:379:17: error: ‘class vtkClipPolyData’ has no member named ‘SetInput’
  this->clipper->SetInput(this->sourcePD);
                 ^
/tmp/ModelClip/qSlicerModelClipModuleWidget.cxx:429:17: error: ‘class vtkMRMLModelDisplayNode’ has no member named ‘SetInputPolyData’
  resultDisplay->SetInputPolyData(resultModel->GetPolyData());
                 ^
/tmp/ModelClip/qSlicerModelClipModuleWidget.cxx:453:18: error: ‘class vtkMRMLModelDisplayNode’ has no member named ‘SetInputPolyData’
  clippedDisplay->SetInputPolyData(clippedModel->GetPolyData());
                  ^
```
This commit fixes the following warnings:

```
/tmp/ModelClip/vtkPlaneExtend.cxx: In member function ‘void vtkPlaneExtend::MovePoint3(double*, double*)’:
/tmp/ModelClip/vtkPlaneExtend.cxx:776:10: warning: unused variable ‘d1’ [-Wunused-variable]
   double d1 = (vN/n10) * vtkMath::Dot(v,p10) / (vN*n10);
          ^
/tmp/ModelClip/vtkPlaneExtend.cxx:779:10: warning: unused variable ‘point1’ [-Wunused-variable]
   double point1[3], point2[3];
          ^
/tmp/ModelClip/vtkPlaneExtend.cxx: In member function ‘void vtkPlaneExtend::Rotate(double*, double*, double*)’:
/tmp/ModelClip/vtkPlaneExtend.cxx:796:11: warning: unused variable ‘center’ [-Wunused-variable]
   double *center = this->PlaneSource->GetCenter();
           ^
/tmp/ModelClip/vtkPlaneExtend.cxx: At global scope:
/tmp/ModelClip/vtkPlaneExtend.cxx:791:61: warning: unused parameter ‘vpn’ [-Wunused-parameter]
 void vtkPlaneExtend::Rotate(double *p1, double *p2, double *vpn)
                                                             ^
```
This commit fixes the following warning:

```
/tmp/ModelClip/vtkPlaneExtend.cxx: In member function ‘void vtkPlaneExtend::GetPoint3(double*)’:
/tmp/ModelClip/vtkPlaneExtend.cxx:1082:44: warning: parameter ‘xyz’ set but not used [-Wunused-but-set-parameter]
 void vtkPlaneExtend::GetPoint3(double xyz[3])
                                            ^
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant