2012-02-04 00:52:28 +01:00
|
|
|
/*
|
|
|
|
|
TIME-ANCHOR.hpp - current render evaluation time point closure
|
|
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2012, Hermann Vosseler <Ichthyostega@web.de>
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef PROC_ENGINE_TIME_ANCHOR_H
|
|
|
|
|
#define PROC_ENGINE_TIME_ANCHOR_H
|
|
|
|
|
|
|
|
|
|
#include "proc/common.hpp"
|
|
|
|
|
//#include "proc/state.hpp"
|
|
|
|
|
#include "lib/time/timevalue.hpp"
|
2012-02-09 22:24:05 +01:00
|
|
|
#include "proc/play/timings.hpp"
|
2012-02-04 00:52:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace proc {
|
|
|
|
|
namespace engine {
|
|
|
|
|
|
2012-02-09 22:24:05 +01:00
|
|
|
// using lib::time::TimeSpan;
|
|
|
|
|
// using lib::time::FSecs;
|
2012-02-24 00:29:59 +01:00
|
|
|
using lib::time::Time;
|
2012-02-04 00:52:28 +01:00
|
|
|
//
|
|
|
|
|
// class ExitNode;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The process of playback or rendering is a continued series of
|
|
|
|
|
* exploration and evaluation. The outline of what needs to be calculated
|
|
|
|
|
* is determined continuously, proceeding in chunks of evaluation.
|
|
|
|
|
* Each of these continued partial evaluations establishes a distinct
|
|
|
|
|
* anchor or breaking point in time: everything before this point
|
|
|
|
|
* is settled and planned thus far. Effectively, this time point
|
|
|
|
|
* acts as a <i>evaluation closure</i>, to be picked up on the
|
|
|
|
|
* next partial evaluation. More specifically, the TimeAnchor
|
|
|
|
|
* closure is the definitive binding between the abstract
|
|
|
|
|
* logical time of the session timeline, and the real
|
|
|
|
|
* wall-clock time forming the deadline for rendering.
|
|
|
|
|
*
|
|
|
|
|
* @todo 1/12 WIP-WIP-WIP just emerging as a concept
|
|
|
|
|
*/
|
|
|
|
|
class TimeAnchor
|
|
|
|
|
{
|
2012-02-24 00:29:59 +01:00
|
|
|
///////////////////////////TODO need some kind of scale or grid here
|
|
|
|
|
uint64_t anchorPoint_;
|
|
|
|
|
Time relatedRealTime_;
|
2012-02-04 00:52:28 +01:00
|
|
|
|
|
|
|
|
TimeAnchor()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED ("anything regarding the Engine backbone");
|
|
|
|
|
}
|
|
|
|
|
|
2012-02-09 22:24:05 +01:00
|
|
|
public:
|
2012-02-04 00:52:28 +01:00
|
|
|
// using default copy operations
|
2012-02-09 22:24:05 +01:00
|
|
|
|
|
|
|
|
static TimeAnchor
|
2012-02-24 00:29:59 +01:00
|
|
|
build (play::Timings timings, uint64_t startFrame)
|
2012-02-09 22:24:05 +01:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED ("representation of the Time Anchor closure");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
operator lib::time::TimeValue() const
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED ("representation of the Time Anchor closure");
|
|
|
|
|
}
|
2012-02-04 00:52:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace proc::engine
|
|
|
|
|
#endif
|