Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PPEClassBase Class Reference

Created once, on manager init. Script-side representation of C++ material class, separate handling. More...

Inheritance diagram for PPEClassBase:
PPEChromAber PPEColorGrading PPEColors PPEDOF PPEDepthOfField PPEDistort PPEDynamicBlur PPEExposureNative PPEEyeAccomodationNative PPEFXAA PPEFilmGrain PPEGaussFilter PPEGhost PPEGlow PPEGodRays PPEHBAO PPELightIntensityParamsNative PPEMedian PPENone PPERadialBlur PPERain PPERotBlur PPESMAA PPESSAO PPESnowfall PPESunMask PPEUnderWater PPEWetDistort

Protected Member Functions

void PPEClassBase (string mat_path_override="")
void ApplyValueChanges ()
void ChangeMaterialPathUsed (string path)
void CreateDataStructure ()
void CreateMaterial ()
void DbgPrnt (string text)
string GetCurrentMaterialPath ()
string GetDefaultMaterialPath ()
 override this if you want to use different path by default; '.emat' is appended automatically
Material GetMaterial ()
PPEMatClassParameterCommandData GetParameterCommandData (int parameter_idx)
 Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExceptions.NONE (systemic behaviour).
int GetPostProcessEffectID ()
 Overriden in all material classes!
void Init (string mat_path_override="")
void InsertParamValueData (PPERequestParamDataBase request_data)
 Distributes requester data to the material class structure and links them to appropriate parameter.
void InsertUpdatedParameter (int mat_id)
void OnUpdate (float timeslice, int order)
 generic update method, take care when overriding!
void ParamUpdateQueueCleanup (int order)
void ParamUpdateRemove (int parameter_idx)
 Queue selected parameter for removal from the update queue.
void RegisterMaterialParameters ()
 inserted into associative array by parameter int value, parameter registration order does not matter (still ordered, though)
void RegisterParameterColor (int idx, string parameter_name, float r, float g, float b, float a)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
void RegisterParameterColorEx (int idx, string parameter_name, float r, float g, float b, float a, typename type)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
void RegisterParameterResource (int idx, string parameter_name, string default_path)
void RegisterParameterScalarBool (int idx, string parameter_name, bool default_value)
void RegisterParameterScalarFloat (int idx, string parameter_name, float default_value, float min, float max)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
void RegisterParameterScalarFloatEx (int idx, string parameter_name, float default_value, float min, float max, typename type)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
void RegisterParameterScalarInt (int idx, string parameter_name, int default_value, int min, int max)
void RegisterParameterTexture (int idx, string parameter_name, string default_path)
void RegisterParameterVector (int idx, string parameter_name, array< float > default_values)
void RemoveRequest (int req_idx)
 unused, see 'RemoveActiveRequestFromMaterials' for more info
void SetFinalParameterValue (int parameter_idx)
 Clamps the values being set to defaults, if there is no request setting non-zero values on the parameter.
void SetParameterUpdating (int order, int parameter_id)
 Queue specific parameter of this material to update.

Protected Attributes

PPEManager m_Manager
Material m_Material
ref map< int, ref PPEMatClassParameterCommandDatam_MaterialParamMapStructure
string m_MaterialPath = ""
ref array< intm_ParameterRemovalQueue
ref map< int, ref array< int > > m_ParameterUpdateQueueMap
ref array< intm_UpdatedParameters

Detailed Description

Created once, on manager init. Script-side representation of C++ material class, separate handling.

Definition at line 2 of file ppematclassesbase.c.

Constructor & Destructor Documentation

◆ PPEClassBase()

void PPEClassBase ( string mat_path_override = "")
inlineprotected

Member Function Documentation

◆ ApplyValueChanges()

void ApplyValueChanges ( )
inlineprotected

Definition at line 269 of file ppematclassesbase.c.

References m_UpdatedParameters, and SetFinalParameterValue().

Referenced by ProcessApplyValueChanges().

◆ ChangeMaterialPathUsed()

void ChangeMaterialPathUsed ( string path)
inlineprotected

Definition at line 326 of file ppematclassesbase.c.

References CreateMaterial(), m_Material, m_MaterialPath, and path.

Referenced by ChangePPEMaterial().

◆ CreateDataStructure()

void CreateDataStructure ( )
inlineprotected

◆ CreateMaterial()

void CreateMaterial ( )
inlineprotected

Definition at line 35 of file ppematclassesbase.c.

References g_Game, m_Material, and m_MaterialPath.

Referenced by PPEClassBase(), and ChangeMaterialPathUsed().

◆ DbgPrnt()

void DbgPrnt ( string text)
inlineprotected

Definition at line 380 of file ppematclassesbase.c.

◆ GetCurrentMaterialPath()

string GetCurrentMaterialPath ( )
inlineprotected

Definition at line 333 of file ppematclassesbase.c.

References m_MaterialPath.

◆ GetDefaultMaterialPath()

string GetDefaultMaterialPath ( )
protected

override this if you want to use different path by default; '.emat' is appended automatically

Referenced by Init().

◆ GetMaterial()

Material GetMaterial ( )
inlineprotected

Definition at line 41 of file ppematclassesbase.c.

References m_Material.

Referenced by ChangePPEMaterial().

◆ GetParameterCommandData()

PPEMatClassParameterCommandData GetParameterCommandData ( int parameter_idx)
inlineprotected

Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExceptions.NONE (systemic behaviour).

Definition at line 350 of file ppematclassesbase.c.

References m_MaterialParamMapStructure.

Referenced by GetPostProcessCurrentValues(), GetPostProcessDefaultValues(), SetFinalParameterValue(), PPEDOF::SetFinalParameterValue(), PPEExposureNative::SetFinalParameterValue(), PPEEyeAccomodationNative::SetFinalParameterValue(), and PPELightIntensityParamsNative::SetFinalParameterValue().

