RAMSES Documentation  27.0.130
Information for RAMSES users and developers
SplineBezierVector4f.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // Copyright (C) 2014 BMW Car IT GmbH
3 // -------------------------------------------------------------------------
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 // -------------------------------------------------------------------------
8 
9 #ifndef RAMSES_SPLINEBEZIERVECTOR4F_H
10 #define RAMSES_SPLINEBEZIERVECTOR4F_H
11 
14 
15 namespace ramses
16 {
21  {
22  public:
38  status_t setKey(splineTimeStamp_t timeStamp, float x, float y, float z, float w, float tangentIn_x, float tangentIn_y, float tangentOut_x, float tangentOut_y);
39 
56  status_t getKeyValues(splineKeyIndex_t keyIndex, splineTimeStamp_t& timeStamp, float& x, float& y, float& z, float& w, float& tangentIn_x, float& tangentIn_y, float& tangentOut_x, float& tangentOut_y) const;
57 
58  protected:
62  friend class AnimationSystemData;
63 
69  explicit SplineBezierVector4f(SplineImpl& pimpl);
70 
75  };
76 }
77 
78 #endif
#define RAMSES_API
Definition: APIExport.h:35
The SplineBezierVector4f stores spline keys of type Vector4f that can be used for animation with Bezi...
Definition: SplineBezierVector4f.h:21
status_t getKeyValues(splineKeyIndex_t keyIndex, splineTimeStamp_t &timeStamp, float &x, float &y, float &z, float &w, float &tangentIn_x, float &tangentIn_y, float &tangentOut_x, float &tangentOut_y) const
Gets key value and time stamp for a given key index.
virtual ~SplineBezierVector4f()
Destructor of the SplineBezierVector4f.
SplineBezierVector4f(SplineImpl &pimpl)
Constructor of SplineBezierVector4f.
status_t setKey(splineTimeStamp_t timeStamp, float x, float y, float z, float w, float tangentIn_x, float tangentIn_y, float tangentOut_x, float tangentOut_y)
Sets a spline key at given time with given value.
The Spline is a set of keys describing an animation.
Definition: Spline.h:20
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
uint32_t status_t
Status is a handle to the result of an API call.
Definition: RamsesFrameworkTypes.h:26
uint32_t splineKeyIndex_t
Definition: AnimationTypes.h:20
uint32_t splineTimeStamp_t
Definition: AnimationTypes.h:18