Add initial class
This commit is contained in:
committed by
Yorik van Havre
parent
84798a6aa6
commit
2f786d2287
@@ -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. *
|
||||
* *
|
||||
|
||||
@@ -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})
|
||||
|
||||
53
src/Mod/Path/PathSimulator/App/PathSimulator.cpp
Normal file
53
src/Mod/Path/PathSimulator/App/PathSimulator.cpp
Normal 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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
53
src/Mod/Path/PathSimulator/App/PathSimulator.h
Normal file
53
src/Mod/Path/PathSimulator/App/PathSimulator.h
Normal 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
|
||||
@@ -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. *
|
||||
* *
|
||||
|
||||
@@ -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. *
|
||||
* *
|
||||
|
||||
Reference in New Issue
Block a user