ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
Test.h
Go to the documentation of this file.
1/**
2 * @file Test.h
3 * @brief Defines the `Test` effect class for debugging and memory issue detection.
4 *
5 * The `Test` effect highlights potential memory and rendering issues by applying
6 * a controlled debug pattern to the pixel group.
7 *
8 * @date 22/12/2024
9 * @version 1.0
10 * @author Coela Can't
11 */
12
13#pragma once
14
15#include "Effect.h"
16#include "../../Utils/Signals/FunctionGenerator.h"
17
18/**
19 * @class Test
20 * @brief A debugging effect used to identify memory issues in pixel rendering.
21 *
22 * The `Test` effect applies a simple pattern to the pixel group to help detect
23 * and troubleshoot memory-related issues during development.
24 */
25class Test : public Effect {
26private:
27 /// Function generator for the debug intensity values.
29
30public:
31 /**
32 * @brief Constructs a `Test` effect instance.
33 */
34 Test();
35
36 /**
37 * @brief Applies the debugging effect to the given pixel group.
38 *
39 * The effect generates a simple pattern with directional indices to highlight
40 * memory allocation or access issues.
41 *
42 * @param pixelGroup Pointer to the `IPixelGroup` to which the effect will be applied.
43 */
44 void ApplyEffect(IPixelGroup* pixelGroup) override;
45};
Defines the base Effect class for applying transformations or effects to pixel groups.
Abstract base class for applying visual effects to pixel groups.
Definition Effect.h:26
A class to generate various waveform functions with customizable parameters.
@ Sine
Sine waveform.
Interface for managing and interacting with a collection of pixels.
Definition IPixelGroup.h:25
A debugging effect used to identify memory issues in pixel rendering.
Definition Test.h:25
Test()
Constructs a Test effect instance.
Definition Test.cpp:3
FunctionGenerator fGenD
Function generator for the debug intensity values.
Definition Test.h:28
void ApplyEffect(IPixelGroup *pixelGroup) override
Applies the debugging effect to the given pixel group.
Definition Test.cpp:5