Commit b5555790 authored by Pierre Kraemer's avatar Pierre Kraemer

Merge cgogn:~untereiner/CGoGN

Conflicts:
	SCHNApps/Plugins/renderTopoSurface/forms/renderTopoSurface.ui
	SCHNApps/Plugins/renderTopoSurface/src/renderTopoSurface.cpp
	SCHNApps/Plugins/renderTopoSurface/src/renderTopoSurfaceDockTab.cpp
parents 687dea0d 03f1fe6a
...@@ -163,15 +163,15 @@ void MyQT::cb_Save() ...@@ -163,15 +163,15 @@ void MyQT::cb_Save()
Utils::SVG::SVGOut svg1(modelViewMatrix(), projectionMatrix()); Utils::SVG::SVGOut svg1(modelViewMatrix(), projectionMatrix());
m_drawer.toSVG(svg1); m_drawer.toSVG(svg1);
svg1.addOpacityAnimation(1.0f); // svg1.addOpacityAnimation(1.0f);
svg1.addOpacityAnimation(1.0f); // svg1.addOpacityAnimation(1.0f);
svg1.addOpacityAnimation(0.0f); // svg1.addOpacityAnimation(0.0f);
Utils::SVG::SVGOut svg2(modelViewMatrix(), projectionMatrix()); Utils::SVG::SVGOut svg2(modelViewMatrix(), projectionMatrix());
m_render_topo->toSVG(svg2); m_render_topo->toSVG(svg2);
svg2.addOpacityAnimation(1.0f); // svg2.addOpacityAnimation(1.0f);
svg2.addOpacityAnimation(0.0f); // svg2.addOpacityAnimation(0.0f);
svg2.addOpacityAnimation(1.0f); // svg2.addOpacityAnimation(1.0f);
Utils::SVG::AnimatedSVGOut anim; Utils::SVG::AnimatedSVGOut anim;
......
...@@ -237,13 +237,13 @@ void MyQT::cb_keyPress(int code) ...@@ -237,13 +237,13 @@ void MyQT::cb_keyPress(int code)
{ {
std::string filename = selectFileSave("Export SVG file ",".","(*.svg)"); std::string filename = selectFileSave("Export SVG file ",".","(*.svg)");
Utils::SVG::SVGOut svg(filename, modelViewMatrix(), projectionMatrix()); Utils::SVG::SVGOut svg(filename, modelViewMatrix(), projectionMatrix());
svg.setWidth(1.0f); // svg.setWidth(1.0f);
svg.setColor(Geom::Vec3f(0.0f,0.0f,0.5f)); // svg.setColor(Geom::Vec3f(0.0f,0.0f,0.5f));
Algo::Render::SVG::renderEdges<PFP>(svg, myMap, position); Algo::Render::SVG::renderEdges<PFP>(svg, myMap, position);
svg.setColor(Geom::Vec3f(0.0f,0.8f,0.0f)); // svg.setColor(Geom::Vec3f(0.0f,0.8f,0.0f));
svg.setWidth(5.0f); // svg.setWidth(5.0f);
Algo::Render::SVG::renderVertices<PFP>(svg, myMap, position); Algo::Render::SVG::renderVertices<PFP>(svg, myMap, position);
svg.setColor(Geom::Vec3f(1.0f,0.0f,0.0f)); // svg.setColor(Geom::Vec3f(1.0f,0.0f,0.0f));
m_strings->toSVG(svg); m_strings->toSVG(svg);
//svg destruction close the file //svg destruction close the file
} }
......
...@@ -235,6 +235,16 @@ void MyQT::operation(int x) ...@@ -235,6 +235,16 @@ void MyQT::operation(int x)
std::cout << "nb darts after = " << myMap.getNbDarts() << std::endl; std::cout << "nb darts after = " << myMap.getNbDarts() << std::endl;
} }
break; break;
case 11 :
CGoGNout <<"unsew volumes"<<CGoGNendl;
if (m_selected != NIL)
{
myMap.unsewVolumes(m_selected);
dm.markAll();
m_selected = NIL;
updateMap();
}
break;
default: default:
break; break;
} }
......
...@@ -145,6 +145,11 @@ ...@@ -145,6 +145,11 @@
<string>splitVertex</string> <string>splitVertex</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>unsewVolumes</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="6" column="0">
......
...@@ -134,6 +134,7 @@ SET(SCHNApps_QOBJECT_FILES ...@@ -134,6 +134,7 @@ SET(SCHNApps_QOBJECT_FILES
${SCHNApps_ROOT_DIR}/include/dialogs/cameraViewDialog.h ${SCHNApps_ROOT_DIR}/include/dialogs/cameraViewDialog.h
${SCHNApps_ROOT_DIR}/include/dialogs/pluginsViewDialog.h ${SCHNApps_ROOT_DIR}/include/dialogs/pluginsViewDialog.h
${SCHNApps_ROOT_DIR}/include/dialogs/mapsViewDialog.h ${SCHNApps_ROOT_DIR}/include/dialogs/mapsViewDialog.h
${SCHNApps_ROOT_DIR}/include/colorComboBox.h
) )
......
...@@ -6,45 +6,35 @@ ...@@ -6,45 +6,35 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>204</width> <width>190</width>
<height>547</height> <height>547</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QGridLayout" name="gridLayout">
<item> <item row="0" column="0" colspan="4">
<widget class="QListWidget" name="mapList"/> <widget class="QListWidget" name="mapList"/>
</item> </item>
<item> <item row="1" column="0">
<layout class="QGridLayout" name="gridLayout"> <widget class="QLabel" name="label_2">
<property name="sizeConstraint"> <property name="text">
<enum>QLayout::SetDefaultConstraint</enum> <string>Position :</string>
</property> </property>
<item row="0" column="2"> </widget>
<widget class="QComboBox" name="combo_positionAttribute">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Position :</string>
</property>
</widget>
</item>
</layout>
</item> </item>
<item> <item row="1" column="1" colspan="3">
<widget class="Line" name="line"/> <widget class="QComboBox" name="combo_positionAttribute">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item> </item>
<item> <item row="2" column="0" colspan="3">
<widget class="QCheckBox" name="check_drawDarts"> <widget class="QCheckBox" name="check_drawDarts">
<property name="text"> <property name="text">
<string>draw darts</string> <string>draw darts</string>
...@@ -54,7 +44,10 @@ ...@@ -54,7 +44,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="3">
<widget class="ColorComboBox" name="combo_dartsColor"/>
</item>
<item row="3" column="0" colspan="3">
<widget class="QCheckBox" name="check_drawPhi1"> <widget class="QCheckBox" name="check_drawPhi1">
<property name="text"> <property name="text">
<string>draw phi1</string> <string>draw phi1</string>
...@@ -64,7 +57,10 @@ ...@@ -64,7 +57,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="3" column="3">
<widget class="ColorComboBox" name="combo_phi1Color"/>
</item>
<item row="4" column="0" colspan="3">
<widget class="QCheckBox" name="check_drawPhi2"> <widget class="QCheckBox" name="check_drawPhi2">
<property name="text"> <property name="text">
<string>draw phi2</string> <string>draw phi2</string>
...@@ -74,45 +70,44 @@ ...@@ -74,45 +70,44 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="4" column="3">
<layout class="QGridLayout" name="gridLayout_2"> <widget class="ColorComboBox" name="combo_phi2Color"/>
<item row="0" column="0"> </item>
<widget class="QLabel" name="label"> <item row="5" column="0" colspan="2">
<property name="text"> <widget class="QLabel" name="label">
<string>explod edges</string> <property name="text">
</property> <string>explod edges</string>
</widget> </property>
</item> </widget>
<item row="0" column="1"> </item>
<widget class="QSlider" name="slider_edgesScaleFactor"> <item row="5" column="2" colspan="2">
<property name="value"> <widget class="QSlider" name="slider_edgesScaleFactor">
<number>50</number> <property name="value">
</property> <number>50</number>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
</widget> </property>
</item> </widget>
<item row="1" column="0"> </item>
<widget class="QLabel" name="label_3"> <item row="6" column="0" colspan="2">
<property name="text"> <widget class="QLabel" name="label_3">
<string>explod faces</string> <property name="text">
</property> <string>explod faces</string>
</widget> </property>
</item> </widget>
<item row="1" column="1"> </item>
<widget class="QSlider" name="slider_facesScaleFactor"> <item row="6" column="2" colspan="2">
<property name="value"> <widget class="QSlider" name="slider_facesScaleFactor">
<number>50</number> <property name="value">
</property> <number>50</number>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
</widget> </property>
</item> </widget>
</layout>
</item> </item>
<item> <item row="7" column="0" colspan="4">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
...@@ -127,6 +122,13 @@ ...@@ -127,6 +122,13 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<customwidgets>
<customwidget>
<class>ColorComboBox</class>
<extends>QComboBox</extends>
<header>colorComboBox.h</header>
</customwidget>
</customwidgets>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>
...@@ -24,8 +24,11 @@ struct PerMapParameterSet ...@@ -24,8 +24,11 @@ struct PerMapParameterSet
VertexAttribute<PFP2::VEC3> positionAttribute; VertexAttribute<PFP2::VEC3> positionAttribute;
bool drawDarts; bool drawDarts;
QColor dartsColor;
bool drawPhi1; bool drawPhi1;
QColor phi1Color;
bool drawPhi2; bool drawPhi2;
QColor phi2Color;
float edgesScaleFactor; float edgesScaleFactor;
float facesScaleFactor; float facesScaleFactor;
}; };
...@@ -81,8 +84,11 @@ public slots: ...@@ -81,8 +84,11 @@ public slots:
void changeSelectedMap(View* view, MapHandlerGen* map, bool fromUI = false); void changeSelectedMap(View* view, MapHandlerGen* map, bool fromUI = false);
void changePositionAttribute(View* view, MapHandlerGen* map, VertexAttribute<PFP2::VEC3> attribute, bool fromUI = false); void changePositionAttribute(View* view, MapHandlerGen* map, VertexAttribute<PFP2::VEC3> attribute, bool fromUI = false);
void changeDrawDarts(View* view, MapHandlerGen* map, bool b, bool fromUI = false); void changeDrawDarts(View* view, MapHandlerGen* map, bool b, bool fromUI = false);
void changeDartsColor(View* view, MapHandlerGen* map, QColor c, bool fromUI = false);
void changeDrawPhi1(View* view, MapHandlerGen* map, bool b, bool fromUI = false); void changeDrawPhi1(View* view, MapHandlerGen* map, bool b, bool fromUI = false);
void changePhi1Color(View* view, MapHandlerGen* map, QColor c, bool fromUI = false);
void changeDrawPhi2(View* view, MapHandlerGen* map, bool b, bool fromUI = false); void changeDrawPhi2(View* view, MapHandlerGen* map, bool b, bool fromUI = false);
void changePhi2Color(View* view, MapHandlerGen* map, QColor c, bool fromUI = false);
void changeEdgesScaleFactor(View* view, MapHandlerGen* map, int i, bool fromUI = false); void changeEdgesScaleFactor(View* view, MapHandlerGen* map, int i, bool fromUI = false);
void changeFacesScaleFactor(View* view, MapHandlerGen* map, int i, bool fromUI = false); void changeFacesScaleFactor(View* view, MapHandlerGen* map, int i, bool fromUI = false);
......
...@@ -32,8 +32,11 @@ public slots: ...@@ -32,8 +32,11 @@ public slots:
void selectedMapChanged(); void selectedMapChanged();
void positionAttributeChanged(int index); void positionAttributeChanged(int index);
void drawDartsChanged(bool b); void drawDartsChanged(bool b);
void dartsColorChanged(int);
void drawPhi1Changed(bool b); void drawPhi1Changed(bool b);
void phi1ColorChanged(int);
void drawPhi2Changed(bool b); void drawPhi2Changed(bool b);
void phi2ColorChanged(int);
void edgesScaleFactorChanged(int i); void edgesScaleFactorChanged(int i);
void facesScaleFactorChanged(int i); void facesScaleFactorChanged(int i);
void addAttributeToList(unsigned int orbit, const QString& nameAttr); void addAttributeToList(unsigned int orbit, const QString& nameAttr);
......
...@@ -11,8 +11,11 @@ namespace SCHNApps ...@@ -11,8 +11,11 @@ namespace SCHNApps
PerMapParameterSet::PerMapParameterSet(MapHandlerGen* m) : PerMapParameterSet::PerMapParameterSet(MapHandlerGen* m) :
mh(m), mh(m),
drawDarts(true), drawDarts(true),
dartsColor("white"),
drawPhi1(true), drawPhi1(true),
phi1Color("cyan"),
drawPhi2(true), drawPhi2(true),
phi2Color("red"),
edgesScaleFactor(1.0f), edgesScaleFactor(1.0f),
facesScaleFactor(1.0f) facesScaleFactor(1.0f)
{ {
...@@ -223,6 +226,22 @@ void RenderTopoSurfacePlugin::changeDrawDarts(View* view, MapHandlerGen* map, bo ...@@ -223,6 +226,22 @@ void RenderTopoSurfacePlugin::changeDrawDarts(View* view, MapHandlerGen* map, bo
} }
} }
void RenderTopoSurfacePlugin::changeDartsColor(View* view, MapHandlerGen* map, QColor c, bool fromUI)
{
ParameterSet* params = h_viewParams[view];
PerMapParameterSet* perMap = params->perMap[map->getName()];
perMap->dartsColor = c;
perMap->m_renderTopo->setInitialDartsColor(c.redF(), c.greenF(), c.blueF());
perMap->m_renderTopo->setAllDartsColor(c.redF(), c.greenF(), c.blueF());
if(view->isCurrentView())
{
if(!fromUI)
m_dockTab->refreshUI(params);
view->updateGL();
}
}
void RenderTopoSurfacePlugin::changeDrawPhi1(View* view, MapHandlerGen* map, bool b, bool fromUI) void RenderTopoSurfacePlugin::changeDrawPhi1(View* view, MapHandlerGen* map, bool b, bool fromUI)
{ {
ParameterSet* params = h_viewParams[view]; ParameterSet* params = h_viewParams[view];
...@@ -236,6 +255,19 @@ void RenderTopoSurfacePlugin::changeDrawPhi1(View* view, MapHandlerGen* map, boo ...@@ -236,6 +255,19 @@ void RenderTopoSurfacePlugin::changeDrawPhi1(View* view, MapHandlerGen* map, boo
} }
} }
void RenderTopoSurfacePlugin::changePhi1Color(View* view, MapHandlerGen* map, QColor c, bool fromUI)
{
ParameterSet* params = h_viewParams[view];
params->perMap[map->getName()]->phi1Color = c;
if(view->isCurrentView())
{
if(!fromUI)
m_dockTab->refreshUI(params);
view->updateGL();
}
}
void RenderTopoSurfacePlugin::changeDrawPhi2(View* view, MapHandlerGen* map, bool b, bool fromUI) void RenderTopoSurfacePlugin::changeDrawPhi2(View* view, MapHandlerGen* map, bool b, bool fromUI)
{ {
ParameterSet* params = h_viewParams[view]; ParameterSet* params = h_viewParams[view];
...@@ -249,11 +281,24 @@ void RenderTopoSurfacePlugin::changeDrawPhi2(View* view, MapHandlerGen* map, boo ...@@ -249,11 +281,24 @@ void RenderTopoSurfacePlugin::changeDrawPhi2(View* view, MapHandlerGen* map, boo
} }
} }
void RenderTopoSurfacePlugin::changePhi2Color(View* view, MapHandlerGen* map, QColor c, bool fromUI)
{
ParameterSet* params = h_viewParams[view];
params->perMap[map->getName()]->phi2Color = c;
if(view->isCurrentView())
{
if(!fromUI)
m_dockTab->refreshUI(params);
view->updateGL();
}
}
void RenderTopoSurfacePlugin::changeEdgesScaleFactor(View* view, MapHandlerGen* map, int i, bool fromUI) void RenderTopoSurfacePlugin::changeEdgesScaleFactor(View* view, MapHandlerGen* map, int i, bool fromUI)
{ {
ParameterSet* params = h_viewParams[view]; ParameterSet* params = h_viewParams[view];
PerMapParameterSet* perMap = params->perMap[map->getName()]; PerMapParameterSet* perMap = params->perMap[map->getName()];
perMap->edgesScaleFactor = i / 50.0; perMap->edgesScaleFactor = i / 100.0;
perMap->updateRender(); perMap->updateRender();
if(view->isCurrentView()) if(view->isCurrentView())
...@@ -268,7 +313,7 @@ void RenderTopoSurfacePlugin::changeFacesScaleFactor(View* view, MapHandlerGen* ...@@ -268,7 +313,7 @@ void RenderTopoSurfacePlugin::changeFacesScaleFactor(View* view, MapHandlerGen*
{ {
ParameterSet* params = h_viewParams[view]; ParameterSet* params = h_viewParams[view];
PerMapParameterSet* perMap = params->perMap[map->getName()]; PerMapParameterSet* perMap = params->perMap[map->getName()];
perMap->facesScaleFactor = i / 50.0; perMap->facesScaleFactor = i / 100.0;
perMap->updateRender(); perMap->updateRender();
if(view->isCurrentView()) if(view->isCurrentView())
......
...@@ -20,8 +20,11 @@ RenderTopoSurfaceDockTab::RenderTopoSurfaceDockTab(Window* w, RenderTopoSurfaceP ...@@ -20,8 +20,11 @@ RenderTopoSurfaceDockTab::RenderTopoSurfaceDockTab(Window* w, RenderTopoSurfaceP
connect(mapList, SIGNAL(itemSelectionChanged()), this, SLOT(selectedMapChanged())); connect(mapList, SIGNAL(itemSelectionChanged()), this, SLOT(selectedMapChanged()));
connect(combo_positionAttribute, SIGNAL(currentIndexChanged(int)), this, SLOT(positionAttributeChanged(int))); connect(combo_positionAttribute, SIGNAL(currentIndexChanged(int)), this, SLOT(positionAttributeChanged(int)));
connect(check_drawDarts, SIGNAL(toggled(bool)), this, SLOT(drawDartsChanged(bool))); connect(check_drawDarts, SIGNAL(toggled(bool)), this, SLOT(drawDartsChanged(bool)));
connect(combo_dartsColor, SIGNAL(currentIndexChanged(int)), this, SLOT(dartsColorChanged(int)));
connect(check_drawPhi1, SIGNAL(toggled(bool)), this, SLOT(drawPhi1Changed(bool))); connect(check_drawPhi1, SIGNAL(toggled(bool)), this, SLOT(drawPhi1Changed(bool)));
connect(combo_phi1Color, SIGNAL(currentIndexChanged(int)), this, SLOT(phi1ColorChanged(int)));
connect(check_drawPhi2, SIGNAL(toggled(bool)), this, SLOT(drawPhi2Changed(bool))); connect(check_drawPhi2, SIGNAL(toggled(bool)), this, SLOT(drawPhi2Changed(bool)));
connect(combo_phi2Color, SIGNAL(currentIndexChanged(int)), this, SLOT(phi2ColorChanged(int)));
connect(slider_edgesScaleFactor, SIGNAL(valueChanged(int)), this, SLOT(edgesScaleFactorChanged(int))); connect(slider_edgesScaleFactor, SIGNAL(valueChanged(int)), this, SLOT(edgesScaleFactorChanged(int)));
connect(slider_facesScaleFactor, SIGNAL(valueChanged(int)), this, SLOT(facesScaleFactorChanged(int))); connect(slider_facesScaleFactor, SIGNAL(valueChanged(int)), this, SLOT(facesScaleFactorChanged(int)));
} }
...@@ -65,10 +68,13 @@ void RenderTopoSurfaceDockTab::refreshUI(ParameterSet* params) ...@@ -65,10 +68,13 @@ void RenderTopoSurfaceDockTab::refreshUI(ParameterSet* params)
} }
check_drawDarts->setChecked(p->drawDarts); check_drawDarts->setChecked(p->drawDarts);
combo_dartsColor->setColor(p->dartsColor);
check_drawPhi1->setChecked(p->drawPhi1); check_drawPhi1->setChecked(p->drawPhi1);
combo_phi1Color->setColor(p->phi1Color);
check_drawPhi2->setChecked(p->drawPhi2); check_drawPhi2->setChecked(p->drawPhi2);
slider_edgesScaleFactor->setSliderPosition(p->edgesScaleFactor * 50.0); combo_phi2Color->setColor(p->phi2Color);
slider_facesScaleFactor->setSliderPosition(p->facesScaleFactor * 50.0); slider_edgesScaleFactor->setSliderPosition(p->edgesScaleFactor * 100.0);
slider_facesScaleFactor->setSliderPosition(p->facesScaleFactor * 100.0);
} }
++i; ++i;
} }
...@@ -106,6 +112,16 @@ void RenderTopoSurfaceDockTab::drawDartsChanged(bool b) ...@@ -106,6 +112,16 @@ void RenderTopoSurfaceDockTab::drawDartsChanged(bool b)
} }
} }
void RenderTopoSurfaceDockTab::dartsColorChanged(int i)
{
if(!b_refreshingUI)
{
View* view = m_window->getCurrentView();
MapHandlerGen* map = m_currentParams->selectedMap;
m_plugin->changeDartsColor(view, map, combo_dartsColor->color(), true);
}
}
void RenderTopoSurfaceDockTab::drawPhi1Changed(bool b) void RenderTopoSurfaceDockTab::drawPhi1Changed(bool b)
{ {
if(!b_refreshingUI) if(!b_refreshingUI)
...@@ -116,6 +132,16 @@ void RenderTopoSurfaceDockTab::drawPhi1Changed(bool b) ...@@ -116,6 +132,16 @@ void RenderTopoSurfaceDockTab::drawPhi1Changed(bool b)
} }
} }
void RenderTopoSurfaceDockTab::phi1ColorChanged(int i)
{
if(!b_refreshingUI)
{
View* view = m_window->getCurrentView();
MapHandlerGen* map = m_currentParams->selectedMap;
m_plugin->changePhi1Color(view, map, combo_phi1Color->color(), true);
}
}
void RenderTopoSurfaceDockTab::drawPhi2Changed(bool b) void RenderTopoSurfaceDockTab::drawPhi2Changed(bool b)
{ {
if(!b_refreshingUI) if(!b_refreshingUI)
...@@ -126,6 +152,16 @@ void RenderTopoSurfaceDockTab::drawPhi2Changed(bool b) ...@@ -126,6 +152,16 @@ void RenderTopoSurfaceDockTab::drawPhi2Changed(bool b)
} }
} }
void RenderTopoSurfaceDockTab::phi2ColorChanged(int i)
{
if(!b_refreshingUI)
{
View* view = m_window->getCurrentView();
MapHandlerGen* map = m_currentParams->selectedMap;
m_plugin->changePhi2Color(view, map, combo_phi2Color->color(), true);
}
}
void RenderTopoSurfaceDockTab::facesScaleFactorChanged(int i) void RenderTopoSurfaceDockTab::facesScaleFactorChanged(int i)
{ {
if(!b_refreshingUI) if(!b_refreshingUI)
......
importPlugin = schnapps.loadPlugin("ImportSurface"); importPlugin = schnapps.loadPlugin("ImportSurface");
renderPlugin = schnapps.loadPlugin("Render"); renderPlugin = schnapps.loadPlugin("Render");
renderVectorPlugin = schnapps.loadPlugin("RenderVector"); renderVectorPlugin = schnapps.loadPlugin("RenderVector");
renderTopoSurfacePlugin = schnapps.loadPlugin("RenderTopoSurfaceD"); renderTopoSurfacePlugin = schnapps.loadPlugin("RenderTopoSurface"