Lumiera  0.pre.03
»edit your freedom«
fixedlocation.cpp
Go to the documentation of this file.
1 /*
2  FixedLocation - directly positioning a MObject to a fixed location
3 
4  Copyright (C)
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
14 
22 
23 namespace steam {
24 namespace mobject {
25 namespace session {
26 
27 
28  FixedLocation*
29  FixedLocation::clone () const
30  {
31  return new FixedLocation (*this);
32  }
33 
34 
36  void
37  FixedLocation::intersect (LocatingSolution& solution) const
38  {
39  LocatingPin::intersect (solution);
40 
41  TODO ("either set position or make overconstrained");
42  if (solution.minTime <= this->time_)
43  solution.minTime = this->time_;
44  else
45  solution.impo = true;
46  if (solution.maxTime >= this->time_)
47  solution.maxTime = this->time_;
48  else
49  solution.impo = true;
50  }
51 
52 
53 
54 }}} // namespace steam::mobject::session
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
Specialised LocatingPin for use in Placement, especially for globally fixed positions The FixedLocati...