Channel
-
class Channel : public HPS::Sprocket
The Channel class describes part of an Animation through the use of a Sampler. A Channel is associated to an Animation, and as such needs to be created through one of the Animation::AddChannel functions. Each Channel is specific to a type of animation and targets a specific object in the scene graph.
Public Types
-
enum class ChannelType
The type of Animation described by this Channel.
Values:
-
enumerator CameraPosition
The position of the camera present at the target segment will be changed.
-
enumerator CameraTarget
The target of the camera present at the target segment will be changed.
-
enumerator CameraUp
The up vector of the camera present at the target segment will be changed.
-
enumerator CameraPosition
Public Functions
-
Channel()
-
bool Equals(Channel const &in_that) const
Check if the source Channel points to the same underlying impl as this Channel.
-
ChannelType GetChannelType() const
Returns the type of Animation which will be performed by this Channel
- Returns:
The Channel Type
-
UTF8 &GetName() const
Returns the name given to this Channel when it was added to an Animation
- Returns:
The name of this Channel
-
KeyPath const &GetTarget() const
Returns the target of this Channel. If this Channel is being used to animate a camera property this key path will be empty.
- Returns:
The SegmentKey targeted by this Channel
-
inline virtual HPS::Type ObjectType() const
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Returns:
The declared type of the object in question, which may differ from the true, underlying type.
-
bool operator!=(Channel const &in_that) const
Check if the source Channel points to a different impl than this Channel.
-
bool operator==(Channel const &in_that) const
Check if the source Channel points to the same underlying impl as this Channel.
-
void SetSampler(Sampler const &sampler)
Sets the Sampler associated with this Channel
- Parameters:
in_that – The source Sampler to use.
-
~Channel()
-
enum class ChannelType