]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/DataObject.cxx
...
[cpPlugins.git] / lib / cpPlugins / DataObject.cxx
index 06806b56fd483ec689154d733c05fd710802bd6d..9e6bdca57a55264d986a3a8d719f0143048df8dd 100644 (file)
@@ -69,26 +69,29 @@ DisconnectFromPipeline( )
 vtkProp* cpPlugins::DataObject::
 GetVTKActor( )
 {
-  if( this->m_Actor == NULL )
+  if( this->m_Actor.GetPointer( ) == NULL )
     this->_CreateVTKActor( );
-  return( this->m_Actor );
+  return( this->m_Actor.GetPointer( ) );
 }
 
 // -------------------------------------------------------------------------
 const vtkProp* cpPlugins::DataObject::
 GetVTKActor( ) const
 {
-  if( this->m_Actor == NULL )
+  if( this->m_Actor.GetPointer( ) == NULL )
     this->_CreateVTKActor( );
-  return( this->m_Actor );
+  return( this->m_Actor.GetPointer( ) );
 }
 
 // -------------------------------------------------------------------------
 cpPlugins::DataObject::
 DataObject( )
   : Superclass( ),
-    m_Source( NULL ),
-    m_Actor( NULL )
+    m_Source( NULL )
+    /* TODO
+       ,
+       m_Actor( NULL )
+    */
 {
 }
 
@@ -96,8 +99,10 @@ DataObject( )
 cpPlugins::DataObject::
 ~DataObject( )
 {
-  if( this->m_Actor != NULL )
-    this->m_Actor->Delete( );
+  /* TODO
+     if( this->m_Actor != NULL )
+     this->m_Actor->Delete( );
+  */
 }
 
 // -------------------------------------------------------------------------