- auto cb = vtkSmartPointer< SeedWidgetCallback >::New( );
- cb->Widget = seedWidget;
- cb->Data = this;
- this->Command = cb;
- actor->AddObserver( vtkCommand::InteractionEvent, cb );
-
- auto image = actor->GetImage( );
- int ori = actor->GetOrientation( );
- int ext[ 6 ];
- image->GetExtent( ext );
- for( int i = ext[ ori << 1 ]; i <= ext[ ( ori << 1 ) + 1 ]; ++i )
- {
- auto placer = vtkSmartPointer< _TPlacer >::New( );
- auto handle = vtkSmartPointer< vtkPointHandleRepresentation3D >::New( );
- auto rep = vtkSmartPointer< vtkSeedRepresentation >::New( );
- auto wdg = vtkSmartPointer< _TWidget >::New( );
-
- placer->SetImageSlice( actor );
- handle->GetProperty( )->SetColor( 1, 0, 0 );
- handle->SetPointPlacer( placer );
- rep->SetHandleRepresentation( handle );
- wdg->SetRepresentation( rep );
- wdg->SetInteractor( iren );
- wdg->AddObserver( vtkCommand::PlacePointEvent, cb );
- wdg->AddObserver( vtkCommand::CursorChangedEvent, cb );
- wdg->EnabledOff( );
-
- this->Widgets.push_back( wdg );
- this->Placers.push_back( placer );
- this->Handles.push_back( handle );
- this->Representations.push_back( rep );
-
- } // rof
-
- this->ActualWidgetId = actor->GetSliceNumber( );
- this->Widgets[ this->ActualWidgetId ]->EnabledOn( );
+ /* TODO
+ auto image = actor->GetImage( );
+ int ori = actor->GetOrientation( );
+ int ext[ 6 ];
+ image->GetExtent( ext );
+ for( int i = ext[ ori << 1 ]; i <= ext[ ( ori << 1 ) + 1 ]; ++i )
+ {
+ */
+ this->Placer = vtkSmartPointer< _TPlacer >::New( );
+ this->Handle = vtkSmartPointer< vtkPointHandleRepresentation3D >::New( );
+ this->Representation = vtkSmartPointer< vtkSeedRepresentation >::New( );
+ this->Widget = vtkSmartPointer< _TWidget >::New( );
+
+ this->Placer->SetImageSlice( actor );
+ this->Handle->GetProperty( )->SetColor( 1, 0, 0 );
+ this->Handle->SetPointPlacer( this->Placer );
+ this->Representation->SetHandleRepresentation( this->Handle );
+ this->Widget->SetRepresentation( this->Representation );
+ this->Widget->SetInteractor( iren );
+ /* TODO
+ this->Widget->AddObserver( vtkCommand::PlacePointEvent, cb );
+ this->Widget->AddObserver( vtkCommand::CursorChangedEvent, cb );
+ */
+ this->Widget->EnabledOff( );
+
+ /* TODO
+ this->Widgets.push_back( wdg );
+ this->Placers.push_back( placer );
+ this->Handles.push_back( handle );
+ this->Representations.push_back( rep );
+ */
+
+ /* TODO
+ } // rof
+ this->ActualWidgetId = actor->GetSliceNumber( );
+ this->Widgets[ this->ActualWidgetId ]->EnabledOn( );
+ */
+
+ /* TODO
+ auto cb = vtkSmartPointer< SeedWidgetCallback >::New( );
+ cb->Widget = seedWidget;
+ cb->Data = this;
+ this->Command = cb;
+ actor->AddObserver( vtkCommand::InteractionEvent, cb );
+
+ auto image = actor->GetImage( );
+ int ori = actor->GetOrientation( );
+ int ext[ 6 ];
+ image->GetExtent( ext );
+ for( int i = ext[ ori << 1 ]; i <= ext[ ( ori << 1 ) + 1 ]; ++i )
+ {
+ auto placer = vtkSmartPointer< _TPlacer >::New( );
+ auto handle = vtkSmartPointer< vtkPointHandleRepresentation3D >::New( );
+ auto rep = vtkSmartPointer< vtkSeedRepresentation >::New( );
+ auto wdg = vtkSmartPointer< _TWidget >::New( );
+
+ placer->SetImageSlice( actor );
+ handle->GetProperty( )->SetColor( 1, 0, 0 );
+ handle->SetPointPlacer( placer );
+ rep->SetHandleRepresentation( handle );
+ wdg->SetRepresentation( rep );
+ wdg->SetInteractor( iren );
+ wdg->AddObserver( vtkCommand::PlacePointEvent, cb );
+ wdg->AddObserver( vtkCommand::CursorChangedEvent, cb );
+ wdg->EnabledOff( );
+
+ this->Widgets.push_back( wdg );
+ this->Placers.push_back( placer );
+ this->Handles.push_back( handle );
+ this->Representations.push_back( rep );
+
+ } // rof
+
+ this->ActualWidgetId = actor->GetSliceNumber( );
+ this->Widgets[ this->ActualWidgetId ]->EnabledOn( );
+ */