◆ GetPostProcessEffectID()

◆ Init()

void Init ( string mat_path_override = "")
inlineprotected

◆ InsertParamValueData()

void InsertParamValueData ( PPERequestParamDataBase request_data)
inlineprotected

◆ InsertUpdatedParameter()

void InsertUpdatedParameter ( int mat_id)
inlineprotected

Definition at line 281 of file ppematclassesbase.c.

References m_UpdatedParameters.

Referenced by OnUpdate().

◆ OnUpdate()

void OnUpdate ( float timeslice,
int order )
inlineprotected

generic update method, take care when overriding!

Definition at line 201 of file ppematclassesbase.c.

References Count, GetPostProcessEffectID(), InsertUpdatedParameter(), m_Manager, m_MaterialParamMapStructure, m_ParameterUpdateQueueMap, and ParamUpdateQueueCleanup().

Referenced by ProcessMaterialUpdates().

◆ ParamUpdateQueueCleanup()

void ParamUpdateQueueCleanup ( int order)
inlineprotected

Definition at line 308 of file ppematclassesbase.c.

References Count, m_ParameterRemovalQueue, and m_ParameterUpdateQueueMap.

Referenced by OnUpdate().

◆ ParamUpdateRemove()

void ParamUpdateRemove ( int parameter_idx)
inlineprotected

Queue selected parameter for removal from the update queue.

Definition at line 288 of file ppematclassesbase.c.

References m_ParameterRemovalQueue.

◆ RegisterMaterialParameters()

void RegisterMaterialParameters ( )
protected

inserted into associative array by parameter int value, parameter registration order does not matter (still ordered, though)

Referenced by PPEClassBase().

◆ RegisterParameterColor()

void RegisterParameterColor ( int idx,
string parameter_name,
float r,
float g,
float b,
float a )
inlineprotected

WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...

Definition at line 102 of file ppematclassesbase.c.

References GetPostProcessEffectID(), m_MaterialParamMapStructure, and PPEMatClassParameterColor().

Referenced by PPEColors::RegisterMaterialParameters(), PPEDistort::RegisterMaterialParameters(), PPEGhost::RegisterMaterialParameters(), and PPEGlow::RegisterMaterialParameters().

◆ RegisterParameterColorEx()

void RegisterParameterColorEx ( int idx,
string parameter_name,
float r,
float g,
float b,
float a,
typename type  )
inlineprotected

WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...

Definition at line 111 of file ppematclassesbase.c.

References Class::CastTo(), GetPostProcessEffectID(), and m_MaterialParamMapStructure.

Referenced by PPEColors::RegisterMaterialParameters(), and PPEGlow::RegisterMaterialParameters().

◆ RegisterParameterResource()

void RegisterParameterResource ( int idx,
string parameter_name,
string default_path )
inlineprotected

Definition at line 141 of file ppematclassesbase.c.

References GetPostProcessEffectID(), and m_MaterialParamMapStructure.

◆ RegisterParameterScalarBool()

◆ RegisterParameterScalarFloat()

◆ RegisterParameterScalarFloatEx()

void RegisterParameterScalarFloatEx ( int idx,
string parameter_name,
float default_value,
float min,
float max,
typename type  )
inlineprotected

WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...

Definition at line 87 of file ppematclassesbase.c.

References Class::CastTo(), GetPostProcessEffectID(), m_MaterialParamMapStructure, and PPEMatClassParameterFloat().

Referenced by PPEColors::RegisterMaterialParameters(), and PPEGlow::RegisterMaterialParameters().

◆ RegisterParameterScalarInt()

◆ RegisterParameterTexture()

void RegisterParameterTexture ( int idx,
string parameter_name,
string default_path )
inlineprotected

Definition at line 133 of file ppematclassesbase.c.

References GetPostProcessEffectID(), and m_MaterialParamMapStructure.

◆ RegisterParameterVector()

void RegisterParameterVector ( int idx,
string parameter_name,
array< float > default_values )
inlineprotected

◆ RemoveRequest()

void RemoveRequest ( int req_idx)
inlineprotected

unused, see 'RemoveActiveRequestFromMaterials' for more info

Definition at line 170 of file ppematclassesbase.c.

Referenced by RemoveActiveRequestFromMaterials().

◆ SetFinalParameterValue()

void SetFinalParameterValue ( int parameter_idx)
inlineprotected

Clamps the values being set to defaults, if there is no request setting non-zero values on the parameter.

Definition at line 228 of file ppematclassesbase.c.

References PPEMatClassParameterCommandData::GetCurrentValues(), GetParameterCommandData(), PPEMatClassParameterCommandData::GetParameterVarType(), and m_Material.

Referenced by ApplyValueChanges().

◆ SetParameterUpdating()

void SetParameterUpdating ( int order,
int parameter_id )
inlineprotected

Queue specific parameter of this material to update.

Definition at line 295 of file ppematclassesbase.c.

References m_ParameterUpdateQueueMap.

Referenced by SetMaterialParamUpdating().

Field Documentation

◆ m_Manager

PPEManager m_Manager
protected

Definition at line 4 of file ppematclassesbase.c.

Referenced by Init(), and OnUpdate().

◆ m_Material

Material m_Material
protected

◆ m_MaterialParamMapStructure

◆ m_MaterialPath

string m_MaterialPath = ""
protected

◆ m_ParameterRemovalQueue

ref array<int> m_ParameterRemovalQueue
protected

◆ m_ParameterUpdateQueueMap

ref map<int, ref array<int> > m_ParameterUpdateQueueMap
protected

◆ m_UpdatedParameters


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