Lumiera  0.pre.03
»edit your freedom«
Pipe Class Reference

#include "steam/asset/pipe.hpp"

Description

structural asset corresponding to the part of the model forming a processing pipe for generating media output

Definition at line 79 of file pipe.hpp.

Public Member Functions

virtual const ID< Pipe > & getID () const
 < More...
 
string const & getPipeID () const
 
PProcPatt const & getProcPatt () const
 
StreamType::ID getStreamID () const
 
void switchProcPatt (PProcPatt &another)
 use another wiring template. More...
 
- Public Member Functions inherited from Asset
bool enable (bool on=true)
 change the enabled status of this asset. More...
 
const vector< PAsset > & getDependant () const
 All the other assets requiring this asset to be functional. More...
 
const vector< PAsset > & getParents () const
 List of entities this asset depends on or requires to be functional. More...
 
bool isActive () const
 weather this asset is switched on and consequently included in the fixture and participates in rendering More...
 
virtual operator string () const
 
bool operator< (Asset const &oa) const
 
bool operator== (Asset const &oa) const
 

Static Public Member Functions

static PPipe lookup (ID< Pipe > id)
 convenience shortcut for lookup by id More...
 
static PPipe query (string const &properties)
 convenience shortcut for retrieving default configured pipes
 

Public Attributes

string longDesc
 
string shortDesc
 
- Public Attributes inherited from Asset
const Ident ident
 Asset identification tuple.
 

Friends

class StructFactoryImpl
 

Protected Member Functions

 Pipe (Asset::Ident const &, string const &streamID, PProcPatt &wiring, string shortName="", string longName="")
 Create and register a new Pipe asset. More...
 
- Protected Member Functions inherited from Struct
 Struct (const Asset::Ident &idi)
 
- Protected Member Functions inherited from Asset
 Asset (const Ident &idi)
 Asset is a Interface class; usually, objects of concrete subclasses are created via specialised Factories. More...
 
virtual ~Asset ()=0
 
void defineDependency (PAsset parent)
 establish a connection between this and the given parent asset, denoting we are in some way dependent on the parent. More...
 
void defineDependency (Asset &parent)
 
virtual void unlink ()
 release all links to other Asset objects held internally. More...
 
virtual void unlink (IDA target)
 variant of unlink() dropping only the links to the given specific Asset, leaving all other links intact. More...
 

Private Attributes

StreamType::ID streamID_
 
PProcPatt wiringTemplate_
 

Additional Inherited Members

- Static Public Attributes inherited from Struct
static StructFactory retrieve
 storage for the static StructFactory instance
 
- Protected Attributes inherited from Asset
vector< PAssetdependants
 
bool enabled
 
set< string > groups
 additional classification, selections or departments this asset belongs to. More...
 
const ID< Assetid
 Asset primary key.
 
const string longDesc
 user visible qualification of the thing, unit or concept represented by this asset. More...
 
vector< PAssetparents
 
const string shortDesc
 user visible Name-ID. More...
 

Constructor & Destructor Documentation

◆ Pipe()

Pipe ( Asset::Ident const &  idi,
string const &  streamID,
PProcPatt wiring,
string  shortName = "",
string  longName = "" 
)
protected

Create and register a new Pipe asset.

Usually, this is triggered automatically by referring to the pipeID. When building the render network, the given processing pattern will be executed, allowing for all sorts of default wiring.

Parameters
streamID/////////////////////////////////////TICKET #648

Definition at line 46 of file pipe.cpp.

Member Function Documentation

◆ getID()

virtual const ID<Pipe>& getID ( ) const
inlinevirtual

<

Returns
ID typed to asset::Pipe

Reimplemented from Struct.

Definition at line 89 of file pipe.hpp.

◆ switchProcPatt()

void switchProcPatt ( PProcPatt another)

use another wiring template.

Triggers complete rebuild of the render engine.

Definition at line 83 of file pipe.cpp.

◆ lookup()

PPipe lookup ( ID< Pipe id)
static

convenience shortcut for lookup by id

Parameters
idasset-ID of the pipe to retrieve
Exceptions
error::Invalidwhen not found

Definition at line 76 of file pipe.cpp.

References AssetManager::instance.

Referenced by ID< Pipe >::streamType().

+ Here is the caller graph for this function:
+ Inheritance diagram for Pipe:
+ Collaboration diagram for Pipe:

The documentation for this class was generated from the following files: