• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

step/stepcore

  • sources
  • kde-4.12
  • kdeedu
  • step
  • stepcore
constraintsolver.h
Go to the documentation of this file.
1 /* This file is part of StepCore library.
2  Copyright (C) 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com>
3 
4  StepCore library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  StepCore library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with StepCore; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
23 #ifndef STEPCORE_CONSTRAINTSOLVER_H
24 #define STEPCORE_CONSTRAINTSOLVER_H
25 
26 #include "object.h"
27 #include "world.h"
28 #include "vector.h"
29 #include "types.h"
30 #include "solver.h"
31 
32 namespace StepCore
33 {
34 
40 class ConstraintSolver: public Object
41 {
42  STEPCORE_OBJECT(ConstraintSolver)
43 
44 public:
45  virtual int solve(ConstraintsInfo* info) = 0;
46 
47 public:
48  enum {
49  InternalError = Solver::ConstraintError
50  };
51 };
52 
53 class CGConstraintSolver: public ConstraintSolver
54 {
55  STEPCORE_OBJECT(CGConstraintSolver)
56 
57 public:
58  int solve(ConstraintsInfo* info);
59 };
60 
61 } // namespace StepCore
62 
63 #endif
64 
types.h
Type to and from string convertion helpers.
StepCore::ConstraintSolver::solve
virtual int solve(ConstraintsInfo *info)=0
StepCore::Object
Root of the StepCore classes hierarchy.
Definition: object.h:57
world.h
Item, Body, Force and Tool interfaces, World class.
StepCore::CGConstraintSolver
Definition: constraintsolver.h:53
StepCore::CGConstraintSolver::solve
int solve(ConstraintsInfo *info)
Definition: constraintsolver.cc:38
solver.h
Solver interface.
object.h
Object, MetaObject and MetaProperty classes.
vector.h
StepCore::ConstraintSolver
Constraint solver interface.
Definition: constraintsolver.h:40
STEPCORE_OBJECT
#define STEPCORE_OBJECT(_className)
Definition: object.h:49
StepCore::ConstraintSolver::InternalError
Definition: constraintsolver.h:49
StepCore::Solver::ConstraintError
Definition: solver.h:149
StepCore::ConstraintsInfo
Constraints information structure XXX: Move it to constraintsolver.h.
Definition: world.h:216
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal