219 lines
11 KiB
HTML
219 lines
11 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class osg::UByte4</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class <A HREF="#DOC.DOCU">osg::UByte4</A></H2></H2><BLOCKQUOTE>General purpose float quad, uses include representation of colour coordinates.</BLOCKQUOTE>
|
|
<HR>
|
|
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Fields</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>unsigned char <B><A HREF="#DOC.2.221.3">_v</A></B>[4]
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.221.1">UByte4</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.221.2">UByte4</A></B>(unsigned char <!1><A HREF="UByte4.html#DOC.2.221.12">r</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.13">g</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.14">b</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.15">a</A>)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.221.4">operator == </A></B>(const <!1><A HREF="UByte4.html">UByte4</A>& v) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.221.5">operator != </A></B>(const <!1><A HREF="UByte4.html">UByte4</A>& v) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.221.6">operator < </A></B>(const <!1><A HREF="UByte4.html">UByte4</A>& v) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char* <B><A HREF="#DOC.2.221.7">ptr</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const unsigned char* <B><A HREF="#DOC.2.221.8">ptr</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.221.9">set</A></B>(unsigned char <!1><A HREF="UByte4.html#DOC.2.221.12">r</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.13">g</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.14">b</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.15">a</A>)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char& <B><A HREF="#DOC.2.221.10">operator [] </A></B>(unsigned int i)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char <B><A HREF="#DOC.2.221.11">operator [] </A></B>(unsigned int i) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char& <B><A HREF="#DOC.2.221.12">r</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char& <B><A HREF="#DOC.2.221.13">g</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char& <B><A HREF="#DOC.2.221.14">b</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char& <B><A HREF="#DOC.2.221.15">a</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char <B><A HREF="#DOC.2.221.16">r</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char <B><A HREF="#DOC.2.221.17">g</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char <B><A HREF="#DOC.2.221.18">b</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline unsigned char <B><A HREF="#DOC.2.221.19">a</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="UByte4.html">UByte4</A> <B><A HREF="#DOC.2.221.20">operator * </A></B>(float rhs) const
|
|
<DD><I>multiply by scalar</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="UByte4.html">UByte4</A>& <B><A HREF="#DOC.2.221.21">operator *= </A></B>(float rhs)
|
|
<DD><I>unary multiply by scalar</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="UByte4.html">UByte4</A> <B><A HREF="#DOC.2.221.22">operator / </A></B>(float rhs) const
|
|
<DD><I>divide by scalar</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="UByte4.html">UByte4</A>& <B><A HREF="#DOC.2.221.23">operator /= </A></B>(float rhs)
|
|
<DD><I>unary divide by scalar</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="UByte4.html">UByte4</A> <B><A HREF="#DOC.2.221.24">operator + </A></B>(const <!1><A HREF="UByte4.html">UByte4</A>& rhs) const
|
|
<DD><I>binary vector add</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="UByte4.html">UByte4</A>& <B><A HREF="#DOC.2.221.25">operator += </A></B>(const <!1><A HREF="UByte4.html">UByte4</A>& rhs)
|
|
<DD><I>unary vector add.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="UByte4.html">UByte4</A> <B><A HREF="#DOC.2.221.26">operator - </A></B>(const <!1><A HREF="UByte4.html">UByte4</A>& rhs) const
|
|
<DD><I>binary vector subtract</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="UByte4.html">UByte4</A>& <B><A HREF="#DOC.2.221.27">operator -= </A></B>(const <!1><A HREF="UByte4.html">UByte4</A>& rhs)
|
|
<DD><I>unary vector subtract</I>
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>General purpose float quad, uses include representation
|
|
of colour coordinates.
|
|
No support yet added for float * UByte4 - is it necessary?
|
|
Need to define a non-member non-friend operator* etc.
|
|
UByte4 * float is okay</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="UByte4"></A>
|
|
<A NAME="DOC.2.221.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> UByte4()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="UByte4"></A>
|
|
<A NAME="DOC.2.221.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> UByte4(unsigned char <!1><A HREF="UByte4.html#DOC.2.221.12">r</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.13">g</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.14">b</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.15">a</A>)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_v"></A>
|
|
<A NAME="DOC.2.221.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>unsigned char _v[4]</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator == "></A>
|
|
<A NAME="DOC.2.221.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool operator == (const <!1><A HREF="UByte4.html">UByte4</A>& v) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator != "></A>
|
|
<A NAME="DOC.2.221.5"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool operator != (const <!1><A HREF="UByte4.html">UByte4</A>& v) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator < "></A>
|
|
<A NAME="DOC.2.221.6"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool operator < (const <!1><A HREF="UByte4.html">UByte4</A>& v) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="ptr"></A>
|
|
<A NAME="DOC.2.221.7"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char* ptr()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="ptr"></A>
|
|
<A NAME="DOC.2.221.8"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const unsigned char* ptr() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="set"></A>
|
|
<A NAME="DOC.2.221.9"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void set(unsigned char <!1><A HREF="UByte4.html#DOC.2.221.12">r</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.13">g</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.14">b</A>, unsigned char <!1><A HREF="UByte4.html#DOC.2.221.15">a</A>)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator [] "></A>
|
|
<A NAME="DOC.2.221.10"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char& operator [] (unsigned int i)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator [] "></A>
|
|
<A NAME="DOC.2.221.11"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char operator [] (unsigned int i) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="r"></A>
|
|
<A NAME="DOC.2.221.12"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char& r()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="g"></A>
|
|
<A NAME="DOC.2.221.13"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char& g()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="b"></A>
|
|
<A NAME="DOC.2.221.14"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char& b()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="a"></A>
|
|
<A NAME="DOC.2.221.15"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char& a()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="r"></A>
|
|
<A NAME="DOC.2.221.16"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char r() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="g"></A>
|
|
<A NAME="DOC.2.221.17"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char g() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="b"></A>
|
|
<A NAME="DOC.2.221.18"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char b() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="a"></A>
|
|
<A NAME="DOC.2.221.19"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline unsigned char a() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator * "></A>
|
|
<A NAME="DOC.2.221.20"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="UByte4.html">UByte4</A> operator * (float rhs) const </B></TT>
|
|
<DD>multiply by scalar
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator *= "></A>
|
|
<A NAME="DOC.2.221.21"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="UByte4.html">UByte4</A>& operator *= (float rhs)</B></TT>
|
|
<DD>unary multiply by scalar
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator / "></A>
|
|
<A NAME="DOC.2.221.22"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="UByte4.html">UByte4</A> operator / (float rhs) const </B></TT>
|
|
<DD>divide by scalar
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator /= "></A>
|
|
<A NAME="DOC.2.221.23"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="UByte4.html">UByte4</A>& operator /= (float rhs)</B></TT>
|
|
<DD>unary divide by scalar
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator + "></A>
|
|
<A NAME="DOC.2.221.24"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="UByte4.html">UByte4</A> operator + (const <!1><A HREF="UByte4.html">UByte4</A>& rhs) const </B></TT>
|
|
<DD>binary vector add
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator += "></A>
|
|
<A NAME="DOC.2.221.25"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="UByte4.html">UByte4</A>& operator += (const <!1><A HREF="UByte4.html">UByte4</A>& rhs)</B></TT>
|
|
<DD>unary vector add. Slightly more efficient because no temporary
|
|
intermediate object
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator - "></A>
|
|
<A NAME="DOC.2.221.26"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="UByte4.html">UByte4</A> operator - (const <!1><A HREF="UByte4.html">UByte4</A>& rhs) const </B></TT>
|
|
<DD>binary vector subtract
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator -= "></A>
|
|
<A NAME="DOC.2.221.27"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="UByte4.html">UByte4</A>& operator -= (const <!1><A HREF="UByte4.html">UByte4</A>& rhs)</B></TT>
|
|
<DD>unary vector subtract
|
|
<DL><DT><DD></DL><P></DL>
|
|
|
|
<HR><DL><DT><B>This class has no child classes.</B></DL>
|
|
|
|
<DL><DT><DT><B>Friends:</B><DD> inline std::ostream& operator << (std::ostream& output, const <!1><A HREF="UByte4.html">UByte4</A>& vec)<BR><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>
|