#include "GConnectorController.h"
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
namespace bbtk
{
bool GConnectorController::OnMouseMove()
{
+ if (_view->getState() ==SELECTED)
+ {
+ _controller->GetManualViewBaseContour()->SetSelected(true);
+ }
+
if ( _vtkInteractorStyleBaseView!=NULL)
{
int X,Y;
bool GConnectorController::OnRightButtonDown()
{
-printf ("GConnectorController::OnRightButtonDown 1 \n" );
if( _vtkInteractorStyleBaseView!= NULL )
{
int X,Y;
_controller->MouseClickRight(X,Y);
}
-printf ("GConnectorController::OnRightButtonDown 2 \n" );
return true;
}
{
if ( _vtkInteractorStyleBaseView!=NULL )
{
- int X,Y,Z=900;
+ int X, Y, Z=GPOSITION_Z;
wxVTKRenderWindowInteractor *wxVTKiren;
wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk3DBaseView()->GetWxVTKRenderWindowInteractor();
wxVTKiren->GetEventPosition(X, Y);