DD::Image::LightContext Class Reference

Inherited by StaticLightContext.

Public Member Functions

 LightContext (const LightContext *lcontext)
 
virtual LightContextclone ()
 
Scenescene () const
 
void set_scene (Scene *s)
 
LightOplight () const
 
void set_light (LightOp *l)
 
Renderdepthmap () const
 
void set_depthmap (Render *r)
 
void set_transforms (MatrixArray *m, MatrixArray *mb=nullptr)
 
MatrixArraytransforms () const
 
const Matrix4matrix (int n) const
 
const Matrix4inverse_matrix (int n) const
 
MatrixArraymb_transforms () const
 
const Matrix4mb_matrix (int n) const
 
const Matrix4mb_inverse_matrix (int n) const
 
void setWorldMatrix (const Matrix4 &m)
 
const Axis & vectors () const
 
const Vector3x () const
 
const Vector3y () const
 
const Vector3z () const
 
const Vector3p () const
 

Friends

class Scene
 
class Render
 

Detailed Description

A context structure to reference environmental and transform information for the Light during rendering. Contains a MatrixArray for the light's transforms and an Axis object which contain transformed Eigen vectors for fast vector comparison. The MatrixArray's camera and projection matrices can be used for depth-buffer projections.

Member Function Documentation

virtual LightContext* DD::Image::LightContext::clone ( )
inlinevirtual

It's required that any class inheriting from LightContext * MUST * override the clone method



©2019 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk