version 3.3

VRS::GoochShadingGL Class Reference

Gooch Shading based on Burce and Amy Gooch. More...

#include <vrs/opengl/goochshadinggl.h>

Inheritance diagram for VRS::GoochShadingGL:

VRS::EdgeEnhancementGL VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 GoochShadingGL (bool distinguish=false, const Color &warmColor=Color(0.6, 0.6, 0.0), const Color &coolColor=Color(0.0, 0.0, 0.6), float kWarm=0.45f, float kCool=0.45f)
bool distinguishEdges () const
void distinguishEdges (bool)
const ColorgetWarmColor () const
void setWarmColor (const Color &)
const ColorgetCoolColor () const
void setCoolColor (const Color &)
float getWarmCoeffiecient () const
float getCoolCoeffiecient () const
void setCoolAndWarmCoeffiecients (float warm, float cool)
 VRS_TYPEINFO (GoochShadingGL, EdgeEnhancementGL)
 VRS_SERIALIZABLE (GoochShadingGL)


Detailed Description

Gooch Shading based on Burce and Amy Gooch.

Constructor & Destructor Documentation

VRS::GoochShadingGL::GoochShadingGL ( bool  distinguish = false,
const Color warmColor = Color(0.6, 0.6, 0.0),
const Color coolColor = Color(0.0, 0.0, 0.6),
float  kWarm = 0.45f,
float  kCool = 0.45f 
) [inline]


Member Function Documentation

bool VRS::GoochShadingGL::distinguishEdges (  )  const [inline]

Technical illustrations using Gooch Shaging that interpolate warmth and coolness of surface colors using a warm and cool color and additional coefficients: k_cool = k_blue+alpha*k_diffuse (=coolColor+kCool) k_warm = k_yellow+beta*k_diffuse (=warmColor+kWarm) k_final = ((NdotL+1.0)*0.5) * k_warm + (1-((NdotL+1.0)*0.5)) k_cool;

void VRS::GoochShadingGL::distinguishEdges ( bool  d  )  [inline]

Distinguish between profile edges (black) and inner edges (white).

const Color & VRS::GoochShadingGL::getWarmColor (  )  const [inline]

void VRS::GoochShadingGL::setWarmColor ( const Color color  )  [inline]

const Color & VRS::GoochShadingGL::getCoolColor (  )  const [inline]

void VRS::GoochShadingGL::setCoolColor ( const Color color  )  [inline]

Set and get warm and cool colors.

float VRS::GoochShadingGL::getWarmCoeffiecient (  )  const [inline]

float VRS::GoochShadingGL::getCoolCoeffiecient (  )  const [inline]

void VRS::GoochShadingGL::setCoolAndWarmCoeffiecients ( float  warm,
float  cool 
) [inline]

Set and get warm and cool coefficients.

VRS::GoochShadingGL::VRS_TYPEINFO ( GoochShadingGL  ,
EdgeEnhancementGL   
)

VRS::GoochShadingGL::VRS_SERIALIZABLE ( GoochShadingGL   ) 


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

Generated on Mon May 20 06:00:29 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact