KiCad PCB EDA Suite
CSOLDERMASKNORMAL Class Reference

#include <cmaterial.h>

Inheritance diagram for CSOLDERMASKNORMAL:
CPROCEDURALGENERATOR

Public Member Functions

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

Private Attributes

const CPROCEDURALGENERATORm_copper_normal_generator
 

Detailed Description

Definition at line 94 of file cmaterial.h.

Constructor & Destructor Documentation

CSOLDERMASKNORMAL::CSOLDERMASKNORMAL ( )
inline

Definition at line 97 of file cmaterial.h.

References m_copper_normal_generator.

const CPROCEDURALGENERATOR * m_copper_normal_generator
Definition: cmaterial.h:104
CSOLDERMASKNORMAL::CSOLDERMASKNORMAL ( const CPROCEDURALGENERATOR aCopperNormalGenerator)

Definition at line 203 of file cmaterial.cpp.

References m_copper_normal_generator.

204 {
205  m_copper_normal_generator = aCopperNormalGenerator;
206 }
const CPROCEDURALGENERATOR * m_copper_normal_generator
Definition: cmaterial.h:104

Member Function Documentation

SFVEC3F CSOLDERMASKNORMAL::Generate ( const RAY aRay,
const HITINFO aHitInfo 
) const
overridevirtual

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

Implements CPROCEDURALGENERATOR.

Definition at line 209 of file cmaterial.cpp.

References CPROCEDURALGENERATOR::Generate(), and m_copper_normal_generator.

210 {
212  {
213  const SFVEC3F copperNormal = m_copper_normal_generator->Generate( aRay, aHitInfo );
214 
215  return copperNormal * SFVEC3F(0.10f);
216  }
217  else
218  return SFVEC3F(0.0f);
219 }
const CPROCEDURALGENERATOR * m_copper_normal_generator
Definition: cmaterial.h:104
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...
glm::vec3 SFVEC3F
Definition: xv3d_types.h:47

Member Data Documentation

const CPROCEDURALGENERATOR* CSOLDERMASKNORMAL::m_copper_normal_generator
private

Definition at line 104 of file cmaterial.h.

Referenced by CSOLDERMASKNORMAL(), and Generate().


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