ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
Passthrough Class Reference

A no-operation effect that leaves pixel groups unchanged. More...

#include <Passthrough.h>

Inheritance diagram for Passthrough:
Collaboration diagram for Passthrough:

Public Member Functions

 Passthrough ()
 Constructs a Passthrough effect instance.
 
void ApplyEffect (IPixelGroup *pixelGroup) override
 Applies the passthrough effect to the given pixel group.
 
- Public Member Functions inherited from Effect
 Effect ()
 Default constructor for the Effect class.
 
void SetRatio (float ratio)
 Sets the scaling ratio for the effect.
 

Additional Inherited Members

- Protected Attributes inherited from Effect
float ratio = 0.0f
 A scaling ratio used for dynamic effect adjustments.
 

Detailed Description

A no-operation effect that leaves pixel groups unchanged.

The Passthrough effect is used when no transformations or modifications are required for a pixel group.

Definition at line 24 of file Passthrough.h.

Constructor & Destructor Documentation

◆ Passthrough()

Constructs a Passthrough effect instance.

This constructor initializes the Passthrough effect without requiring any parameters.

Definition at line 3 of file Passthrough.cpp.

Member Function Documentation

◆ ApplyEffect()

void ApplyEffect ( IPixelGroup pixelGroup)
overridevirtual

Applies the passthrough effect to the given pixel group.

This method leaves the pixel group unchanged, effectively acting as a no-op.

Parameters
pixelGroupPointer to the IPixelGroup to which the effect will be applied.

Implements Effect.

Definition at line 5 of file Passthrough.cpp.


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