+ implement save() function in PointKernel, fix icon issue in mesh workbench

This commit is contained in:
wmayer
2014-08-06 17:39:15 +02:00
parent 0c2d201396
commit bd64ce3bb7
3 changed files with 7 additions and 33 deletions

View File

@@ -634,7 +634,7 @@ void CmdMeshVertexCurvatureInfo::activated(int iMsg)
Gui::View3DInventorViewer* viewer = view->getViewer();
viewer->setEditing(true);
viewer->setRedirectToSceneGraph(true);
viewer->setEditingCursor(QCursor(Gui::BitmapFactory().pixmap("mesh_pipette"),4,29));
viewer->setEditingCursor(QCursor(Gui::BitmapFactory().pixmapFromSvg("mesh_pipette",QSize(32,32)),4,29));
viewer->addEventCallback(SoEvent::getClassTypeId(),
MeshGui::ViewProviderMeshCurvature::curvatureInfoCallback);
}

View File

@@ -149,8 +149,8 @@ void PointKernel::RestoreDocFile(Base::Reader &reader)
void PointKernel::save(const char* file) const
{
//MeshCore::MeshOutput aWriter(_kernel);
//aWriter.SaveAny(file);
Base::ofstream out(file, std::ios::out);
save(out);
}
void PointKernel::load(const char* file)
@@ -160,7 +160,10 @@ void PointKernel::load(const char* file)
void PointKernel::save(std::ostream& out) const
{
//kernel.Write(out);
out << "# ASCII" << std::endl;
for (std::vector<value_type>::const_iterator it = _Points.begin(); it != _Points.end(); ++it) {
out << it->x << " " << it->y << " " << it->z << std::endl;
}
}
void PointKernel::getFaces(std::vector<Base::Vector3d> &Points,std::vector<Facet> &Topo,

View File

@@ -1,29 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual C++ Express 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AppSandbox", "App\AppSandbox.vcproj", "{567E0DD4-DC09-4736-8332-BF1901AB5F5A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AppSandboxGui", "Gui\AppSandboxGui.vcproj", "{3BC653E4-F874-4605-8ACF-4F5996FD08C9}"
ProjectSection(ProjectDependencies) = postProject
{567E0DD4-DC09-4736-8332-BF1901AB5F5A} = {567E0DD4-DC09-4736-8332-BF1901AB5F5A}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{567E0DD4-DC09-4736-8332-BF1901AB5F5A}.Debug|Win32.ActiveCfg = Debug|Win32
{567E0DD4-DC09-4736-8332-BF1901AB5F5A}.Debug|Win32.Build.0 = Debug|Win32
{567E0DD4-DC09-4736-8332-BF1901AB5F5A}.Release|Win32.ActiveCfg = Release|Win32
{567E0DD4-DC09-4736-8332-BF1901AB5F5A}.Release|Win32.Build.0 = Release|Win32
{3BC653E4-F874-4605-8ACF-4F5996FD08C9}.Debug|Win32.ActiveCfg = Debug|Win32
{3BC653E4-F874-4605-8ACF-4F5996FD08C9}.Debug|Win32.Build.0 = Debug|Win32
{3BC653E4-F874-4605-8ACF-4F5996FD08C9}.Release|Win32.ActiveCfg = Release|Win32
{3BC653E4-F874-4605-8ACF-4F5996FD08C9}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal