WIP rename class Processor to RenderGraph (engine)

This commit is contained in:
Fischlurch 2008-11-05 04:39:57 +01:00
parent 2b3fd7ef1b
commit 9269db45cc
10 changed files with 41 additions and 58 deletions

View file

@ -64,19 +64,19 @@ noinst_LTLIBRARIES += liblumiprocengine.la
liblumiprocengine_la_CFLAGS = $(AM_CFLAGS) -std=gnu99 -Wall -Wextra -Werror
liblumiprocengine_la_CXXFLAGS = $(AM_CXXFLAGS) -Wall -Wextra
liblumiprocengine_la_SOURCES = \
$(liblumiprocengine_la_srcdir)/buffhandle.cpp \
$(liblumiprocengine_la_srcdir)/link.cpp \
$(liblumiprocengine_la_srcdir)/mask.cpp \
$(liblumiprocengine_la_srcdir)/nodefactory.cpp \
$(liblumiprocengine_la_srcdir)/nodewiring.cpp \
$(liblumiprocengine_la_srcdir)/pluginadapter.cpp \
$(liblumiprocengine_la_srcdir)/processor.cpp \
$(liblumiprocengine_la_srcdir)/procnode.cpp \
$(liblumiprocengine_la_srcdir)/projector.cpp \
$(liblumiprocengine_la_srcdir)/renderengine.cpp \
$(liblumiprocengine_la_srcdir)/source.cpp \
$(liblumiprocengine_la_srcdir)/stateproxy.cpp \
liblumiprocengine_la_SOURCES = \
$(liblumiprocengine_la_srcdir)/buffhandle.cpp \
$(liblumiprocengine_la_srcdir)/link.cpp \
$(liblumiprocengine_la_srcdir)/mask.cpp \
$(liblumiprocengine_la_srcdir)/nodefactory.cpp \
$(liblumiprocengine_la_srcdir)/nodewiring.cpp \
$(liblumiprocengine_la_srcdir)/pluginadapter.cpp \
$(liblumiprocengine_la_srcdir)/rendergraph.cpp \
$(liblumiprocengine_la_srcdir)/procnode.cpp \
$(liblumiprocengine_la_srcdir)/projector.cpp \
$(liblumiprocengine_la_srcdir)/renderengine.cpp \
$(liblumiprocengine_la_srcdir)/source.cpp \
$(liblumiprocengine_la_srcdir)/stateproxy.cpp \
$(liblumiprocengine_la_srcdir)/trafo.cpp
@ -203,7 +203,7 @@ noinst_HEADERS += \
$(liblumiproc_la_srcdir)/engine/renderengine.hpp \
$(liblumiproc_la_srcdir)/engine/source.hpp \
$(liblumiproc_la_srcdir)/engine/trafo.hpp \
$(liblumiproc_la_srcdir)/engine/processor.hpp \
$(liblumiproc_la_srcdir)/engine/rendergraph.hpp \
$(liblumiproc_la_srcdir)/mobject/builder/assembler.hpp \
$(liblumiproc_la_srcdir)/mobject/builder/buildertool.hpp \
$(liblumiproc_la_srcdir)/mobject/builder/conmanager.hpp \

View file

@ -27,13 +27,7 @@ namespace control {
engine::Processor *
PathManager::buildProcessor ()
{
UNIMPLEMENTED ("build a complete processor and optimize render path");
return 0;//////////////////TODO
}
/** */
} // namespace control

View file

