From: jean-pierre roux Date: Thu, 15 Oct 2009 14:34:30 +0000 (+0000) Subject: no newline at end of file X-Git-Tag: CREATOOLS.2-0-3~142 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=37319ea6defbf2dc5ddce23e0b65c2247543ae33;p=creaMaracasVisu.git no newline at end of file --- diff --git a/bbtk/bbs/appli/ExampleShowNPoints.bbs b/bbtk/bbs/appli/ExampleShowNPoints.bbs index 37730a5..b1c51a3 100644 --- a/bbtk/bbs/appli/ExampleShowNPoints.bbs +++ b/bbtk/bbs/appli/ExampleShowNPoints.bbs @@ -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" diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/PlaneDirectionViewer.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/PlaneDirectionViewer.cxx index db97047..63c163f 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/PlaneDirectionViewer.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/PlaneDirectionViewer.cxx @@ -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 lstPointsx, std::vector lstPointsy, std::vector 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