classcolormap.html
来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 156 行
HTML
156 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>vtdata library: ColorMap Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.5 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>ColorMap Class Reference</h1><!-- doxytag: class="ColorMap" --><a href="classColorMap-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="90ba399817d18bd8c8a2d6df4206cb68"></a><!-- doxytag: member="ColorMap::Save" ref="90ba399817d18bd8c8a2d6df4206cb68" args="(const char *fname)" -->bool </td><td class="memItemRight" valign="bottom"><b>Save</b> (const char *fname)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4462f39afe05d2c01353e163ea2b02f"></a><!-- doxytag: member="ColorMap::Load" ref="b4462f39afe05d2c01353e163ea2b02f" args="(const char *fname)" -->bool </td><td class="memItemRight" valign="bottom"><b>Load</b> (const char *fname)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classColorMap.html#98aef10afbb05dccff4e30ebfc0dcd43">Add</a> (float elev, const <a class="el" href="classRGBi.html">RGBi</a> &color)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1f251497cd565e52352f353b9ff09e9f"></a><!-- doxytag: member="ColorMap::RemoveAt" ref="1f251497cd565e52352f353b9ff09e9f" args="(int num)" -->void </td><td class="memItemRight" valign="bottom"><b>RemoveAt</b> (int num)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c6dd9ebde4908461b4ad5c70b4c1fcc1"></a><!-- doxytag: member="ColorMap::Num" ref="c6dd9ebde4908461b4ad5c70b4c1fcc1" args="() const " -->int </td><td class="memItemRight" valign="bottom"><b>Num</b> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classColorMap.html#231919815460c793c8776ca6f1de97e1">GenerateColors</a> (std::vector< <a class="el" href="classRGBi.html">RGBi</a> > &table, int iTableSize, float fMin, float fMax) const </td></tr><tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4bce3a4e88c4d22f1cc2bacbcb3d81f8"></a><!-- doxytag: member="ColorMap::m_bBlend" ref="4bce3a4e88c4d22f1cc2bacbcb3d81f8" args="" -->bool </td><td class="memItemRight" valign="bottom"><b>m_bBlend</b></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c258ddd9a918b8af6d2e34707a22b970"></a><!-- doxytag: member="ColorMap::m_bRelative" ref="c258ddd9a918b8af6d2e34707a22b970" args="" -->bool </td><td class="memItemRight" valign="bottom"><b>m_bRelative</b></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c9b181ac47299bf7caf8334c7b95946f"></a><!-- doxytag: member="ColorMap::m_elev" ref="c9b181ac47299bf7caf8334c7b95946f" args="" -->std::vector< float > </td><td class="memItemRight" valign="bottom"><b>m_elev</b></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d510f1372868133739a7ec5eb413e141"></a><!-- doxytag: member="ColorMap::m_color" ref="d510f1372868133739a7ec5eb413e141" args="" -->std::vector< <a class="el" href="classRGBi.html">RGBi</a> > </td><td class="memItemRight" valign="bottom"><b>m_color</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This small class describes how to map elevation (as from a heightfield) onto a set of colors. <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="98aef10afbb05dccff4e30ebfc0dcd43"></a><!-- doxytag: member="ColorMap::Add" ref="98aef10afbb05dccff4e30ebfc0dcd43" args="(float elev, const RGBi &color)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void ColorMap::Add </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">float </td> <td class="mdname" nowrap> <em>elev</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="classRGBi.html">RGBi</a> & </td> <td class="mdname" nowrap> <em>color</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Add a color entry, keeping the elevation values sorted. </td> </tr></table><a class="anchor" name="231919815460c793c8776ca6f1de97e1"></a><!-- doxytag: member="ColorMap::GenerateColors" ref="231919815460c793c8776ca6f1de97e1" args="(std::vector< RGBi > &table, int iTableSize, float fMin, float fMax) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void ColorMap::GenerateColors </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::vector< <a class="el" href="classRGBi.html">RGBi</a> > & </td> <td class="mdname" nowrap> <em>table</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>iTableSize</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>float </td> <td class="mdname" nowrap> <em>fMin</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>float </td> <td class="mdname" nowrap> <em>fMax</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Generate an array of interpolated colors from this ColorMap.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>table</em> </td><td>An empty table ready to fill with the interpolated colors. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iTableSize</em> </td><td>The desired number of elements in the resulting table. </td></tr> <tr><td valign="top"></td><td valign="top"><em>fMin,fMax</em> </td><td>The elevation range to interpolate over. </td></tr> </table></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:40:54 2008 for vtdata library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?