2009-08-31 01:32:53 +02:00
/*
RENDER - INVOCATION . hpp - initiate the rendering of a single frame
2010-12-17 23:28:49 +01:00
Copyright: clarify and simplify the file headers
* Lumiera source code always was copyrighted by individual contributors
* there is no entity "Lumiera.org" which holds any copyrights
* Lumiera source code is provided under the GPL Version 2+
== Explanations ==
Lumiera as a whole is distributed under Copyleft, GNU General Public License Version 2 or above.
For this to become legally effective, the ''File COPYING in the root directory is sufficient.''
The licensing header in each file is not strictly necessary, yet considered good practice;
attaching a licence notice increases the likeliness that this information is retained
in case someone extracts individual code files. However, it is not by the presence of some
text, that legally binding licensing terms become effective; rather the fact matters that a
given piece of code was provably copyrighted and published under a license. Even reformatting
the code, renaming some variables or deleting parts of the code will not alter this legal
situation, but rather creates a derivative work, which is likewise covered by the GPL!
The most relevant information in the file header is the notice regarding the
time of the first individual copyright claim. By virtue of this initial copyright,
the first author is entitled to choose the terms of licensing. All further
modifications are permitted and covered by the License. The specific wording
or format of the copyright header is not legally relevant, as long as the
intention to publish under the GPL remains clear. The extended wording was
based on a recommendation by the FSF. It can be shortened, because the full terms
of the license are provided alongside the distribution, in the file COPYING.
2024-11-17 23:42:55 +01:00
Copyright ( C )
2009 , Hermann Vosseler < Ichthyostega @ web . de >
2010-12-17 23:28:49 +01:00
Copyright: clarify and simplify the file headers
* Lumiera source code always was copyrighted by individual contributors
* there is no entity "Lumiera.org" which holds any copyrights
* Lumiera source code is provided under the GPL Version 2+
== Explanations ==
Lumiera as a whole is distributed under Copyleft, GNU General Public License Version 2 or above.
For this to become legally effective, the ''File COPYING in the root directory is sufficient.''
The licensing header in each file is not strictly necessary, yet considered good practice;
attaching a licence notice increases the likeliness that this information is retained
in case someone extracts individual code files. However, it is not by the presence of some
text, that legally binding licensing terms become effective; rather the fact matters that a
given piece of code was provably copyrighted and published under a license. Even reformatting
the code, renaming some variables or deleting parts of the code will not alter this legal
situation, but rather creates a derivative work, which is likewise covered by the GPL!
The most relevant information in the file header is the notice regarding the
time of the first individual copyright claim. By virtue of this initial copyright,
the first author is entitled to choose the terms of licensing. All further
modifications are permitted and covered by the License. The specific wording
or format of the copyright header is not legally relevant, as long as the
intention to publish under the GPL remains clear. The extended wording was
based on a recommendation by the FSF. It can be shortened, because the full terms
of the license are provided alongside the distribution, in the file COPYING.
2024-11-17 23:42:55 +01:00
* * Lumiera * * 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 . See the file COPYING for further details .
2010-12-17 23:28:49 +01:00
2009-08-31 01:32:53 +02:00
*/
/** @file render-invocation.hpp
* * Initiate a single calculation unit within the renderengine .
* * Usually , this will cause the rendering of a single frame or sub - frame .
2016-11-09 19:50:16 +01:00
* *
2024-12-05 23:58:22 +01:00
* * @ todo WIP - WIP - WIP 2024 - 12 finally about to connect the unfinished draft from 2009
* * with the engine structures built bottom - up meanwhile ///////////////////////////////////////////TICKET #905 : Work out what parameters are required to invoke the real code available now....
2016-11-09 19:50:16 +01:00
* *
2009-08-31 01:32:53 +02:00
* * @ see engine : : ProcNode
2024-12-05 23:58:22 +01:00
* * @ see turnout - system . hpp
2024-12-06 23:43:18 +01:00
* * @ see NodeBase_test
2009-08-31 01:32:53 +02:00
* *
*/
# ifndef ENGINE_RENDER_INVOCATION_H
# define ENGINE_RENDER_INVOCATION_H
2024-12-05 23:58:22 +01:00
# include "vault/gear/job.h"
# include "steam/engine/proc-node.hpp"
//#include "steam/engine/buffhandle.hpp"
2009-08-31 01:32:53 +02:00
2018-11-15 23:55:13 +01:00
namespace steam {
2009-08-31 01:32:53 +02:00
namespace engine {
/**
2024-12-05 23:58:22 +01:00
* A concrete JobFunctor with the ability to activate the » Render Node Network « .
2016-11-09 19:50:16 +01:00
* @ todo write type comment
2024-12-05 23:58:22 +01:00
* @ warning WIP - WIP 2024 - 12 rework render node invocation for » Playback Vertical Slice «
2009-08-31 01:32:53 +02:00
*/
class RenderInvocation
2024-12-05 23:58:22 +01:00
: public vault : : gear : : JobClosure ////////////////////////////////////////////////TICKET #1287 : should inherit from JobFunctor, get rid of the C-isms
2009-08-31 01:32:53 +02:00
{
2024-12-05 23:58:22 +01:00
ProcNode & theNode_ ;
2009-08-31 01:32:53 +02:00
2024-12-05 23:58:22 +01:00
/* === JobFunctor Interface === */
JobKind
getJobKind ( ) const override
2009-09-04 01:59:44 +02:00
{
2024-12-05 23:58:22 +01:00
return CALC_JOB ;
2009-09-04 01:59:44 +02:00
}
2009-08-31 01:32:53 +02:00
2024-12-05 23:58:22 +01:00
string diagnostic ( ) const override ;
2009-08-31 01:32:53 +02:00
2024-12-05 23:58:22 +01:00
InvocationInstanceID buildInstanceID ( HashVal ) const override ; //////////////////////////////////TICKET #1278 : so what do we need here for real, finally?
size_t hashOfInstance ( InvocationInstanceID invoKey ) const override ;
2009-08-31 01:32:53 +02:00
2024-12-05 23:58:22 +01:00
void invokeJobOperation ( vault : : gear : : JobParameter ) ;
2009-08-31 01:32:53 +02:00
2024-12-05 23:58:22 +01:00
public :
RenderInvocation ( ProcNode & exitNode )
: theNode_ ( exitNode )
{ }
2009-08-31 01:32:53 +02:00
} ;
2018-11-15 23:55:13 +01:00
} } // namespace steam::engine
2009-08-31 01:32:53 +02:00
# endif