\hypertarget{class_ogre_1_1_animation_state}{}\doxysection{Ogre\+::Animation\+State Class Reference}
\label{class_ogre_1_1_animation_state}\index{Ogre::AnimationState@{Ogre::AnimationState}}


Represents the state of an animation and the weight of its influence.  




{\ttfamily \#include $<$Ogre\+Animation\+State.\+h$>$}



Inheritance diagram for Ogre\+::Animation\+State\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=202pt]{class_ogre_1_1_animation_state__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef std\+::vector$<$ float $>$ \mbox{\hyperlink{class_ogre_1_1_animation_state_a4acdb34d7886a9ba6e9d7fd977be468c}{Bone\+Blend\+Mask}}
\begin{DoxyCompactList}\small\item\em Typedef for an array of float values used as a bone blend mask. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_animation_state_a591c9a568799cf5261d3806129da2f5d}{Animation\+State}} (\mbox{\hyperlink{class_ogre_1_1_animation_state_set}{Animation\+State\+Set}} $\ast$parent, const \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}} \&rhs)
\begin{DoxyCompactList}\small\item\em Constructor to copy from an existing state with new parent. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_animation_state_a0a78387f3637ec52d9eda6614adbf479}{Animation\+State}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&anim\+Name, \mbox{\hyperlink{class_ogre_1_1_animation_state_set}{Animation\+State\+Set}} $\ast$parent, \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} time\+Pos, \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} length, \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} weight=1.\+0, bool enabled=false)
\begin{DoxyCompactList}\small\item\em Normal constructor with all params supplied. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_a1c17270d5133a34a1d2f846d34f61a69}{\+\_\+set\+Blend\+Mask}} (const \mbox{\hyperlink{class_ogre_1_1_animation_state_a4acdb34d7886a9ba6e9d7fd977be468c}{Bone\+Blend\+Mask}} $\ast$blend\+Mask)
\begin{DoxyCompactList}\small\item\em Set the blend mask. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_ad38d5a17259f4a88b29773fda638e9fa}{\+\_\+set\+Blend\+Mask\+Data}} (const float $\ast$blend\+Mask\+Data)
\begin{DoxyCompactList}\small\item\em Set the blend mask data (might be dangerous) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_a4670365ae58e531297816ede430b0971}{add\+Time}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} offset)
\begin{DoxyCompactList}\small\item\em Modifies the time position, adjusting for animation length. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_ad49f3512efa4716c778e48d1223f1b4f}{copy\+State\+From}} (const \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}} \&anim\+State)
\begin{DoxyCompactList}\small\item\em Copies the states from another animation state, preserving the animation name (unlike operator=) but copying everything else. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_a06594a53335afbe8ccb67331e35a32fd}{create\+Blend\+Mask}} (size\+\_\+t blend\+Mask\+Size\+Hint, float initial\+Weight=1.\+0f)
\begin{DoxyCompactList}\small\item\em Create a new blend mask with the given number of entries. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_a78fe4050a91268162602c50cf03f9774}{destroy\+Blend\+Mask}} ()
\begin{DoxyCompactList}\small\item\em Destroy the currently set blend mask. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \& \mbox{\hyperlink{class_ogre_1_1_animation_state_aeb2b66c49de14384860c6599db5b7f30}{get\+Animation\+Name}} () const
\begin{DoxyCompactList}\small\item\em Gets the name of the animation to which this state applies. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{class_ogre_1_1_animation_state_a4acdb34d7886a9ba6e9d7fd977be468c}{Bone\+Blend\+Mask}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_animation_state_ae4fd5f5523ac2428599220ab2ff0bd59}{get\+Blend\+Mask}} () const
\begin{DoxyCompactList}\small\item\em Get the current blend mask (const version, may be 0) \end{DoxyCompactList}\item 
float \mbox{\hyperlink{class_ogre_1_1_animation_state_a41115698455a3d6ed4451431bee0552b}{get\+Blend\+Mask\+Entry}} (size\+\_\+t bone\+Handle) const
\begin{DoxyCompactList}\small\item\em Get the weight for the bone identified by the given handle. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_animation_state_af8670094f9bedeea874ca9997982829b}{get\+Enabled}} (void) const
\begin{DoxyCompactList}\small\item\em Returns true if this animation is currently enabled. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\hyperlink{class_ogre_1_1_animation_state_a98eb1028a7112df116f976c309f9538f}{get\+Length}} () const
\begin{DoxyCompactList}\small\item\em Gets the total length of this animation (may be shorter than whole animation) \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_animation_state_aeb306a097ff05af022b8d55a660812f2}{get\+Loop}} (void) const
\begin{DoxyCompactList}\small\item\em Gets whether or not this animation loops ~\newline
 \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_animation_state_set}{Animation\+State\+Set}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_animation_state_a86a8707a6677b3c747f16fc5865902b1}{get\+Parent}} (void) const
