mirror of
https://github.com/leozide/leocad
synced 2025-01-13 08:01:38 +01:00
Removed Get/SetValue.
This commit is contained in:
parent
e4f4df4376
commit
086be790d0
4 changed files with 13 additions and 24 deletions
|
@ -484,32 +484,32 @@ bool lcLight::SetLightType(lcLightType LightType)
|
|||
|
||||
void lcLight::SetColor(const lcVector3& Color, lcStep Step, bool AddKey)
|
||||
{
|
||||
mColor.SetValue(Color, Step, AddKey);
|
||||
mColor.ChangeKey(Color, Step, AddKey);
|
||||
}
|
||||
|
||||
void lcLight::SetAttenuationDistance(float Distance, lcStep Step, bool AddKey)
|
||||
{
|
||||
mAttenuationDistance.SetValue(Distance, Step, AddKey);
|
||||
mAttenuationDistance.ChangeKey(Distance, Step, AddKey);
|
||||
}
|
||||
|
||||
void lcLight::SetAttenuationPower(float Power, lcStep Step, bool AddKey)
|
||||
{
|
||||
mAttenuationPower.SetValue(Power, Step, AddKey);
|
||||
mAttenuationPower.ChangeKey(Power, Step, AddKey);
|
||||
}
|
||||
|
||||
void lcLight::SetSpotConeAngle(float Angle, lcStep Step, bool AddKey)
|
||||
{
|
||||
mSpotConeAngle.SetValue(Angle, Step, AddKey);
|
||||
mSpotConeAngle.ChangeKey(Angle, Step, AddKey);
|
||||
}
|
||||
|
||||
void lcLight::SetSpotPenumbraAngle(float Angle, lcStep Step, bool AddKey)
|
||||
{
|
||||
mSpotPenumbraAngle.SetValue(Angle, Step, AddKey);
|
||||
mSpotPenumbraAngle.ChangeKey(Angle, Step, AddKey);
|
||||
}
|
||||
|
||||
void lcLight::SetSpotTightness(float Tightness, lcStep Step, bool AddKey)
|
||||
{
|
||||
mSpotTightness.SetValue(Tightness, Step, AddKey);
|
||||
mSpotTightness.ChangeKey(Tightness, Step, AddKey);
|
||||
}
|
||||
|
||||
bool lcLight::SetAreaShape(lcLightAreaShape AreaShape)
|
||||
|
@ -528,7 +528,7 @@ bool lcLight::SetAreaShape(lcLightAreaShape AreaShape)
|
|||
|
||||
bool lcLight::SetAreaGrid(lcVector2i AreaGrid, lcStep Step, bool AddKey)
|
||||
{
|
||||
mAreaGrid.SetValue(AreaGrid, Step, AddKey);
|
||||
mAreaGrid.ChangeKey(AreaGrid, Step, AddKey);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -538,12 +538,12 @@ void lcLight::SetSize(lcVector2 Size, lcStep Step, bool AddKey)
|
|||
if (mLightType == lcLightType::Area && (mAreaShape == lcLightAreaShape::Square || mAreaShape == lcLightAreaShape::Disk))
|
||||
Size[1] = Size[0];
|
||||
|
||||
mSize.SetValue(Size, Step, AddKey);
|
||||
mSize.ChangeKey(Size, Step, AddKey);
|
||||
}
|
||||
|
||||
void lcLight::SetPower(float Power, lcStep Step, bool AddKey)
|
||||
{
|
||||
mPower.SetValue(Power, Step, AddKey);
|
||||
mPower.ChangeKey(Power, Step, AddKey);
|
||||
}
|
||||
|
||||
bool lcLight::SetCastShadow(bool CastShadow)
|
||||
|
|
|
@ -167,12 +167,12 @@ public:
|
|||
|
||||
void SetPosition(const lcVector3& Position, lcStep Step, bool AddKey)
|
||||
{
|
||||
mPosition.SetValue(Position, Step, AddKey);
|
||||
mPosition.ChangeKey(Position, Step, AddKey);
|
||||
}
|
||||
|
||||
void SetRotation(const lcMatrix33& Rotation, lcStep Step, bool AddKey)
|
||||
{
|
||||
mRotation.SetValue(Rotation, Step, AddKey);
|
||||
mRotation.ChangeKey(Rotation, Step, AddKey);
|
||||
}
|
||||
|
||||
lcVector3 GetRotationCenter() const
|
||||
|
|
|
@ -63,17 +63,6 @@ public:
|
|||
return mValue;
|
||||
}
|
||||
|
||||
const T& GetValue() const
|
||||
{
|
||||
return mValue;
|
||||
}
|
||||
|
||||
void SetValue(const T& Value, lcStep Step, bool AddKey)
|
||||
{
|
||||
mValue = Value;
|
||||
ChangeKey(Value, Step, AddKey);
|
||||
}
|
||||
|
||||
void Update(lcStep Step)
|
||||
{
|
||||
mValue = CalculateKey(Step);
|
||||
|
|
|
@ -269,12 +269,12 @@ public:
|
|||
|
||||
void SetPosition(const lcVector3& Position, lcStep Step, bool AddKey)
|
||||
{
|
||||
mPosition.SetValue(Position, Step, AddKey);
|
||||
mPosition.ChangeKey(Position, Step, AddKey);
|
||||
}
|
||||
|
||||
void SetRotation(const lcMatrix33& Rotation, lcStep Step, bool AddKey)
|
||||
{
|
||||
mRotation.SetValue(Rotation, Step, AddKey);
|
||||
mRotation.ChangeKey(Rotation, Step, AddKey);
|
||||
}
|
||||
|
||||
lcVector3 GetRotationCenter() const
|
||||
|
|
Loading…
Reference in a new issue