KiCad PCB EDA Suite
CPROCEDURALGENERATOR Class Referenceabstract

A base class that can be used to derive a procedural generator implementation. More...

#include <cmaterial.h>

Inheritance diagram for CPROCEDURALGENERATOR:
CBOARDNORMAL CCOPPERNORMAL CMETALBRUSHEDNORMAL CPLASTICNORMAL CPLASTICSHINENORMAL CSOLDERMASKNORMAL

Public Member Functions

 CPROCEDURALGENERATOR ()
 
virtual SFVEC3F Generate (const RAY &aRay, const HITINFO &aHitInfo) const =0
 Generate - Generates a 3D vector based on the ray and hit information depending on the implementation. More...
 

Detailed Description

A base class that can be used to derive a procedural generator implementation.

Definition at line 38 of file cmaterial.h.

Constructor & Destructor Documentation

CPROCEDURALGENERATOR::CPROCEDURALGENERATOR ( )

Definition at line 143 of file cmaterial.cpp.

144 {
145 }

Member Function Documentation

virtual SFVEC3F CPROCEDURALGENERATOR::Generate ( const RAY aRay,
const HITINFO aHitInfo 
) const
pure virtual

Generate - Generates a 3D vector based on the ray and hit information depending on the implementation.

Parameters
aRaythe camera ray that hits the object
aHitInfothe hit information
Returns
the result of the procedural

Implemented in CMETALBRUSHEDNORMAL, CPLASTICSHINENORMAL, CPLASTICNORMAL, CSOLDERMASKNORMAL, CCOPPERNORMAL, and CBOARDNORMAL.

Referenced by CCOPPERNORMAL::Generate(), CSOLDERMASKNORMAL::Generate(), and CMATERIAL::PerturbeNormal().


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