#include <vtkImageMapToColors.h>
#include <vtkImageActor.h>
-
+#include "wxVtk2DBaseView.h"
+#include "vtkLookupTable.h"
//----------------------------------------------------------------------
wxMaracasCoutourTool::wxMaracasCoutourTool(wxWindow *parent, wxVtkBaseView *wxvtkbaseview, vtkImageData* imagedata)
_manContourControl_1->SetModelView( _mContourModel_1 , _mViewContour_1 );
- this->wxvtkbaseview->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _manContourControl_1 );
+ ((vtkInteractorStyleBaseView*)this->wxvtkbaseview->GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _manContourControl_1 );
_manContourControl_1->CreateNewManualContour();
_manContourControl_1->SetActive(false);
_mViewContour_1->RefreshContour();
_manContourControl_2->SetModelView( _mContourModel_2 , _mViewContour_2 );
- this->wxvtkbaseview->GetInteractorStyleBaseView()->AddInteractorStyleMaracas( _manContourControl_2 );
+ ((vtkInteractorStyleBaseView*)this->wxvtkbaseview->GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _manContourControl_2 );
_manContourControl_2->CreateNewManualContour();
_manContourControl_2->SetActive(false);
_mViewContour_2->RefreshContour();
{
while(!feof(fd))
{
- fscanf(fd,""); // ?? JPRx
- //fscanf(fd," %s %d",&firstline,&size); // JPRx
+// //fscanf(fd," %s %d",&firstline,&size); // JPRx
fscanf(fd," %s %d",firstline,&size);
_SizesC.push_back(size);
if(fd!=NULL)
{
int cont = 0;
- for(i=0; i<_SizesC.size(); i++)
+ for(i=0; i<(int)(_SizesC.size()); i++)
{
fprintf(fd,"\nNumberOfPoints %d", _SizesC[i] );
for(j=0; j<_SizesC[i]; j++)
if(fd!=NULL)
{
int cont = 0;
- for(i=0; i<_SizesC.size(); i++)
+ for(i=0; i<(int)(_SizesC.size()); i++)
{
fprintf(fd,"\nNumberOfControlPoints %d", _SizesC[i] );
for(j=0; j<_SizesC[i]; j++)