Open PaperOpt
SurfaceTNInk Class Reference

#include <SurfaceTNInk.h>

Inheritance diagram for SurfaceTNInk:
Collaboration diagram for SurfaceTNInk:

List of all members.

Public Member Functions

 SurfaceTNInk (float _zoffset, float _xmax, float _ymax, float _rmsmin, float _rmsmax, Halftone *half, int nrHalfTones, StructureObject *_el, std::vector< float > lambdasim)
virtual ~SurfaceTNInk ()
int Process (WavePacket &wp, int updown, int internal) const

Constructor & Destructor Documentation

SurfaceTNInk::SurfaceTNInk ( float  _zoffset,
float  _xmax,
float  _ymax,
float  _rmsmin,
float  _rmsmax,
Halftone half,
int  nrHalfTones,
StructureObject _el,
std::vector< float >  lambdasim 
)

Set various constants

Since we don't map different roughness values to the surface, we use the member 'rms' and ignore the matrix 'roughness'.

Read the halftones.

Here is the call graph for this function:

SurfaceTNInk::~SurfaceTNInk ( ) [virtual]

Member Function Documentation

int SurfaceTNInk::Process ( WavePacket wp,
int  up_down,
int  internal 
) const [virtual]

Check if two surfaces are same level,no Homogenouse layer exist

Parameters:
wpWave Packet's object to calculate ditance of interception and call many fuctions of wave packet.
up_downChecks if wave packet is travelling in upward.

If not internal, compute the surface intersection point, if any.

Check for a hit with the any of the halftone layers

If no ink hit, continue with a standard surface scattering. Note: double work if !internal, as the surface intersection will be recalculated in Process.

Reimplemented from Surface.

Here is the call graph for this function:

Here is the caller graph for this function:


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