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

kig

  • sources
  • kde-4.12
  • kdeedu
  • kig
  • misc
calcpaths.h
Go to the documentation of this file.
1 // Copyright (C) 2002 Dominique Devriese <devriese@kde.org>
2 
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
7 
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 // 02110-1301, USA.
17 
18 #ifndef KIG_MISC_CALCPATHS_H
19 #define KIG_MISC_CALCPATHS_H
20 
21 #include "../objects/common.h"
22 
28 std::vector<ObjectCalcer*> calcPath( const std::vector<ObjectCalcer*>& os );
29 
39 std::vector<ObjectCalcer*> calcPath( const std::vector<ObjectCalcer*>& from, const ObjectCalcer* to );
40 
48 std::vector<ObjectCalcer*> sideOfTreePath( const std::vector<ObjectCalcer*>& from, const ObjectCalcer* to );
49 
55 std::vector<ObjectCalcer*> getAllParents( const std::vector<ObjectCalcer*>& objs );
59 std::vector<ObjectCalcer*> getAllParents( ObjectCalcer* obj );
60 
66 std::set<ObjectCalcer*> getAllChildren( const std::vector<ObjectCalcer*> objs );
67 
71 std::set<ObjectCalcer*> getAllChildren( ObjectCalcer* obj );
72 
76 bool isChild( const ObjectCalcer* o, const std::vector<ObjectCalcer*>& os );
77 bool isChild( const ObjectCalcer* o, ObjectCalcer* op );
78 
87 bool isPointOnCurve( const ObjectCalcer* point, const ObjectCalcer* curve );
88 
89 #endif
sideOfTreePath
std::vector< ObjectCalcer * > sideOfTreePath(const std::vector< ObjectCalcer * > &from, const ObjectCalcer *to)
This function returns all objects on the side of the path through the dependency tree from from down ...
Definition: calcpaths.cc:222
getAllParents
std::vector< ObjectCalcer * > getAllParents(const std::vector< ObjectCalcer * > &objs)
This function returns all objects above the given in the dependency graph.
Definition: calcpaths.cc:229
isChild
bool isChild(const ObjectCalcer *o, const std::vector< ObjectCalcer * > &os)
Returns true if o is a descendant of any of the objects in os.
Definition: calcpaths.cc:263
calcPath
std::vector< ObjectCalcer * > calcPath(const std::vector< ObjectCalcer * > &os)
This function sorts os such that they're in the right order for calc()-ing.
Definition: calcpaths.cc:48
ObjectCalcer
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
isPointOnCurve
bool isPointOnCurve(const ObjectCalcer *point, const ObjectCalcer *curve)
Return true if the given point is ( by construction ) on the given curve.
Definition: calcpaths.cc:309
getAllChildren
std::set< ObjectCalcer * > getAllChildren(const std::vector< ObjectCalcer * > objs)
This function returns all objects below the objects in objs in the dependency graphy.
Definition: calcpaths.cc:288
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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