bool InteractorwxVtkBaseView::OnLeftButtonDown()
{
- printf("EED InteractorwxVtkBaseView::OnLeftButtonDown \n");
if ( _box->bbGetInputInteractionType()==8 )
{
- printf("EED InteractorwxVtkBaseView::OnLeftButtonDown 1\n");
flagDrag=true;
}
if ( (_box->bbGetInputInteractionType()==1 ) && (_wxvtkbaseview!=NULL) )
bool InteractorwxVtkBaseView::OnLeftButtonUp()
{
- printf("EED InteractorwxVtkBaseView::OnLeftButtonUp \n");
if ( _box->bbGetInputInteractionType()==8 )
{
- printf("EED InteractorwxVtkBaseView::OnLeftButtonUp 1\n");
flagDrag=false;
}
if ( (_box->bbGetInputInteractionType()==2 ) && (_wxvtkbaseview!=NULL) )
{
int intFlag;
if (flagDrag==true) intFlag=1; else intFlag=0;
- printf("EED InteractorwxVtkBaseView::OnMouseMove Start this=%p type=%d flag=%d\n", this, _box->bbGetInputInteractionType() ,intFlag);
bool ok=false;
if ( (_box->bbGetInputInteractionType()==3 ) && (_wxvtkbaseview!=NULL) )
{
} // if InteractionType 9
if (ok==true)
{
- printf("EED InteractorwxVtkBaseView::OnMouseMove 1\n");
_box->SetwxVtkBaseViewOutputs( _wxvtkbaseview );
_box->bbSignalOutputModification();
return false;
} // if ok
- printf("EED InteractorwxVtkBaseView::OnMouseMove End\n");
return true;
}
bool InteractorwxVtkBaseView::OnLeftDClick()
{
- printf("EED InteractorwxVtkBaseView::OnLeftDClick Start this=%p\n", this);
if ( (_box->bbGetInputInteractionType()==6 ) && (_wxvtkbaseview!=NULL) )
{
- printf("EED InteractorwxVtkBaseView::OnLeftDClick 1\n");
_box->SetwxVtkBaseViewOutputs( _wxvtkbaseview );
_box->bbSignalOutputModification();
return false;
bool InteractorwxVtkBaseView::OnRightDClick()
{
- printf("EED InteractorwxVtkBaseView::OnRightDClick Start\n");
if ( (_box->bbGetInputInteractionType()==7 ) && (_wxvtkbaseview!=NULL) )
{
- printf("EED InteractorwxVtkBaseView::OnRightDClick 1\n");
_box->SetwxVtkBaseViewOutputs( _wxvtkbaseview );
_box->bbSignalOutputModification();
return false;
{
if (wxvtkbaseview!=NULL)
{
- printf("EED wxVtkBaseView_Info::SetwxVtkBaseViewOutputs this=%p\n",this);
- printf("EED wxVtkBaseView_Info::SetwxVtkBaseViewOutputs %s \n", bbGetFullName().c_str() );
bbSetOutputvtkRenderer( wxvtkbaseview->GetRenderer() );
bbSetOutputDirection( wxvtkbaseview->GetDirection() );
vtkBaseData *vtkbasedata = wxvtkbaseview->GetVtkBaseData();
lstPoint.push_back( vtkbasedata->GetY() );
lstPoint.push_back( vtkbasedata->GetZ() );
bbSetOutputPoint( lstPoint );
- printf("EED wxVtkBaseView_Info::SetwxVtkBaseViewOutputs point = %f %f %f\n",lstPoint[0],lstPoint[1],lstPoint[2] );
+
+ int pointMouseX,pointMouseY,pointMouseZ;
+ vtkbasedata->GetPointMouse(pointMouseX,pointMouseY,pointMouseZ);
+ std::vector<double> lstPointMouse;
+ lstPointMouse.push_back( pointMouseX );
+ lstPointMouse.push_back( pointMouseY );
+ lstPointMouse.push_back( pointMouseZ );
+ bbSetOutputPointMouse( lstPointMouse );
double normal[3];
std::vector<double> lstNormal;
// (the one provided in the attribute 'name' of the tag 'input')
// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
-
-
-
- printf("EED wxVtkBaseView_Info::Process Start\n");
-
if (bbGetInputInteractionType()==0)
{
SetwxVtkBaseViewOutputs( bbGetInputwxVtkBaseView() );
}
-
if (firsttime==true)
{
firsttime=false;
if (bbGetInputInteractionType()!=0)
{
SetwxVtkBaseViewOutputs( bbGetInputwxVtkBaseView() );
-
if (bbGetInputwxVtkBaseView()!=NULL)
{
InteractorwxVtkBaseView *interactorwxvtkbaseview = new InteractorwxVtkBaseView( this, bbGetInputwxVtkBaseView() );
} // if wxVtkBaseView3
} // if InteractionType !=0
} // if firsttime
-
- printf("EED wxVtkBaseView_Info::Process end\n");
-
}
//=====