-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
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"
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);
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);
}
viewdata.push_back(planedirview);
this->GetSizer()->Add(planedirview,1);
}
- this->Layout();
-
+ this->Layout();
}
void PlaneDirectionViewer::addRemoveActor(int index, bool addremove){
void PlaneDirectionViewer::SetArrowSize(int arrowsize){
manager->SetArrowSize(arrowsize);
+}
-}
\ No newline at end of file