Simulacrum  1.2
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Simulacrum::GPLUT Class Reference

#include <LUT.h>

Collaboration diagram for Simulacrum::GPLUT:
Collaboration graph

Public Types

typedef std::function< bool(std::vector< luttype > &LUT, unsigned bppin, unsigned centre, unsigned width, bool inverted)> LUTGen_t
 

Public Member Functions

 GPLUT ()
 
 GPLUT (const GPLUT &source)
 
virtual ~GPLUT ()
 
bool genLUT (unsigned bppin, unsigned centre, unsigned width)
 
void adjLUT (unsigned centre, unsigned width)
 
void setLUTGen (LUTGen_t)
 
LUTGen_t lutGen ()
 
void setFixedLUT (const std::vector< luttype > &)
 
luttype lookup_nocheck (SElem::Precision lookupk)
 
luttype lookup (SElem::Precision lookupk)
 
uint32_t lookupRGBA (SElem::Precision lookupk)
 
uint32_t lookupRGBA (SElem &lookupp)
 
SElem::Precision clampWLIntensity (SElem::Precision val)
 
SElem::Precision getWLWidth ()
 
SElem::Precision getWLCentre ()
 
SElem::Precision bppIn ()
 
SElem::Precision bppOut ()
 
SElem::Precision sizeWL ()
 
void useWL (bool newuse)
 
bool useWL ()
 
void resetWL ()
 
GPLUTcopyWL (const GPLUT &target)
 
void setChroma (uint8_t rr, uint8_t gg, uint8_t bb)
 
void useWLChroma (bool nchroma)
 
uint8_t getWLChromaRc ()
 
uint8_t getWLChromaGc ()
 
uint8_t getWLChromaBc ()
 
void setGamma (float ngam)
 
float getGamma ()
 
void invertWL (bool ninvert=true)
 

Static Public Member Functions

static bool genColBlendLUT (std::vector< uint32_t > colors, std::vector< luttype > &LUT, unsigned bppin, unsigned centre, unsigned width, bool inverted)
 

Member Typedef Documentation

◆ LUTGen_t

typedef std::function<bool(std::vector <luttype>& LUT, unsigned bppin,unsigned centre, unsigned width, bool inverted)> Simulacrum::GPLUT::LUTGen_t

Constructor & Destructor Documentation

◆ GPLUT() [1/2]

GPLUT::GPLUT ( )

◆ GPLUT() [2/2]

GPLUT::GPLUT ( const GPLUT source)

◆ ~GPLUT()

GPLUT::~GPLUT ( )
virtual

Member Function Documentation

◆ adjLUT()

void GPLUT::adjLUT ( unsigned  centre,
unsigned  width 
)

◆ bppIn()

SElem::Precision GPLUT::bppIn ( )

◆ bppOut()

SElem::Precision GPLUT::bppOut ( )

◆ clampWLIntensity()

SElem::Precision GPLUT::clampWLIntensity ( SElem::Precision  val)

◆ copyWL()

GPLUT & GPLUT::copyWL ( const GPLUT target)

◆ genColBlendLUT()

bool GPLUT::genColBlendLUT ( std::vector< uint32_t >  colors,
std::vector< luttype > &  LUT,
unsigned  bppin,
unsigned  centre,
unsigned  width,
bool  inverted 
)
static

◆ genLUT()

bool GPLUT::genLUT ( unsigned  bppin,
unsigned  centre,
unsigned  width 
)

◆ getGamma()

float GPLUT::getGamma ( )

◆ getWLCentre()

SElem::Precision GPLUT::getWLCentre ( )

◆ getWLChromaBc()

uint8_t GPLUT::getWLChromaBc ( )

◆ getWLChromaGc()

uint8_t GPLUT::getWLChromaGc ( )

◆ getWLChromaRc()

uint8_t GPLUT::getWLChromaRc ( )

◆ getWLWidth()

SElem::Precision GPLUT::getWLWidth ( )

◆ invertWL()

void GPLUT::invertWL ( bool  ninvert = true)

◆ lookup()

luttype GPLUT::lookup ( SElem::Precision  lookupk)

◆ lookup_nocheck()

luttype GPLUT::lookup_nocheck ( SElem::Precision  lookupk)

◆ lookupRGBA() [1/2]

uint32_t GPLUT::lookupRGBA ( SElem lookupp)

◆ lookupRGBA() [2/2]

uint32_t GPLUT::lookupRGBA ( SElem::Precision  lookupk)

◆ lutGen()

GPLUT::LUTGen_t GPLUT::lutGen ( )

◆ resetWL()

void GPLUT::resetWL ( )

◆ setChroma()

void GPLUT::setChroma ( uint8_t  rr,
uint8_t  gg,
uint8_t  bb 
)

◆ setFixedLUT()

void GPLUT::setFixedLUT ( const std::vector< luttype > &  newlut)

◆ setGamma()

void GPLUT::setGamma ( float  ngam)

◆ setLUTGen()

void GPLUT::setLUTGen ( GPLUT::LUTGen_t  newgen)

◆ sizeWL()

SElem::Precision GPLUT::sizeWL ( )

◆ useWL() [1/2]

bool GPLUT::useWL ( )

◆ useWL() [2/2]

void GPLUT::useWL ( bool  newuse)

◆ useWLChroma()

void GPLUT::useWLChroma ( bool  nchroma)

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