#include "bbcreaMaracasVisuPackage.h"
namespace bbcreaMaracasVisu
{
-
+
BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,PlaneDirection)
BBTK_BLACK_BOX_IMPLEMENTATION(PlaneDirection,bbtk::WxBlackBox);
void PlaneDirection::Process()
manualContourBaseControler* creaContoursFactory::getContourControler(int typeContour)
{
- manualContourBaseControler *manContourControl;
+ manualContourBaseControler *manContourControl = NULL;
//spline
if (typeContour==1)
{
{
manContourControl = new manualContourControler();
}
- return manContourControl;
-
+
+ //JPReyes 13/04/2010
+ //Spline 3D
+ if(typeContour==12)
+ {
+ printf("JPReyes %p creaContoursFactory::getContourControler pasando por el Contour 12 \n",this);
+ manContourControl = new manualContour3V3DControler();
+ }
+
+ return manContourControl;
}
manualContourBaseControler* creaContoursFactory::getContourControler(std::string typeContour)
{
- manualContourBaseControler *manContourControl;
+ manualContourBaseControler *manContourControl = NULL;
if (typeContour.compare("spline")==0)
{
manContourControl = getContourControler(1);
manContourControl = getContourControler(10);
}
+ //JPReyes 13/04/2010
+ //Spline 3D
+ if(typeContour.compare("spline3D")==0)
+ {
+ manContourControl = getContourControler(12);
+ }
+
+
+
return manContourControl;
}
manualViewBaseContour* creaContoursFactory::getCountourView (int typeContour)
{
- manualViewBaseContour *manViewerContour;
+ manualViewBaseContour *manViewerContour = NULL;
//spline
if (typeContour==1)
{
{
manViewerContour = new manualViewContour();
}
+
+ //JPReyes 13/04/2010
+ //Spline 3D
+ if(typeContour==12)
+ {
+ manViewerContour = new manualView3DContour();
+ }
return manViewerContour;
}
manualViewBaseContour* creaContoursFactory::getCountourView (std::string typeContour)
{
- manualViewBaseContour *manViewerContour;
+ manualViewBaseContour *manViewerContour = NULL;
if (typeContour.compare("spline")==0)
{
{
manViewerContour = getCountourView(10);
}
+
+ //JPReyes 13/04/2010
+ //Spline 3D
+ if (typeContour.compare("spline3D")==0)
+ {
+ manViewerContour = getCountourView(12);
+ }
+
return manViewerContour;
}
manModelContour = new manualContourModelPolygon();
}
+
+ //JPReyes 13/04/2010
+ //Spline 3D
+ if(typeContour==12)
+ {
+ manModelContour = new manualContourModel();
+ }
+
return manModelContour;
}
manModelContour = getContourModel(10);
}
+
+ //JPReyes 13/04/2010
+ //Spline 3D
+ if (typeContour.compare("spline3D")==0)
+ {
+ manModelContour = getContourModel(12);
+ }
+
return manModelContour;
}
\ No newline at end of file
#include "manualContourModelRotationTool.h"
#include "manualViewRotationTool.h"
#include "manualContourModelPolygon.h"
+#include "manualView3DContour.h"
+#include "manualContour3V3DControler.h"
+
class creaMaracasVisu_EXPORT creaContoursFactory
{
manualContour3V3DControler::manualContour3V3DControler()
{
+ _manualcontour3Vcontroler=NULL;
}
// ----------------------------------------------------------------------------
manualContour3V3DControler::~manualContour3V3DControler()
void manualContour3V3DControler::AddPoint( int x, int y, int z )
{
manualContour3DControler::AddPoint( x, y, z );
- _manualcontour3Vcontroler->AddPoint_Others();
+ if (_manualcontour3Vcontroler!=NULL)
+ {
+ _manualcontour3Vcontroler->AddPoint_Others();
+ }
}
// ----------------------------------------------------------------------------
void manualContour3V3DControler::DeleteActualMousePoint(int x, int y)
if ((this->GetState()!=7) && (ss!=1)){
manualContour3DControler::MouseMove( x , y );
int id = GetManualViewBaseContour()->GetIdPoint ( x , y , GetZ() );
- _manualcontour3Vcontroler->MouseMove_Others(id);
+ if (_manualcontour3Vcontroler!=NULL)
+ {
+ _manualcontour3Vcontroler->MouseMove_Others(id);
+ }
}
}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
bool manualContourBaseControler::OnLeftButtonDown()
{
+ printf("EED %p manualContourBaseControler::OnLeftButtonDown \n",this);
SetKeyBoardMoving( false );
if ( _vtkInteractorStyleBaseView!=NULL )
{
// ----------------------------------------------------------------------------
bool manualContourBaseControler::OnLeftButtonUp()
{
+ printf("EED %p manualContourBaseControler::OnLeftButtonUp \n",this);
if ( _vtkInteractorStyleBaseView!=NULL )
{
int X,Y;
// ----------------------------------------------------------------------------
bool manualContourBaseControler::OnLeftDClick()
{
+ printf("EED %p manualContourBaseControler::OnLeftDClick \n",this);
if ( _vtkInteractorStyleBaseView!=NULL )
{
int X,Y;
// ----------------------------------------------------------------------------
bool manualContourBaseControler::OnRightButtonDown()
{
+ printf("EED %p manualContourBaseControler::OnRightButtonDown \n",this);
if( _vtkInteractorStyleBaseView!= NULL )
{
int X,Y;
// ----------------------------------------------------------------------------
bool manualContourBaseControler::OnRightButtonUp()
{
+ printf("EED %p manualContourBaseControler::OnRightButtonUp \n",this);
return true;
}
// ----------------------------------------------------------------------------
// EEDx5
//JCP 13/05/2009
vtkInteractorStyleBaseView* interactorstyle = (vtkInteractorStyleBaseView*)this->GetInteractorStyleBaseView();
- wxVtk2DBaseView* baseview = (wxVtk2DBaseView*)interactorstyle->GetWxVtk2DBaseView();
+ wxVtk2DBaseView* baseview = (wxVtk2DBaseView*)interactorstyle->GetWxVtk2DBaseView();
double fP[3];
fP[0] = X;