\begin{DoxyCompactList}\small\item\em Get the parent animation state set. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\hyperlink{class_ogre_1_1_animation_state_a3c8ad3c6386cadc0da243fb7daee5d87}{get\+Time\+Position}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the time position for this animation. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} \mbox{\hyperlink{class_ogre_1_1_animation_state_ae4b159b5488a0ddb7d10f0d2a4208cf5}{get\+Weight}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the weight (influence) of this animation. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_animation_state_add31ae35acaa09ebd7bc09e8d28415c3}{has\+Blend\+Mask}} () const
\begin{DoxyCompactList}\small\item\em Return whether there is currently a valid blend mask set. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_animation_state_a18e023bab8cd75726512d15c78ee75ac}{has\+Ended}} (void) const
\begin{DoxyCompactList}\small\item\em Returns true if the animation has reached the end and is not looping. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_animation_state_a61f86b8390348f36404afa5be769169d}{operator!=}} (const \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}} \&rhs) const
\begin{DoxyCompactList}\small\item\em Inequality operator. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_animation_state_a4e500022b2ae6b5e4dcd667ed1943bb0}{operator==}} (const \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}} \&rhs) const
\begin{DoxyCompactList}\small\item\em Equality operator. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_acd87ade1535b3721676d7257b9370a5a}{set\+Blend\+Mask\+Entry}} (size\+\_\+t bone\+Handle, float weight)
\begin{DoxyCompactList}\small\item\em Set the weight for the bone identified by the given handle. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_a7acaa951a87614f39df6a7f767a88f60}{set\+Enabled}} (bool enabled)
\begin{DoxyCompactList}\small\item\em Sets whether this animation is enabled. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_af1910e8bbaebe61359ac7edb638e5cbc}{set\+Length}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} len)
\begin{DoxyCompactList}\small\item\em Sets the total length of this animation (may be shorter than whole animation) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_a1f6272f69d31ff9fdeca356cfcf0bc9d}{set\+Loop}} (bool loop)
\begin{DoxyCompactList}\small\item\em Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_ae69ff5a068d086be7ecc048a71ed8efc}{set\+Time\+Position}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} time\+Pos)
\begin{DoxyCompactList}\small\item\em Sets the time position for this animation. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_animation_state_a9666320c8d7739e3b0ee8ebd3bfe84aa}{set\+Weight}} (\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} weight)
\begin{DoxyCompactList}\small\item\em Sets the weight (influence) of this animation. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Represents the state of an animation and the weight of its influence. 

\begin{DoxyRemark}{Remarks}
Other classes can hold instances of this class to store the state of any animations they are using. 
\end{DoxyRemark}


\doxysubsection{Member Typedef Documentation}
\mbox{\Hypertarget{class_ogre_1_1_animation_state_a4acdb34d7886a9ba6e9d7fd977be468c}\label{class_ogre_1_1_animation_state_a4acdb34d7886a9ba6e9d7fd977be468c}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!BoneBlendMask@{BoneBlendMask}}
\index{BoneBlendMask@{BoneBlendMask}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{BoneBlendMask}{BoneBlendMask}}
{\footnotesize\ttfamily typedef std\+::vector$<$float$>$ \mbox{\hyperlink{class_ogre_1_1_animation_state_a4acdb34d7886a9ba6e9d7fd977be468c}{Ogre\+::\+Animation\+State\+::\+Bone\+Blend\+Mask}}}



