Add initial class

This commit is contained in:
Shai Seger
2017-10-17 23:33:48 +03:00
committed by Yorik van Havre
parent 84798a6aa6
commit 2f786d2287
6 changed files with 114 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (c) YEAR YOUR NAME <Your e-mail address> *
* Copyright (c) 2017 Shai Seger <shaise at gmail> *
* *
* This file is part of the FreeCAD CAx development system. *
* *

View File

@@ -13,6 +13,8 @@ set(PathSimulator_LIBS
SET(PathSimulator_SRCS
AppPathSimulator.cpp
PathSimulator.cpp
PathSimulator.h
PreCompiled.cpp
PreCompiled.h
)
@@ -22,11 +24,11 @@ target_link_libraries(PathSimulator ${PathSimulator_LIBS})
fc_target_copy_resource(PathSimulator
${CMAKE_SOURCE_DIR}/src/Mod/PathSimulator
${CMAKE_BINARY_DIR}/Mod/PathSimulator
${CMAKE_SOURCE_DIR}/src/Mod/Path/PathSimulator
${CMAKE_BINARY_DIR}/Mod/Path/PathSimulator
Init.py)
SET_BIN_DIR(PathSimulator PathSimulator /Mod/PathSimulator)
SET_BIN_DIR(PathSimulator PathSimulator /Mod/Path/PathSimulator)
SET_PYTHON_PREFIX_SUFFIX(PathSimulator)
install(TARGETS PathSimulator DESTINATION ${CMAKE_INSTALL_LIBDIR})

View File

@@ -0,0 +1,53 @@
/***************************************************************************
* Copyright (c) Shsi Seger (shaise at gmail) 2017 *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include <boost/regex.hpp>
#include <Base/Writer.h>
#include <Base/Reader.h>
#include <Base/Stream.h>
#include <Base/Exception.h>
// KDL stuff - at the moment, not used
//#include "Mod/Robot/App/kdl_cp/path_line.hpp"
//#include "Mod/Robot/App/kdl_cp/path_circle.hpp"
//#include "Mod/Robot/App/kdl_cp/rotational_interpolation_sa.hpp"
//#include "Mod/Robot/App/kdl_cp/utilities/error.h"
#include "PathSimulator.h"
using namespace Path;
using namespace Base;
TYPESYSTEM_SOURCE(Path::PathSimulator , Base::Persistence);

View File

@@ -0,0 +1,53 @@
/***************************************************************************
* Copyright (c) Shsi Seger (shaise at gmail) 2017 *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#ifndef PATH_PathSimulator_H
#define PATH_PathSimulator_H
#include <Base/Persistence.h>
#include <Base/Vector3D.h>
namespace Path
{
/** The representation of a CNC Toolpath Simulator */
class PathSimulatorAppExport PathSimulator : public Base::Persistence
{
TYPESYSTEM_HEADER();
public:
PathSimulator() {};
~PathSimulator() {};
virtual unsigned int getMemSize(void) const {
return 0;
};
virtual void Save(Base::Writer &/*writer*/) const {};
virtual void Restore(Base::XMLReader &/*reader*/) {};
};
} //namespace Path
#endif // PATH_PathSimulator_H

View File

@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (c) YEAR YOUR NAME <Your e-mail address> *
* Copyright (c) 2017 Shai Seger <shaise at gmail> *
* *
* This file is part of the FreeCAD CAx development system. *
* *

View File

@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (c) YEAR YOUR NAME <Your e-mail address> *
* Copyright (c) 2017 Shai Seger <shaise at gmail> *
* *
* This file is part of the FreeCAD CAx development system. *
* *