]> Creatis software - cpPlugins.git/blobdiff - appli/examples/example_SphereWidget.cxx
undo redo example Done. MementoState updated. Sphere widget still unsync
[cpPlugins.git] / appli / examples / example_SphereWidget.cxx
index ac0d27c81b553b82ba70e548e2715c6d0af97ea8..6ba1e5e40e362bedc56be9917ad05ccc0f457906 100644 (file)
@@ -30,20 +30,20 @@ typedef cpExtensions::Interaction::SphereWidget       TSphereWidget;
 
 // -------------------------------------------------------------------------
 
-std::string _path = "C://dev//creatis//cpPlugins//build//Debug//cpPluginsIO.dll";
+std::string _pathIOplugin = "C://dev//creatis//cpPlugins//build//Debug//cpPluginsIO.dll";
 std::string _img = "C://img//SphereVolume.mhd";
 
 int main(int argc, char* argv[])
 {
   if (argc >= 3)
   {
-    _path = argv[1];
+    _pathIOplugin = argv[1];
     _img = argv[2];
   }
 
   // Create interface
   TInterface plugins;
-  if (!plugins.Load(_path))
+  if (!plugins.Load(_pathIOplugin))
   {
     std::cerr << "Failed to load plugins." << std::endl;
     return(1);
@@ -105,11 +105,11 @@ int main(int argc, char* argv[])
   vtkSmartPointer<TSphereWidget> sphereWidget =
     vtkSmartPointer<TSphereWidget>::New();
   sphereWidget->SetInteractor(interactor);
-  sphereWidget->CreateDefaultRepresentation();
+//  sphereWidget->CreateDefaultRepresentation();
 
-  vtkSphereRepresentation* sphereRepresentation =
/* vtkSphereRepresentation* sphereRepresentation =
     vtkSphereRepresentation::SafeDownCast(sphereWidget->GetRepresentation());
-  sphereRepresentation->HandleVisibilityOn();
+  sphereRepresentation->HandleVisibilityOn();*/
 
   // Begin interaction
   renderer->ResetCamera();