Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #517 implementation: naming of sketch elements now independent on feature sketc...
[modules/shaper.git]
/
src
/
SketchSolver
/
SketchSolver_Solver.h
diff --git
a/src/SketchSolver/SketchSolver_Solver.h
b/src/SketchSolver/SketchSolver_Solver.h
index 8a4f9964e95a7795389fc3563c538b99a22c91d2..46e83afd0bf8f6b9eaffdbab6f8bccde08cde368 100644
(file)
--- a/
src/SketchSolver/SketchSolver_Solver.h
+++ b/
src/SketchSolver/SketchSolver_Solver.h
@@
-1,9
+1,11
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: SketchSolver_Solver.h
// Created: 07 May 2014
// Author: Artem ZHIDKOV
// File: SketchSolver_Solver.h
// Created: 07 May 2014
// Author: Artem ZHIDKOV
-#ifndef SketchSolver_Solver_H
eaderfile
-#define SketchSolver_Solver_H
eaderfile
+#ifndef SketchSolver_Solver_H
_
+#define SketchSolver_Solver_H
_
#include "SketchSolver.h"
#include "SketchSolver.h"
@@
-18,46
+20,60
@@
typedef unsigned int UINT32;
#include <vector>
#include <vector>
-
#define SLVS_RESULT_EMPTY_SET -1
// Unknown constraint (for error reporting)
#define SLVS_C_UNKNOWN 0
#define SLVS_RESULT_EMPTY_SET -1
// Unknown constraint (for error reporting)
#define SLVS_C_UNKNOWN 0
+// Fillet constraint identifier
+#define SLVS_C_FILLET 100100
+// Multi-rotation constraint identifier
+#define SLVS_C_MULTI_ROTATION 100101
+// Multi-translation constraint identifier
+#define SLVS_C_MULTI_TRANSLATION 100102
// Unknown entity
#define SLVS_E_UNKNOWN 0
// Unknown entity
#define SLVS_E_UNKNOWN 0
+// Unknown group
+#define SLVS_G_UNKNOWN 0
-
+/**
+ * The main class that performs the high-level operations for connection to the SolveSpace.
+ */
class SketchSolver_Solver
{
class SketchSolver_Solver
{
-public:
+
public:
SketchSolver_Solver();
~SketchSolver_Solver();
/** \brief Initialize the ID of the group
*/
inline void setGroupID(Slvs_hGroup theGroupID)
SketchSolver_Solver();
~SketchSolver_Solver();
/** \brief Initialize the ID of the group
*/
inline void setGroupID(Slvs_hGroup theGroupID)
- { myGroupID = theGroupID; }
+ {
+ myGroupID = theGroupID;
+ }
/** \brief Change array of parameters
/** \brief Change array of parameters
- * \param[in] theParameters vector of parameters
+ * \param[in] theParameters pointer to the array of parameters
+ * \param[in] theSize size of this array
*/
*/
- void setParameters(
const std::vector<Slvs_Param>& theParameters
);
+ void setParameters(
Slvs_Param* theParameters, int theSize
);
/** \brief Change array of entities
/** \brief Change array of entities
- * \param[in] theEntities vector of entities
+ * \param[in] theEntities pointer to the array of entities
+ * \param[in] theSize size of this array
*/
*/
- void setEntities(
const std::vector<Slvs_Entity>& theEntities
);
+ void setEntities(
Slvs_Entity* theEntities, int theSize
);
/** \brief Change array of constraints
/** \brief Change array of constraints
- * \param[in] theConstraints vector of constraints
+ * \param[in] theConstraints pointer to the array of constraints
+ * \param[in] theSize size of this array
*/
*/
- void setConstraints(
const std::vector<Slvs_Constraint>& theConstraints
);
+ void setConstraints(
Slvs_Constraint* theConstraints, int theSize
);
/** \brief Store the parameters of the point which was moved by user.
* The solver will watch this items to be constant
* \param[in] theDragged list of parameters (not more than 4) which should not be changed during solving
*/
/** \brief Store the parameters of the point which was moved by user.
* The solver will watch this items to be constant
* \param[in] theDragged list of parameters (not more than 4) which should not be changed during solving
*/
- void setDraggedParameters(const
std::vector<Slvs_hParam>&
theDragged);
+ void setDraggedParameters(const
Slvs_hParam*
theDragged);
/** \brief Solve the set of equations
* \return identifier whether solution succeeded
/** \brief Solve the set of equations
* \return identifier whether solution succeeded
@@
-70,9
+86,9
@@
public:
*/
bool getResult(std::vector<Slvs_Param>& theParameters);
*/
bool getResult(std::vector<Slvs_Param>& theParameters);
-private:
+
private:
Slvs_hGroup myGroupID; ///< identifier of the group to be solved
Slvs_hGroup myGroupID; ///< identifier of the group to be solved
- Slvs_System myEquationsSystem; ///< set of equations for solving in SolveSpace
+ Slvs_System myEquationsSystem;
///< set of equations for solving in SolveSpace
};
#endif
};
#endif