Typedef for an array of float values used as a bone blend mask. 



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_animation_state_a0a78387f3637ec52d9eda6614adbf479}\label{class_ogre_1_1_animation_state_a0a78387f3637ec52d9eda6614adbf479}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!AnimationState@{AnimationState}}
\index{AnimationState@{AnimationState}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{AnimationState()}{AnimationState()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Ogre\+::\+Animation\+State\+::\+Animation\+State (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{anim\+Name,  }\item[{\mbox{\hyperlink{class_ogre_1_1_animation_state_set}{Animation\+State\+Set}} $\ast$}]{parent,  }\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{time\+Pos,  }\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{length,  }\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{weight = {\ttfamily 1.0},  }\item[{bool}]{enabled = {\ttfamily false} }\end{DoxyParamCaption})}



Normal constructor with all params supplied. 


\begin{DoxyParams}{Parameters}
{\em anim\+Name} & The name of this state. \\
\hline
{\em parent} & The parent \mbox{\hyperlink{class_ogre_1_1_animation_state_set}{Animation\+State\+Set}} that this state will belong to. \\
\hline
{\em time\+Pos} & The position, in seconds, where this state will begin. \\
\hline
{\em length} & The length, in seconds, of this animation state. \\
\hline
{\em weight} & Weight to apply the animation state with. \\
\hline
{\em enabled} & Whether the animation state is enabled. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_animation_state_a591c9a568799cf5261d3806129da2f5d}\label{class_ogre_1_1_animation_state_a591c9a568799cf5261d3806129da2f5d}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!AnimationState@{AnimationState}}
\index{AnimationState@{AnimationState}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{AnimationState()}{AnimationState()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Ogre\+::\+Animation\+State\+::\+Animation\+State (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_animation_state_set}{Animation\+State\+Set}} $\ast$}]{parent,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}} \&}]{rhs }\end{DoxyParamCaption})}



Constructor to copy from an existing state with new parent. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_animation_state_aeb2b66c49de14384860c6599db5b7f30}\label{class_ogre_1_1_animation_state_aeb2b66c49de14384860c6599db5b7f30}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getAnimationName@{getAnimationName}}
\index{getAnimationName@{getAnimationName}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getAnimationName()}{getAnimationName()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}\& Ogre\+::\+Animation\+State\+::get\+Animation\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Gets the name of the animation to which this state applies. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a3c8ad3c6386cadc0da243fb7daee5d87}\label{class_ogre_1_1_animation_state_a3c8ad3c6386cadc0da243fb7daee5d87}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getTimePosition@{getTimePosition}}
\index{getTimePosition@{getTimePosition}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getTimePosition()}{getTimePosition()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} Ogre\+::\+Animation\+State\+::get\+Time\+Position (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}



Gets the time position for this animation. 



Referenced by Ogre\+::\+Animation\+State\+Controller\+Value\+::get\+Value().

\mbox{\Hypertarget{class_ogre_1_1_animation_state_ae69ff5a068d086be7ecc048a71ed8efc}\label{class_ogre_1_1_animation_state_ae69ff5a068d086be7ecc048a71ed8efc}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!setTimePosition@{setTimePosition}}
\index{setTimePosition@{setTimePosition}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{setTimePosition()}{setTimePosition()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::set\+Time\+Position (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{time\+Pos }\end{DoxyParamCaption})}



Sets the time position for this animation. 



Referenced by Ogre\+::\+Animation\+State\+Controller\+Value\+::set\+Value().

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a98eb1028a7112df116f976c309f9538f}\label{class_ogre_1_1_animation_state_a98eb1028a7112df116f976c309f9538f}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getLength@{getLength}}
\index{getLength@{getLength}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getLength()}{getLength()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} Ogre\+::\+Animation\+State\+::get\+Length (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Gets the total length of this animation (may be shorter than whole animation) 



Referenced by Ogre\+::\+Animation\+State\+Controller\+Value\+::get\+Value(), and Ogre\+::\+Animation\+State\+Controller\+Value\+::set\+Value().

\mbox{\Hypertarget{class_ogre_1_1_animation_state_af1910e8bbaebe61359ac7edb638e5cbc}\label{class_ogre_1_1_animation_state_af1910e8bbaebe61359ac7edb638e5cbc}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!setLength@{setLength}}
\index{setLength@{setLength}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{setLength()}{setLength()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::set\+Length (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{len }\end{DoxyParamCaption})}



Sets the total length of this animation (may be shorter than whole animation) 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_ae4b159b5488a0ddb7d10f0d2a4208cf5}\label{class_ogre_1_1_animation_state_ae4b159b5488a0ddb7d10f0d2a4208cf5}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getWeight@{getWeight}}
\index{getWeight@{getWeight}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getWeight()}{getWeight()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}} Ogre\+::\+Animation\+State\+::get\+Weight (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}



