#define _wxVTKRenderWindowInteractorEditContour_h_
-#include "wxVTKRenderWindowInteractor.h"
+#include <wxVTKRenderWindowInteractor.h>
#include <vtkCommand.h>
#include <vtkImageData.h>
-
//------------------------------------------------------------------------
//------------------------------------------------------------------------
//------------------------------------------------------------------------
double InitialLevel;
};
+class wxVTKRenderWindowInteractor;
class vtkInteractorStyle2DMaracas : public vtkInteractorStyleImage{
public:
virtual void OnMiddleButtonUp () ;
virtual void OnRightButtonDown () ;
virtual void OnRightButtonUp () ;
- void SetObserver( vtkCommand *obs );
+ void SetObserver( vtkCommand *obs );
private:
vtkCommand *_obs;
-class wxVTKRenderWindowInteractorEditContour : public wxVTKRenderWindowInteractor{
+class wxVTKRenderWindowInteractorEditContour : public wxVTKRenderWindowInteractor {
public:
- wxVTKRenderWindowInteractorEditContour(wxWindow *parent,wxWindowID id);
- ~wxVTKRenderWindowInteractorEditContour();
+ wxVTKRenderWindowInteractorEditContour(wxWindow *parent,wxWindowID id);
+ virtual ~wxVTKRenderWindowInteractorEditContour();
- virtual void OnButtonDown(wxMouseEvent &event);
- virtual void OnButtonUp(wxMouseEvent &event);
- virtual void OnButtonDouble(wxMouseEvent &event);
+ virtual void OnButtonDown(wxMouseEvent &event);
+ virtual void OnButtonUp(wxMouseEvent &event);
+ virtual void OnButtonDouble(wxMouseEvent &event);
virtual void OnMotion(wxMouseEvent &event);
- virtual void OnKeyDown(wxKeyEvent &event);
+ virtual void OnKeyDown(wxKeyEvent &event);
- void SetState(int state);
- int GetState();
- void SetObserver(vtkCommand *obs);
+ void SetState(int state);
+ int GetState();
+ void SetObserver(vtkCommand *obs);
private:
- int _state;
- vtkCommand *_obs;
+ int _state;
+ vtkCommand *_obs;
};
{
public:
wxVTKRenderWindowInteractorPlus(wxWindow *parent ,wxVtkBaseView *_wxvtkbaseview);
- ~wxVTKRenderWindowInteractorPlus();
+ virtual ~wxVTKRenderWindowInteractorPlus();
wxVTKRenderWindowInteractorPlus();
void OnLeftDClick( wxMouseEvent& event );
Program: wxMaracas
Module: $RCSfile: volume.cxx,v $
Language: C++
- Date: $Date: 2008/11/21 18:13:38 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2009/01/26 11:22:49 $
+ Version: $Revision: 1.4 $
Copyright: (c) 2002, 2003
License:
case FLOAT: convertCastT( ( char* )_raw, ( float* )buffer, size ); break;
case DOUBLE: convertCastT( ( char* )_raw, ( double* )buffer, size ); break;
case UCHAR: convertCastT( ( char* )_raw, ( uchar* )buffer, size ); break;
+ default : break;
} // fswitch
break;
case FLOAT: convertCastT( ( short* )_raw, ( float* )buffer, size ); break;
case DOUBLE: convertCastT( ( short* )_raw, ( double* )buffer, size ); break;
case UCHAR: convertCastT( ( short* )_raw, ( uchar* )buffer, size ); break;
-
+ default : break;
} // fswitch
break;
case FLOAT: convertCastT( ( int* )_raw, ( float* )buffer, size ); break;
case DOUBLE: convertCastT( ( int* )_raw, ( double* )buffer, size ); break;
case UCHAR: convertCastT( ( int* )_raw, ( uchar* )buffer, size ); break;
-
+ default : break;
} // fswitch
break;
case FLOAT: convertCastT( ( ushort* )_raw, ( float* )buffer, size ); break;
case DOUBLE: convertCastT( ( ushort* )_raw, ( double* )buffer, size ); break;
case UCHAR: convertCastT( ( ushort* )_raw, ( uchar* )buffer, size ); break;
-
+ default : break;
} // fswitch
break;
case FLOAT: convertCastT( ( uint* )_raw, ( float* )buffer, size ); break;
case DOUBLE: convertCastT( ( uint* )_raw, ( double* )buffer, size ); break;
case UCHAR: convertCastT( ( uint* )_raw, ( uchar* )buffer, size ); break;
-
+ default : break;
} // fswitch
break;
case UINT: convertCastT( ( float* )_raw, ( uint* )buffer, size ); break;
case DOUBLE: convertCastT( ( float* )_raw, ( double* )buffer, size ); break;
case UCHAR: convertCastT( ( float* )_raw, ( uchar* )buffer, size ); break;
-
+ default : break;
} // fswitch
break;
case UINT: convertCastT( ( double* )_raw, ( uint* )buffer, size ); break;
case FLOAT: convertCastT( ( double* )_raw, ( float* )buffer, size ); break;
case UCHAR: convertCastT( ( double* )_raw, ( uchar* )buffer, size ); break;
-
+ default : break;
} // fswitch
break;
case UINT: convertCastT( ( uchar* )_raw, ( uint* )buffer, size ); break;
case FLOAT: convertCastT( ( uchar* )_raw, ( float* )buffer, size ); break;
case DOUBLE: convertCastT( ( uchar* )_raw, ( double* )buffer, size ); break;
-
+ default : break;
} // fswitch
break;
Program: wxMaracas
Module: $RCSfile: volume.hxx,v $
Language: C++
- Date: $Date: 2009/01/15 11:09:47 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2009/01/26 11:22:49 $
+ Version: $Revision: 1.4 $
Copyright: (c) 2002, 2003
License:
#include "marTypes.h"
#include <string>
-#ifdef KGFO_USE_IDO
-extern "C"
-{
-#include <idvol.h>
-};
-#endif // KGFO_USE_IDO
+//#ifdef KGFO_USE_IDO
+//extern "C"
+//{
+//#include <idvol.h>
+//};
+//#endif // KGFO_USE_IDO
#ifdef KGFO_USE_VTK
#include <vtkImageData.h>
static const vtkIdType VTKTypes[];
#endif // KGFO_USE_VTK
-#ifdef KGFO_USE_IDO
-
- static const int IDOTypes[];
-
-#endif // KGFO_USE_IDO
+//#ifdef KGFO_USE_IDO
+//
+// static const int IDOTypes[];
+//
+//#endif // KGFO_USE_IDO
public:
#endif // KGFO_USE_VTK
-#ifdef KGFO_USE_IDO
-
- public:
-
- kVolume( PPPVOLUME org );
-
- kVolume& operator=( PPPVOLUME org );
- void copyFrom( PPPVOLUME org );
-
- PPPVOLUME castIdo( ) const
- {
- return( ( PPPVOLUME )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME( ) const
- {
- return( ( PPPVOLUME )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME_CHAR( ) const
- {
- return( ( PPPVOLUME_CHAR )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME_FLOAT( ) const
- {
- return( ( PPPVOLUME_FLOAT )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME_DOUBLE( ) const
- {
- return( ( PPPVOLUME_DOUBLE )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME_LONG( ) const
- {
- return( ( PPPVOLUME_LONG )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME_SHORT( ) const
- {
- return( ( PPPVOLUME_SHORT )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME_UCHAR( ) const
- {
- return( ( PPPVOLUME_UCHAR )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME_ULONG( ) const
- {
- return( ( PPPVOLUME_ULONG )( &_privateIdo[ 1 ] ) );
- }
- operator PPPVOLUME_USHORT( ) const
- {
- return( ( PPPVOLUME_USHORT )( &_privateIdo[ 1 ] ) );
- }
-
- protected:
-
- PRIVATE_VOLUME* _privateIdo;
-
-#endif // KGFO_USE_IDO
+//#ifdef KGFO_USE_IDO
+
+// public:
+//
+// kVolume( PPPVOLUME org );
+//
+// kVolume& operator=( PPPVOLUME org );
+// void copyFrom( PPPVOLUME org );
+//
+// PPPVOLUME castIdo( ) const
+// {
+// return( ( PPPVOLUME )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME( ) const
+// {
+// return( ( PPPVOLUME )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME_CHAR( ) const
+// {
+// return( ( PPPVOLUME_CHAR )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME_FLOAT( ) const
+// {
+// return( ( PPPVOLUME_FLOAT )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME_DOUBLE( ) const
+// {
+// return( ( PPPVOLUME_DOUBLE )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME_LONG( ) const
+// {
+// return( ( PPPVOLUME_LONG )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME_SHORT( ) const
+// {
+// return( ( PPPVOLUME_SHORT )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME_UCHAR( ) const
+// {
+// return( ( PPPVOLUME_UCHAR )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME_ULONG( ) const
+// {
+// return( ( PPPVOLUME_ULONG )( &_privateIdo[ 1 ] ) );
+// }
+// operator PPPVOLUME_USHORT( ) const
+// {
+// return( ( PPPVOLUME_USHORT )( &_privateIdo[ 1 ] ) );
+// }
+//
+// protected:
+//
+// PRIVATE_VOLUME* _privateIdo;
+//
+//#endif // KGFO_USE_IDO
};
#endif // KGFO__VOLUME__HXX