OpenSceneGraph/doc/doc++/osg/AnimationPath.html

230 lines
10 KiB
HTML
Raw Normal View History

2002-04-25 04:13:50 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class SG_EXPORT osg::AnimationPath</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class SG_EXPORT <A HREF="#DOC.DOCU">osg::AnimationPath</A></H2></H2><BLOCKQUOTE>AnimationPath for specify the time varying transformation pathway to use when update camera and model objects.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
2002-08-29 22:29:49 +08:00
<param name=classes value="CReferenced,MReferenced.html,CAnimationPath,MAnimationPath.html">
2002-04-25 04:13:50 +08:00
<param name=before value="M,M">
<param name=after value="Md_,M">
<param name=indent value="0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.2.1">AnimationPath</A></B>()
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.2.3">getMatrix</A></B>(double time, <!1><A HREF="Matrix.html">Matrix</A>&amp; matrix) const
<DD><I>get the transformation matrix for a point in time</I>
2002-04-25 04:13:50 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.2.4">getInverse</A></B>(double time, <!1><A HREF="Matrix.html">Matrix</A>&amp; matrix) const
<DD><I>get the inverse transformation matrix for a point in time</I>
2002-04-25 04:13:50 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.2.5">getInterpolatedControlPoint</A></B>(double time, <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>&amp; <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>) const
<DD><I>get the local ControlPoint frame for a point in time</I>
2002-04-25 04:13:50 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.2.6">insert</A></B>(double time, const <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>&amp; <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>)
2002-04-25 04:13:50 +08:00
<DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.2.7">getFirstTime</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.2.8">getLastTime</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.2.2.9">getPeriod</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.2.11">setLoopMode</A></B>(<!1><A HREF="AnimationPath.html#DOC.2.2.10">LoopMode</A> lm)
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="AnimationPath.html#DOC.2.2.10">LoopMode</A> <B><A HREF="#DOC.2.2.12">getLoopMode</A></B>() const
2002-04-25 04:13:50 +08:00
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>struct <B><A HREF="#DOC.2.2.2">ControlPoint</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.2.10">LoopMode</A></B>
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="AnimationPath.html#DOC.2.2.10">LoopMode</A> <B><A HREF="#DOC.2.2.15">_loopMode</A></B>
2002-04-25 04:13:50 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.2.13">~AnimationPath</A></B>()
2002-04-25 04:13:50 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Members</H3><DD><DT>
2002-08-29 22:29:49 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map&lt;double,<!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>&gt; TimeControlPointMap TimeControlPointMap <B><A HREF="#DOC.2.2.14">_timeControlPointMap</A></B>
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Referenced.html">Referenced</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Referenced.html">Referenced</A>&amp; <B>operator = </B>(<!1><A HREF="Referenced.html">Referenced</A>&amp;)
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>ref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref_nodelete</B>() const
<DT>
<IMG ALT="o" SRC=icon2.gif>inline const int <B>referenceCount</B>() const
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>mutable int <B>_refCount</B>
2002-04-25 04:13:50 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>AnimationPath for specify the time varying transformation pathway to use when update camera and model objects.
Subclassed from Transform::ComputeTransformCallback allows AnimationPath to
be attached directly to Transform nodes to move subgraphs around the scene.</BLOCKQUOTE>
<DL>
<A NAME="AnimationPath"></A>
<A NAME="DOC.2.2.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> AnimationPath()</B></TT>
<DL><DT><DD></DL><P>
2002-08-29 22:29:49 +08:00
<A NAME="ControlPoint"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.2.2"></A>
2002-08-29 22:29:49 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>struct ControlPoint</B></TT>
2002-04-25 04:13:50 +08:00
<DL><DT><DD></DL><P><DL>
2002-08-29 22:29:49 +08:00
<A NAME="ControlPoint"></A>
<A NAME="DOC.2.2.2.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ControlPoint()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="ControlPoint"></A>
<A NAME="DOC.2.2.2.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ControlPoint(const <!1><A HREF="Vec3.html">osg::Vec3</A>&amp; position)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="ControlPoint"></A>
<A NAME="DOC.2.2.2.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ControlPoint(const <!1><A HREF="Vec3.html">osg::Vec3</A>&amp; position, const <!1><A HREF="Quat.html">osg::Quat</A>&amp; rotation)</B></TT>
2002-04-25 04:13:50 +08:00
<DL><DT><DD></DL><P>
2002-08-29 22:29:49 +08:00
<A NAME="ControlPoint"></A>
<A NAME="DOC.2.2.2.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ControlPoint(const <!1><A HREF="Vec3.html">osg::Vec3</A>&amp; position, const <!1><A HREF="Quat.html">osg::Quat</A>&amp; rotation, const <!1><A HREF="Vec3.html">osg::Vec3</A>&amp; <!1><A HREF="Matrix.html#DOC.2.73.42">scale</A>)</B></TT>
2002-04-25 04:13:50 +08:00
<DL><DT><DD></DL><P>
<A NAME="_position"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.2.2.5"></A>
2002-04-25 04:13:50 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Vec3.html">osg::Vec3</A> _position</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_rotation"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.2.2.6"></A>
2002-04-25 04:13:50 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Quat.html">osg::Quat</A> _rotation</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_scale"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.2.2.7"></A>
2002-04-25 04:13:50 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Vec3.html">osg::Vec3</A> _scale</B></TT>
<DL><DT><DD></DL><P>
<A NAME="interpolate"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.2.2.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void interpolate(const float ratio, const <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>&amp; <!1><A HREF="ImpostorSpriteManager.html#DOC.2.64.3">first</A>, const <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>&amp; second)</B></TT>
2002-04-25 04:13:50 +08:00
<DL><DT><DD></DL><P>
<A NAME="getMatrix"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.2.2.9"></A>
2002-04-25 04:13:50 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void getMatrix(<!1><A HREF="Matrix.html">Matrix</A>&amp; matrix) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="getInverse"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.2.2.10"></A>
2002-04-25 04:13:50 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void getInverse(<!1><A HREF="Matrix.html">Matrix</A>&amp; matrix) const </B></TT>
<DL><DT><DD></DL><P></DL>
2002-08-29 22:29:49 +08:00
<A NAME="getMatrix"></A>
<A NAME="DOC.2.2.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool getMatrix(double time, <!1><A HREF="Matrix.html">Matrix</A>&amp; matrix) const </B></TT>
<DD>get the transformation matrix for a point in time
<DL><DT><DD></DL><P>
<A NAME="getInverse"></A>
<A NAME="DOC.2.2.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool getInverse(double time, <!1><A HREF="Matrix.html">Matrix</A>&amp; matrix) const </B></TT>
<DD>get the inverse transformation matrix for a point in time
<DL><DT><DD></DL><P>
<A NAME="getInterpolatedControlPoint"></A>
<A NAME="DOC.2.2.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool getInterpolatedControlPoint(double time, <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>&amp; <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>) const </B></TT>
<DD>get the local ControlPoint frame for a point in time
<DL><DT><DD></DL><P>
2002-04-25 04:13:50 +08:00
<A NAME="insert"></A>
2002-08-29 22:29:49 +08:00
<A NAME="DOC.2.2.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void insert(double time, const <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>&amp; <!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getFirstTime"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.2.7"></A>
2002-08-29 22:29:49 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double getFirstTime() const </B></TT>
2002-04-25 04:13:50 +08:00
<DL><DT><DD></DL><P>
2002-08-29 22:29:49 +08:00
<A NAME="getLastTime"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.2.8"></A>
2002-08-29 22:29:49 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double getLastTime() const </B></TT>
2002-04-25 04:13:50 +08:00
<DL><DT><DD></DL><P>
2002-08-29 22:29:49 +08:00
<A NAME="getPeriod"></A>
2002-04-25 04:13:50 +08:00
<A NAME="DOC.2.2.9"></A>
2002-08-29 22:29:49 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double getPeriod() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="LoopMode"></A>
<A NAME="DOC.2.2.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum LoopMode</B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="SWING"></A>
<A NAME="DOC.2.2.10.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> SWING</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LOOP"></A>
<A NAME="DOC.2.2.10.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LOOP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="NO_LOOPING"></A>
<A NAME="DOC.2.2.10.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> NO_LOOPING</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="setLoopMode"></A>
<A NAME="DOC.2.2.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setLoopMode(<!1><A HREF="AnimationPath.html#DOC.2.2.10">LoopMode</A> lm)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getLoopMode"></A>
<A NAME="DOC.2.2.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="AnimationPath.html#DOC.2.2.10">LoopMode</A> getLoopMode() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="~AnimationPath"></A>
<A NAME="DOC.2.2.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~AnimationPath()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_timeControlPointMap"></A>
<A NAME="DOC.2.2.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map&lt;double,<!1><A HREF="AnimationPath.html#DOC.2.2.2">ControlPoint</A>&gt; TimeControlPointMap TimeControlPointMap _timeControlPointMap</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_loopMode"></A>
<A NAME="DOC.2.2.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="AnimationPath.html#DOC.2.2.10">LoopMode</A> _loopMode</B></TT>
2002-04-25 04:13:50 +08:00
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>