Gets the weight (influence) of this animation. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a9666320c8d7739e3b0ee8ebd3bfe84aa}\label{class_ogre_1_1_animation_state_a9666320c8d7739e3b0ee8ebd3bfe84aa}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!setWeight@{setWeight}}
\index{setWeight@{setWeight}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{setWeight()}{setWeight()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::set\+Weight (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{weight }\end{DoxyParamCaption})}



Sets the weight (influence) of this animation. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a4670365ae58e531297816ede430b0971}\label{class_ogre_1_1_animation_state_a4670365ae58e531297816ede430b0971}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!addTime@{addTime}}
\index{addTime@{addTime}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{addTime()}{addTime()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::add\+Time (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}}]{offset }\end{DoxyParamCaption})}



Modifies the time position, adjusting for animation length. 


\begin{DoxyParams}{Parameters}
{\em offset} & The amount of time, in seconds, to extend the animation. \\
\hline
\end{DoxyParams}
\begin{DoxyRemark}{Remarks}
This method loops at the edges if animation looping is enabled. 
\end{DoxyRemark}


Referenced by Ogre\+::\+Animation\+State\+Controller\+Value\+::set\+Value().

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a18e023bab8cd75726512d15c78ee75ac}\label{class_ogre_1_1_animation_state_a18e023bab8cd75726512d15c78ee75ac}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!hasEnded@{hasEnded}}
\index{hasEnded@{hasEnded}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{hasEnded()}{hasEnded()}}
{\footnotesize\ttfamily bool Ogre\+::\+Animation\+State\+::has\+Ended (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}



Returns true if the animation has reached the end and is not looping. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_af8670094f9bedeea874ca9997982829b}\label{class_ogre_1_1_animation_state_af8670094f9bedeea874ca9997982829b}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getEnabled@{getEnabled}}
\index{getEnabled@{getEnabled}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getEnabled()}{getEnabled()}}
{\footnotesize\ttfamily bool Ogre\+::\+Animation\+State\+::get\+Enabled (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}



Returns true if this animation is currently enabled. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a7acaa951a87614f39df6a7f767a88f60}\label{class_ogre_1_1_animation_state_a7acaa951a87614f39df6a7f767a88f60}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!setEnabled@{setEnabled}}
\index{setEnabled@{setEnabled}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{setEnabled()}{setEnabled()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::set\+Enabled (\begin{DoxyParamCaption}\item[{bool}]{enabled }\end{DoxyParamCaption})}



Sets whether this animation is enabled. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a4e500022b2ae6b5e4dcd667ed1943bb0}\label{class_ogre_1_1_animation_state_a4e500022b2ae6b5e4dcd667ed1943bb0}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!operator==@{operator==}}
\index{operator==@{operator==}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{operator==()}{operator==()}}
{\footnotesize\ttfamily bool Ogre\+::\+Animation\+State\+::operator== (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}} \&}]{rhs }\end{DoxyParamCaption}) const}



Equality operator. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a61f86b8390348f36404afa5be769169d}\label{class_ogre_1_1_animation_state_a61f86b8390348f36404afa5be769169d}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!operator"!=@{operator"!=}}
\index{operator"!=@{operator"!=}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{operator"!=()}{operator!=()}}
{\footnotesize\ttfamily bool Ogre\+::\+Animation\+State\+::operator!= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}} \&}]{rhs }\end{DoxyParamCaption}) const}