@ -24,7 +24,6 @@
#ifndef CONTROL_PATHMANAGER_H
#define CONTROL_PATHMANAGER_H
#include "proc/engine/processor.hpp"
@ -39,7 +38,7 @@ namespace control {
class PathManager
{
public:
engine::Processor* buildProcessor () ;
// TODO: find out about public interface
// TODO: allocation, GC??
};

View file

@ -23,17 +23,10 @@
#include "proc/engine/renderengine.hpp"
namespace engine
{
namespace engine {
/**
* TODO: will probably be handled differently (see Cehteh)
*/
void
RenderEngine::play ()
{}
/** */

View file

@ -26,7 +26,7 @@
#include <list>
#include "proc/engine/processor.hpp"
#include "proc/engine/rendergraph.hpp"
using std::list;
@ -36,16 +36,14 @@ namespace engine
{
class RenderEngine : public Processor
class RenderEngine : public RenderGraph
{
public:
/**
* TODO: will probably be handled differently (see Cehteh)
*/
void play () ;
///// TODO: find out about the public operations
// note: the play controller lives in the backend
private:
list<Processor> renderSegments;
list<RenderGraph> renderSegments;
};

View file

@ -1,5 +1,5 @@
/*
Processor - a single render pipeline for one segment of the timeline
RenderGraph - render network corresponding to one segment of the timeline
Copyright (C) Lumiera.org
2008, Hermann Vosseler <Ichthyostega@web.de>
@ -21,11 +21,10 @@
* *****************************************************/
#include "proc/engine/processor.hpp"
#include "proc/engine/rendergraph.hpp"
#include "proc/state.hpp"
namespace engine
{
namespace engine {
/** */

View file

@ -1,5 +1,5 @@
/*
PROCESSOR.hpp - a single render pipeline for one segment of the timeline
RENDERGRAPH.hpp - render network corresponding to one segment of the timeline
Copyright (C) Lumiera.org
2008, Hermann Vosseler <Ichthyostega@web.de>
@ -21,8 +21,8 @@
*/
#ifndef ENGINE_PROCESSOR_H
#define ENGINE_PROCESSOR_H
#ifndef ENGINE_RENDERGRAPH_H
#define ENGINE_RENDERGRAPH_H
#include "proc/common.hpp"
#include "proc/state.hpp"
@ -34,12 +34,12 @@ namespace engine
class ExitNode;
class Processor
class RenderGraph
{
protected:
ExitNode * output;
/** begin of the timerange covered by this processor */
/** begin of the timerange covered by this RenderGraph */
lumiera::Time start;
/**end (exclusive) of the timerange */

View file

@ -27,7 +27,7 @@
#include "proc/mobject/builder/applicablebuildertargettypes.hpp"
#include "proc/engine/processor.hpp"
#include "proc/engine/rendergraph.hpp"
#include "proc/mobject/builder/toolfactory.hpp"
@ -49,12 +49,12 @@ namespace mobject {
{
ToolFactory& toolKit_;
/** holds the Processor (Render Engine Element)
/** holds the RenderGraph (Render Engine Element)
* to be built by the current build step */
engine::Processor& proc_;
engine::RenderGraph& proc_;
NodeCreatorTool (ToolFactory& tofa, engine::Processor& proc)
NodeCreatorTool (ToolFactory& tofa, engine::RenderGraph& proc)
: toolKit_(tofa),
proc_(proc)
{ }

View file

@ -36,7 +36,7 @@ namespace mobject {
{
session::Fixture & fixedTimeline_;
std::auto_ptr<engine::Processor> procSegment_; /////////////////TODO consider renaming Processor
std::auto_ptr<engine::RenderGraph> procSegment_;
boost::scoped_ptr<SegementationTool> segmentation_;
boost::scoped_ptr<NodeCreatorTool> fabrication_;
@ -44,7 +44,7 @@ namespace mobject {
BuildProcessState (session::Fixture& theTimeline)
: fixedTimeline_(theTimeline),
procSegment_(new engine::Processor())
procSegment_(new engine::RenderGraph())
{ }
};
@ -79,7 +79,7 @@ namespace mobject {
}
std::auto_ptr<engine::Processor>
std::auto_ptr<engine::RenderGraph>
ToolFactory::getProduct ()
{
state_->segmentation_.reset(0);

View file

@ -28,7 +28,7 @@
#include "proc/mobject/builder/segmentationtool.hpp"
#include "proc/mobject/builder/nodecreatortool.hpp"
#include "proc/mobject/builder/mould.hpp"
#include "proc/engine/processor.hpp"
#include "proc/engine/rendergraph.hpp"
#include <boost/scoped_ptr.hpp>
@ -58,12 +58,12 @@ namespace mobject {
/** prepare a tool for properly segmenting the Fixture */
SegmentationTool & configureSegmentation ();
/** prepare a tool for building the processor for a single segment */
/** prepare a tool for building the render engine (graph) for a single segment */
NodeCreatorTool & configureFabrication ();
/** receive the finished product of the build process; effectively
* releases any other builder tool object */
std::auto_ptr<engine::Processor> getProduct ();
std::auto_ptr<engine::RenderGraph> getProduct ();
};