]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Interaction/BaseInteractorStyle.cxx
Some bugs...
[cpPlugins.git] / lib / cpExtensions / Interaction / BaseInteractorStyle.cxx
index 7cc717886f89fc6a9bfe560fe3eedf8c213164c7..6c0ebbe1ef3963be5c412c058d02f70b7cf99a47 100644 (file)
@@ -18,6 +18,32 @@ SetSetDoubleClickDelay( long delay )
   Self::_TMouseButtonEvent::MaxDoubleClick = delay;
 }
 
+// -------------------------------------------------------------------------
+vtkObject* cpExtensions::Interaction::BaseInteractorStyle::
+GetAssociatedObject( )
+{
+  return( this->m_AssociatedObject );
+}
+
+// -------------------------------------------------------------------------
+const vtkObject* cpExtensions::Interaction::BaseInteractorStyle::
+GetAssociatedObject( ) const
+{
+  return( this->m_AssociatedObject );
+}
+
+// -------------------------------------------------------------------------
+void cpExtensions::Interaction::BaseInteractorStyle::
+SetAssociatedObject( vtkObject* obj )
+{
+  if( this->m_AssociatedObject != obj )
+  {
+    this->m_AssociatedObject = obj;
+    this->Modified( );
+
+  } // fi
+}
+
 // -------------------------------------------------------------------------
 void cpExtensions::Interaction::BaseInteractorStyle::
 DelegateTDxEvent( unsigned long event, void* calldata )
@@ -362,6 +388,7 @@ Pan( )
 cpExtensions::Interaction::BaseInteractorStyle::
 BaseInteractorStyle( )
   : Superclass( ),
+    m_AssociatedObject( NULL ),
     m_MotionFactor( double( 10 ) )
 {
   this->m_LeftButtonEvent.Reset( );