OpenSceneGraph/doc/doc++/osgParticle/Operator.html

143 lines
6.8 KiB
HTML
Raw Normal View History

2003-04-18 00:22:51 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class osgParticle::Operator</TITLE>
2004-08-06 14:53:36 +08:00
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
2003-04-18 00:22:51 +08:00
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class <A HREF="#DOC.DOCU">osgParticle::Operator</A></H2></H2><BLOCKQUOTE>An abstract base class used by <CODE>ModularProgram</CODE> to perform operations on particles before they are updated.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=185>
<param name=classes value="Mosg::Object,M,COperator,MOperator.html,CForceOperator,MForceOperator.html,CFluidFrictionOperator,MFluidFrictionOperator.html,CAngularAccelOperator,MAngularAccelOperator.html,CAccelOperator,MAccelOperator.html">
<param name=before value="M,M,M|_,MR_,MR_,Mr_">
<param name=after value="Md_,M,M,M,M,M">
<param name=indent value="0,1,1,1,1,1">
2003-04-18 00:22:51 +08:00
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.15.1">libraryName</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.15.2">className</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.15.3">isSameKindAs</A></B>(const osg::Object* obj) const
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.15.4">operate</A></B>(<!1><A HREF="Particle.html">Particle</A>* P, double dt)
2003-04-18 00:22:51 +08:00
<DD><I>Do something on a particle.</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.15.5">beginOperate</A></B>(<!1><A HREF="Program.html">Program</A>* )
2003-04-18 00:22:51 +08:00
<DD><I>Do something before processing particles via the <CODE>operate()</CODE> method.</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.15.6">endOperate</A></B>()
2003-04-18 00:22:51 +08:00
<DD><I>Do something after all particles have been processed</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <B><A HREF="#DOC.2.15.10">Operator</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <B><A HREF="#DOC.2.15.11">Operator</A></B>(const <!1><A HREF="Operator.html#DOC.2.15.11">Operator</A> &amp;copy, const osg::CopyOp &amp;copyop)
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.15.12">isEnabled</A></B>() const
2003-04-18 00:22:51 +08:00
<DD><I>Get whether this operator is enabled</I>
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.15.13">setEnabled</A></B>(bool v)
2003-04-18 00:22:51 +08:00
<DD><I>Enable or disable this operator</I>
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.15.7">~Operator</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2004-08-06 14:53:36 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Operator.html">Operator</A>&amp; <B><A HREF="#DOC.2.15.8">operator=</A></B>(const <!1><A HREF="Operator.html">Operator</A> &amp;)
2003-04-18 00:22:51 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>An abstract base class used by <CODE>ModularProgram</CODE> to perform operations on particles before they are updated.
To implement a new operator, derive from this class and override the <CODE>operate()</CODE> method.
You should also override the <CODE>beginOperate()</CODE> method to query the calling program for the reference frame
used, and initialize the right transformations if needed.</BLOCKQUOTE>
<DL>
<A NAME="libraryName"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.1"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* libraryName() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="className"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.2"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* className() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="isSameKindAs"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.3"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool isSameKindAs(const osg::Object* obj) const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="operate"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void operate(<!1><A HREF="Particle.html">Particle</A>* P, double dt)</B></TT>
2003-04-18 00:22:51 +08:00
<DD>Do something on a particle.
This method is called by <CODE>ModularProgram</CODE> objects to perform some operations
on the particles. You must override it in descendant classes. Common operations
consist of modifying the particle's velocity vector. The <CODE>dt</CODE> parameter is
the time elapsed from last operation.
<DL><DT><DD></DL><P>
<A NAME="beginOperate"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.5"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void beginOperate(<!1><A HREF="Program.html">Program</A>* )</B></TT>
<DD>Do something before processing particles via the <CODE>operate()</CODE> method.
Overriding this method could be necessary to query the calling <CODE>Program</CODE> object
for the current reference frame. If the reference frame is RELATIVE_TO_PARENTS, then your
class should prepare itself to do all operations in local coordinates.
<DL><DT><DD></DL><P>
<A NAME="endOperate"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.6"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void endOperate()</B></TT>
<DD>Do something after all particles have been processed
<DL><DT><DD></DL><P>
<A NAME="~Operator"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.7"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~Operator()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="operator="></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.8"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Operator.html">Operator</A>&amp; operator=(const <!1><A HREF="Operator.html">Operator</A> &amp;)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="Operator"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.10"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline Operator()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="Operator"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline Operator(const <!1><A HREF="Operator.html#DOC.2.15.11">Operator</A> &amp;copy, const osg::CopyOp &amp;copyop)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="isEnabled"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.12"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool isEnabled() const </B></TT>
<DD>Get whether this operator is enabled
<DL><DT><DD></DL><P>
<A NAME="setEnabled"></A>
2004-08-06 14:53:36 +08:00
<A NAME="DOC.2.15.13"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setEnabled(bool v)</B></TT>
<DD>Enable or disable this operator
<DL><DT><DD></DL><P></DL>
<HR>
<DL><DT><B>Direct child classes:
</B><DD><A HREF="ForceOperator.html">ForceOperator</A><BR>
<A HREF="FluidFrictionOperator.html">FluidFrictionOperator</A><BR>
<A HREF="AngularAccelOperator.html">AngularAccelOperator</A><BR>
2003-04-18 00:22:51 +08:00
<A HREF="AccelOperator.html">AccelOperator</A><BR>
</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>
2004-08-06 14:53:36 +08:00
This page was generated with the help of <A HREF="http://www.linuxsupportline.com/~doc++">DOC++</A>.
2003-04-18 00:22:51 +08:00
</BODY>
</HTML>