Open 3D Engine GradientSignal Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
GradientSignal::ThresholdGradientComponent Class Reference

#include <ThresholdGradientComponent.h>

Inherits AZ::Component, GradientRequestBus::Handler, and ThresholdGradientRequestBus::Handler.

Public Member Functions

 AZ_COMPONENT (ThresholdGradientComponent, ThresholdGradientComponentTypeId)
 
 ThresholdGradientComponent (const ThresholdGradientConfig &configuration)
 
void Activate () override
 
void Deactivate () override
 
bool ReadInConfig (const AZ::ComponentConfig *baseConfig) override
 
bool WriteOutConfig (AZ::ComponentConfig *outBaseConfig) const override
 
float GetValue (const GradientSampleParams &sampleParams) const override
 
void GetValues (AZStd::span< const AZ::Vector3 > positions, AZStd::span< float > outValues) const override
 
bool IsEntityInHierarchy (const AZ::EntityId &entityId) const override
 

Static Public Member Functions

static void GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &services)
 
static void GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &services)
 
static void GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &services)
 
static void Reflect (AZ::ReflectContext *context)
 

Protected Member Functions

float GetThreshold () const override
 
void SetThreshold (float threshold) override
 
GradientSamplerGetGradientSampler () override
 

Friends

template<typename , typename >
class LmbrCentral::EditorWrappedComponentBase
 

Detailed Description

calculates a gradient value by converting values from another gradient to 0 or 1


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