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

kig

calcpaths.h File Reference

#include "../objects/common.h"

Include dependency graph for calcpaths.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Functions

std::vector< ObjectCalcer * > calcPath (const std::vector< ObjectCalcer * > &from, const ObjectCalcer *to)
std::vector< ObjectCalcer * > calcPath (const std::vector< ObjectCalcer * > &os)
std::set< ObjectCalcer * > getAllChildren (ObjectCalcer *obj)
std::set< ObjectCalcer * > getAllChildren (const std::vector< ObjectCalcer * > objs)
std::vector< ObjectCalcer * > getAllParents (ObjectCalcer *obj)
std::vector< ObjectCalcer * > getAllParents (const std::vector< ObjectCalcer * > &objs)
bool isChild (const ObjectCalcer *o, ObjectCalcer *op)
bool isChild (const ObjectCalcer *o, const std::vector< ObjectCalcer * > &os)
bool isPointOnCurve (const ObjectCalcer *point, const ObjectCalcer *curve)
std::vector< ObjectCalcer * > sideOfTreePath (const std::vector< ObjectCalcer * > &from, const ObjectCalcer *to)

Function Documentation

std::vector<ObjectCalcer*> calcPath ( const std::vector< ObjectCalcer * > &  from,
const ObjectCalcer *  to 
)

This is a different function for more or less the same purpose.

It takes a few Objects, which are considered to have been calced already. Then, it puts the necessary part of their children in the right order, so that calc()-ing correctly updates all of their data ( they're calc'ed in the right order, i mean... ). The objects in from are normally not included in the output, unless they appear somewhere in the middle of the calc-path towards to ...

Definition at line 159 of file calcpaths.cc.

std::vector<ObjectCalcer*> calcPath ( const std::vector< ObjectCalcer * > &  os  ) 

This function sorts os such that they're in the right order for calc()-ing.

This means that child objects must appear after their parents ( for you graph people, this is just a topological sort.. )

Definition at line 48 of file calcpaths.cc.

std::set<ObjectCalcer*> getAllChildren ( ObjectCalcer *  obj  ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 278 of file calcpaths.cc.

std::set<ObjectCalcer*> getAllChildren ( const std::vector< ObjectCalcer * >  objs  ) 

This function returns all objects below the objects in objs in the dependency graphy.

The objects in objs are also included themselves..

Definition at line 285 of file calcpaths.cc.

std::vector<ObjectCalcer*> getAllParents ( ObjectCalcer *  obj  ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 246 of file calcpaths.cc.

std::vector<ObjectCalcer*> getAllParents ( const std::vector< ObjectCalcer * > &  objs  ) 

This function returns all objects above the given in the dependency graph.

The given objects objs are also included themselves..

Definition at line 226 of file calcpaths.cc.

bool isChild ( const ObjectCalcer *  o,
ObjectCalcer *  op 
)

Definition at line 253 of file calcpaths.cc.

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 at line 260 of file calcpaths.cc.

bool isPointOnCurve ( const ObjectCalcer *  point,
const ObjectCalcer *  curve 
)

Return true if the given point is ( by construction ) on the given curve.

This means that it is either a constrained point on the curve, or the curve is constructed through the point, or the point is an intersection point of the curve with another curve. Note that it is assumed that the given point is in fact a point and the given curve is in fact a curve.

Definition at line 306 of file calcpaths.cc.

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 to to .

This means that we look for any objects that don't depend on any of the objects in from themselves, but of which one of the direct children does. We need this function for Locus stuff...

Definition at line 219 of file calcpaths.cc.

kig

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal