KiCad PCB EDA Suite
CSOLDERMASKNORMAL Class Reference

#include <cmaterial.h>

Inheritance diagram for CSOLDERMASKNORMAL:
CPROCEDURALGENERATOR

Public Member Functions

 CSOLDERMASKNORMAL ()
 
 CSOLDERMASKNORMAL (const CPROCEDURALGENERATOR *aCopperNormalGenerator)
 
virtual ~CSOLDERMASKNORMAL ()
 
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 106 of file cmaterial.h.

Constructor & Destructor Documentation

◆ CSOLDERMASKNORMAL() [1/2]

CSOLDERMASKNORMAL::CSOLDERMASKNORMAL ( )
inline

Definition at line 109 of file cmaterial.h.

const CPROCEDURALGENERATOR * m_copper_normal_generator
Definition: cmaterial.h:120
#define NULL

References m_copper_normal_generator, and NULL.

◆ CSOLDERMASKNORMAL() [2/2]

CSOLDERMASKNORMAL::CSOLDERMASKNORMAL ( const CPROCEDURALGENERATOR aCopperNormalGenerator)

Definition at line 203 of file cmaterial.cpp.

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

References m_copper_normal_generator.

◆ ~CSOLDERMASKNORMAL()

virtual CSOLDERMASKNORMAL::~CSOLDERMASKNORMAL ( )
inlinevirtual

Definition at line 112 of file cmaterial.h.

113  {
114  }

Member Function Documentation

◆ Generate()

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.

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:120
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

References CPROCEDURALGENERATOR::Generate(), and m_copper_normal_generator.

Member Data Documentation

◆ m_copper_normal_generator

const CPROCEDURALGENERATOR* CSOLDERMASKNORMAL::m_copper_normal_generator
private

Definition at line 120 of file cmaterial.h.

Referenced by CSOLDERMASKNORMAL(), and Generate().


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