Inequality operator. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a1f6272f69d31ff9fdeca356cfcf0bc9d}\label{class_ogre_1_1_animation_state_a1f6272f69d31ff9fdeca356cfcf0bc9d}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!setLoop@{setLoop}}
\index{setLoop@{setLoop}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{setLoop()}{setLoop()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::set\+Loop (\begin{DoxyParamCaption}\item[{bool}]{loop }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_aeb306a097ff05af022b8d55a660812f2}\label{class_ogre_1_1_animation_state_aeb306a097ff05af022b8d55a660812f2}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getLoop@{getLoop}}
\index{getLoop@{getLoop}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getLoop()}{getLoop()}}
{\footnotesize\ttfamily bool Ogre\+::\+Animation\+State\+::get\+Loop (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets whether or not this animation loops ~\newline
 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_ad49f3512efa4716c778e48d1223f1b4f}\label{class_ogre_1_1_animation_state_ad49f3512efa4716c778e48d1223f1b4f}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!copyStateFrom@{copyStateFrom}}
\index{copyStateFrom@{copyStateFrom}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{copyStateFrom()}{copyStateFrom()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::copy\+State\+From (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}} \&}]{anim\+State }\end{DoxyParamCaption})}



Copies the states from another animation state, preserving the animation name (unlike operator=) but copying everything else. 


\begin{DoxyParams}{Parameters}
{\em anim\+State} & Reference to animation state which will use as source. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_animation_state_a86a8707a6677b3c747f16fc5865902b1}\label{class_ogre_1_1_animation_state_a86a8707a6677b3c747f16fc5865902b1}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getParent@{getParent}}
\index{getParent@{getParent}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getParent()}{getParent()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_animation_state_set}{Animation\+State\+Set}}$\ast$ Ogre\+::\+Animation\+State\+::get\+Parent (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the parent animation state set. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a06594a53335afbe8ccb67331e35a32fd}\label{class_ogre_1_1_animation_state_a06594a53335afbe8ccb67331e35a32fd}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!createBlendMask@{createBlendMask}}
\index{createBlendMask@{createBlendMask}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{createBlendMask()}{createBlendMask()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::create\+Blend\+Mask (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{blend\+Mask\+Size\+Hint,  }\item[{float}]{initial\+Weight = {\ttfamily 1.0f} }\end{DoxyParamCaption})}



Create a new blend mask with the given number of entries. 

In addition to assigning a single weight value to a skeletal animation, it may be desirable to assign animation weights per bone using a \textquotesingle{}blend mask\textquotesingle{}.


\begin{DoxyParams}{Parameters}
{\em blend\+Mask\+Size\+Hint} & The number of bones of the skeleton owning this \mbox{\hyperlink{class_ogre_1_1_animation_state}{Animation\+State}}. \\
\hline
{\em initial\+Weight} & The value all the blend mask entries will be initialised with (negative to skip initialisation) \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_animation_state_a78fe4050a91268162602c50cf03f9774}\label{class_ogre_1_1_animation_state_a78fe4050a91268162602c50cf03f9774}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!destroyBlendMask@{destroyBlendMask}}
\index{destroyBlendMask@{destroyBlendMask}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{destroyBlendMask()}{destroyBlendMask()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::destroy\+Blend\+Mask (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Destroy the currently set blend mask. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_ad38d5a17259f4a88b29773fda638e9fa}\label{class_ogre_1_1_animation_state_ad38d5a17259f4a88b29773fda638e9fa}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!\_setBlendMaskData@{\_setBlendMaskData}}
\index{\_setBlendMaskData@{\_setBlendMaskData}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{\_setBlendMaskData()}{\_setBlendMaskData()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::\+\_\+set\+Blend\+Mask\+Data (\begin{DoxyParamCaption}\item[{const float $\ast$}]{blend\+Mask\+Data }\end{DoxyParamCaption})}



Set the blend mask data (might be dangerous) 

\begin{DoxyParagraph}{The size of the array should match the number of entries the}
blend mask was created with.
\end{DoxyParagraph}
\begin{DoxyParagraph}{Stick to the set\+Blend\+Mask\+Entry method if you don\textquotesingle{}t know exactly what you\textquotesingle{}re doing.}

\end{DoxyParagraph}
\mbox{\Hypertarget{class_ogre_1_1_animation_state_a1c17270d5133a34a1d2f846d34f61a69}\label{class_ogre_1_1_animation_state_a1c17270d5133a34a1d2f846d34f61a69}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!\_setBlendMask@{\_setBlendMask}}
\index{\_setBlendMask@{\_setBlendMask}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{\_setBlendMask()}{\_setBlendMask()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::\+\_\+set\+Blend\+Mask (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_animation_state_a4acdb34d7886a9ba6e9d7fd977be468c}{Bone\+Blend\+Mask}} $\ast$}]{blend\+Mask }\end{DoxyParamCaption})}



