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

#include "steam/asset/meta/time-grid.hpp"

Description

Interface: a grid and scale definition for time quantisation.

This meta-Asset describes a coordinate system or reference scale for quantised time values. Especially it allows to define an actual implementation, which can then implicitly be used by lib::time::QuTime and for conversions into timecode.

Note
for this to work, the actual implementation classes returned by the builder or the static build function additionally expose an implementation of the lib::time::Quantiser API

Definition at line 86 of file time-grid.hpp.

Static Public Member Functions

static PGrid build (FrameRate frames_per_second)
 
static PGrid build (Symbol gridID, FrameRate frames_per_second)
 
static PGrid build (Symbol gridID, FrameRate frames_per_second, Time origin)
 

Protected Member Functions

 TimeGrid (GridID const &)
 
- Protected Member Functions inherited from Meta
 Meta (Asset::Ident const &idi)
 
template<typename TY >
 Meta (lib::idi::EntryID< TY > const &nameID)
 
- 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...
 

Additional Inherited Members

- Public Member Functions inherited from Meta
virtual const ID< Meta > & getID () const
 
- 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
 
- Public Member Functions inherited from Descriptor
virtual ~Descriptor ()
 this is an Interface
 
- Public Member Functions inherited from Grid
virtual ~Grid ()
 this is an Interface
 
virtual TimeValue gridLocal (TimeValue const &raw) const =0
 
virtual FrameCnt gridPoint (TimeValue const &raw) const =0
 
virtual TimeValue timeOf (FrameCnt gridPoint) const =0
 
virtual TimeValue timeOf (FSecs gridTime, int=0) const =0
 
- Static Public Attributes inherited from Meta
static MetaFactory create
 storage for the static MetaFactory instance
 
- Public Attributes inherited from Asset
const Ident ident
 Asset identification tuple.
 
- 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

◆ TimeGrid()

TimeGrid ( GridID const &  nameID)
protected

to be invoked indirectly by means of the Builder<TimeGrid>.

Todo:
drafted in 2010 – usage of the builder feels unsatisfactory as of 2018

Definition at line 57 of file time-grid.cpp.

Member Function Documentation

◆ build() [1/2]

PGrid build ( FrameRate  frames_per_second)
static
Parameters
frames_per_secondautomatically generates a generic grid name

Definition at line 167 of file time-grid.cpp.

Referenced by TimeGrid::build().

+ Here is the caller graph for this function:

◆ build() [2/2]

PGrid build ( Symbol  gridID,
FrameRate  frames_per_second 
)
static
Parameters
frames_per_secondgrid origin is at Time::ZERO

Definition at line 173 of file time-grid.cpp.

References TimeGrid::build(), Builder< TimeGrid >::commit(), and stage::widget::name().

+ Here is the call graph for this function:
+ Inheritance diagram for TimeGrid:
+ Collaboration diagram for TimeGrid:

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