3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
effect.cpp File Reference
#include "effect.h"
#include "common/xmlHelper.h"
#include "common/stringFuncs.h"
#include "common/constants.h"
#include <GL/glu.h>
Include dependency graph for effect.cpp:

Functions

EffectmakeEffect (unsigned int effectID)
 
EffectmakeEffect (const std::string &str)
 

Variables

float MIN_CROP_FRACTION =0.0001
 
const unsigned int NUM_EFFECTS =2
 
const char * EFFECT_NAMES []
 
float gbMatrix []
 
float mixedMatrix []
 
float halfMatrix []
 

Function Documentation

◆ makeEffect() [1/2]

Effect* makeEffect ( unsigned int  effectID)

References ASSERT, EFFECT_ANAGLYPH, and EFFECT_BOX_CROP.

Referenced by AnaglyphEffect::getMode(), makeEffect(), and AnalysisState::save().

Here is the caller graph for this function:

◆ makeEffect() [2/2]

Effect* makeEffect ( const std::string &  str)

Variable Documentation

◆ EFFECT_NAMES

const char* EFFECT_NAMES[]
Initial value:
= { "boxcrop",
"anaglyph"
}

Referenced by Effect::Effect(), Effect::getName(), and makeEffect().

◆ gbMatrix

float gbMatrix[]
Initial value:
={0.0f,0.0f,0.0f,0,
0.0f,1.0f,0.0f,0,
0.0f,0.0f,1.0f,0,
0, 0, 0, 1}

◆ halfMatrix

float halfMatrix[]
Initial value:
={ 0.299f, 0.587f, 0.114f, 0,
0.0f, 0.0f, 0.0f, 0,
0.0f, 0.0f, 0.0f, 0,
0, 0, 0, 1}

◆ MIN_CROP_FRACTION

float MIN_CROP_FRACTION =0.0001

◆ mixedMatrix

float mixedMatrix[]
Initial value:
={ 0.0f,0.7f,0.3f,0,
0.0f,0.0f,0.0f,0,
0.0f,0.0f,0.0f,0,
0, 0, 0, 1}

◆ NUM_EFFECTS

const unsigned int NUM_EFFECTS =2

Referenced by Effect::Effect(), and makeEffect().