Set the blend mask. 

\begin{DoxyParagraph}{The size of the array should match the number of entries the}
blend mask was created with.
\end{DoxyParagraph}
\begin{DoxyParagraph}{Stick to the set\+Blend\+Mask\+Entry method if you don\textquotesingle{}t know exactly what you\textquotesingle{}re doing.}

\end{DoxyParagraph}
\mbox{\Hypertarget{class_ogre_1_1_animation_state_ae4fd5f5523ac2428599220ab2ff0bd59}\label{class_ogre_1_1_animation_state_ae4fd5f5523ac2428599220ab2ff0bd59}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getBlendMask@{getBlendMask}}
\index{getBlendMask@{getBlendMask}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getBlendMask()}{getBlendMask()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{class_ogre_1_1_animation_state_a4acdb34d7886a9ba6e9d7fd977be468c}{Bone\+Blend\+Mask}}$\ast$ Ogre\+::\+Animation\+State\+::get\+Blend\+Mask (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the current blend mask (const version, may be 0) 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_add31ae35acaa09ebd7bc09e8d28415c3}\label{class_ogre_1_1_animation_state_add31ae35acaa09ebd7bc09e8d28415c3}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!hasBlendMask@{hasBlendMask}}
\index{hasBlendMask@{hasBlendMask}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{hasBlendMask()}{hasBlendMask()}}
{\footnotesize\ttfamily bool Ogre\+::\+Animation\+State\+::has\+Blend\+Mask (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Return whether there is currently a valid blend mask set. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_acd87ade1535b3721676d7257b9370a5a}\label{class_ogre_1_1_animation_state_acd87ade1535b3721676d7257b9370a5a}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!setBlendMaskEntry@{setBlendMaskEntry}}
\index{setBlendMaskEntry@{setBlendMaskEntry}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{setBlendMaskEntry()}{setBlendMaskEntry()}}
{\footnotesize\ttfamily void Ogre\+::\+Animation\+State\+::set\+Blend\+Mask\+Entry (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{bone\+Handle,  }\item[{float}]{weight }\end{DoxyParamCaption})}



Set the weight for the bone identified by the given handle. 

\mbox{\Hypertarget{class_ogre_1_1_animation_state_a41115698455a3d6ed4451431bee0552b}\label{class_ogre_1_1_animation_state_a41115698455a3d6ed4451431bee0552b}} 
\index{Ogre::AnimationState@{Ogre::AnimationState}!getBlendMaskEntry@{getBlendMaskEntry}}
\index{getBlendMaskEntry@{getBlendMaskEntry}!Ogre::AnimationState@{Ogre::AnimationState}}
\doxysubsubsection{\texorpdfstring{getBlendMaskEntry()}{getBlendMaskEntry()}}
{\footnotesize\ttfamily float Ogre\+::\+Animation\+State\+::get\+Blend\+Mask\+Entry (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{bone\+Handle }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the weight for the bone identified by the given handle. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_animation_state_8h}{Ogre\+Animation\+State.\+h}}\end{DoxyCompactItemize}
