]> Creatis software - creaMaracasVisu.git/commitdiff
no newline at end of file
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 15 Oct 2009 14:34:30 +0000 (14:34 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 15 Oct 2009 14:34:30 +0000 (14:34 +0000)
bbtk/bbs/appli/ExampleShowNPoints.bbs
lib/maracasVisuLib/src/interface/wxWindows/widgets/PlaneDirectionViewer.cxx

index 37730a5e6c82c2cfb2e2c83da5790eeee1138b82..b1c51a31c5829e44fceef109407d29d927385a02 100644 (file)
@@ -1,5 +1,5 @@
-description "3 slicers and a 3D view"
-author "jpr@creatis.insa-lyon.fr"
+description "Show N Points"
+author "info-dev@creatis.insa-lyon.fr"
 category "demo"
 
 // To show how easy it is to add smthing
@@ -14,11 +14,27 @@ include wx
 load itkvtk
 load creaMaracasVisu
 
+# Here loads hola.mhd
+# -------------------------
+/*
+include vtk/boxes/bbLoadHola
+new LoadHola reader
+*/
+
+# uncomment next lines to have a file selector
+# ---------------------------------------------
 new FileSelector openFileDialog
   set openFileDialog.Wildcard  "(*.mhd)|*.mhd"
 new MetaImageReader reader
    connect openFileDialog.Out reader.In
 
+# uncomment next lines to use Gimmick
+# -----------------------------------
+/*
+load creaImageIO
+new Gimmick reader
+*/
+
 new ViewerNV viewer
   connect reader.Out viewer.In
   set viewer.nTypeView "5 1 2 0"
index db97047c458eb204e7c48d1ee73878ad91567f85..63c163f56849b4882f036414443ea554a682b868 100644 (file)
@@ -15,10 +15,8 @@ PlaneDirectionViewer::PlaneDirectionViewer(wxWindow* parent,int radio, double co
        wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
        this->SetSizer(sizer);
        this->SetAutoLayout(true);
-       
 }
 
-
 PlaneDirectionViewer* PlaneDirectionViewer::getInstance(wxWindow* parent,int radio, double colour[3], int opacity){
        if(instance==NULL){
                instance = new PlaneDirectionViewer(parent,radio,colour,opacity);
@@ -37,6 +35,7 @@ PlaneDirectionViewer::~PlaneDirectionViewer(){
 void PlaneDirectionViewer::SetRenderer(vtkRenderer* render){
        manager->SetRenderer(render);
 }
+
 void PlaneDirectionViewer::SetVectors( std::vector<double> lstPointsx, std::vector<double> lstPointsy, std::vector<double> lstPointsz){
        manager->SetVectors(lstPointsx,lstPointsy,lstPointsz);
 }
@@ -54,8 +53,7 @@ void PlaneDirectionViewer::UpdateDirections() throw (std::exception){
                viewdata.push_back(planedirview);
                this->GetSizer()->Add(planedirview,1);
        }
-       this->Layout();
-       
+       this->Layout(); 
 }
 
 void PlaneDirectionViewer::addRemoveActor(int index, bool addremove){
@@ -72,5 +70,5 @@ void PlaneDirectionViewer::WriteInformation(std::string  filename, double* spc){
 
 void PlaneDirectionViewer::SetArrowSize(int arrowsize){
        manager->SetArrowSize(arrowsize);
+}
 
-}
\ No newline at end of file