Lumiera  0.pre.03
»edityourfreedom«
fixedlocation.cpp
Go to the documentation of this file.
1 /*
2  FixedLocation - directly positioning a MObject to a fixed location
3 
4  Copyright (C) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 * *****************************************************/
22 
23 
31 
32 namespace proc {
33 namespace mobject {
34 namespace session {
35 
36 
37  FixedLocation*
39  {
40  return new FixedLocation (*this);
41  }
42 
43 
45  void
47  {
48  LocatingPin::intersect (solution);
49 
50  TODO ("either set position or make overconstrained");
51  if (solution.minTime <= this->time_)
52  solution.minTime = this->time_;
53  else
54  solution.impo = true;
55  if (solution.maxTime >= this->time_)
56  solution.maxTime = this->time_;
57  else
58  solution.impo = true;
59  }
60 
61 
62 
63 }}} // namespace proc::mobject::session
virtual void intersect(LocatingSolution &) const
virtual void intersect(LocatingSolution &) const
virtual FixedLocation * clone() const
Specialised LocatingPin for use in Placement, especially for globally fixed positions The FixedLocati...
Namespace of Session and user visible high-level objects.
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63