]> www.wagner.pp.ru Git - sites/home_page.git/blobdiff - geography/fGIS/man/palette.n.html
Added fGIS
[sites/home_page.git] / geography / fGIS / man / palette.n.html
diff --git a/geography/fGIS/man/palette.n.html b/geography/fGIS/man/palette.n.html
new file mode 100644 (file)
index 0000000..6a81f42
--- /dev/null
@@ -0,0 +1,110 @@
+<!-- manual page source format generated by PolyglotMan v3.0.4, -->
+<!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->
+
+<HTML>
+<HEAD>
+<TITLE>palette(n) manual page</TITLE>
+</HEAD>
+<BODY>
+<A HREF="#toc">Table of Contents</A><P>
+<P>
+  
+<H2><A NAME="sect0" HREF="#toc0">NAME </A></H2>
+palette - Create and manipulate color palettes  <P>
+  
+<H2><A NAME="sect1" HREF="#toc1">SYNOPSIS </A></H2>
+<B> palette 
+<I>option </I></B> ?<I>arg </I>? <P>
+  
+<H2><A NAME="sect2" HREF="#toc2">DESCRIPTION </A></H2>
+<P>
+This command creates palette object, which 
+is used for map visualisation. Palette is array of 256 RGB color specifications, 
+indexed by integers from 0 to 255.  Typically palette entry N is used for 
+displaying map class N. Upon creation of object new Tcl command with same 
+name as object is defined and can be used for manipulating palette. <B>palette 
+</B> command returns name of created object. One palette, named <B>defaultpalette 
+</B> is created during initialization of fGIS. In difference of user-created 
+palettes it cannot be modified. <P>
+  
+<H2><A NAME="sect3" HREF="#toc3">OPTIONS </A></H2>
+
+<DL>
+
+<DT><B>palette read <I>filename </I></B>  </DT>
+<DD>- reads 
+palette from specified file. File should confirm EPPL7 clr file syntax. 
+</DD>
+
+<DT><B>palette parse <I>string </I></B>  </DT>
+<DD>- reads palette from string. String should have same 
+format as EPPL7 clr file. </DD>
+
+<DT><B>palette set <I>list </I></B>  </DT>
+<DD>- creates palette from list 
+of color specification. Each element of list should have format #rrggbb. 
+Color names are not supported by palettes. Color specifications are assigned 
+to palette indices in sequentual order. </DD>
+
+<DT><B>palette blank </B>  </DT>
+<DD>- creates new palette 
+with all entries set to white (#ffffff). </DD>
+</DL>
+<P>
+<DL>
+
+<DT><B>palette copy <I>paletteName </I></B>  </DT>
+<DD>- creates 
+a copy of existing palette. This allows to create modifable copy of default 
+palette. </DD>
+</DL>
+<H2><A NAME="sect4" HREF="#toc4">OBJECT COMMAND </A></H2>
+Palette object names can be used as command names. 
+They support folowing  options: 
+<DL>
+
+<DT><I>paletteName<B> delete </B></I> -  </DT>
+<DD>destroys palette 
+object.  </DD>
+
+<DT><I>paletteName<B> get<I> index </I></B></I>  </DT>
+<DD>- return color for given index in palette. 
+Color is returned as #rrggbb, and can be used as color specification in 
+Tk commands. </DD>
+
+<DT><I>paletteName<B> list </B></I>  </DT>
+<DD>- return list of all colors in palette. This 
+list always contains 256 elements. This list can be used as argument for 
+<B>palette set </B> command, to create same palette. </DD>
+
+<DT><I>paletteName<B> print </B></I>  </DT>
+<DD>- returns 
+string, containing content of valid EPPL7 clr file, which can be used 
+to reproduce this palette. </DD>
+
+<DT><I>paletteName<B> set<I> index value </I></B></I>  </DT>
+<DD>- changes contents 
+of given entry to <I>value </I>. Value should be in form #rrggbb. Other forms of 
+colors, supported by Tk are not supported by palettes. </DD>
+</DL>
+<H2><A NAME="sect5" HREF="#toc5">SEE ALSO </A></H2>
+<B><A HREF="patterns.n.html">patterns</B>(n)</A>
+,<B><A HREF="fgisRasterColorImage.n.html">fgisRasterColorImage</B>(n)</A>
+. 
+<P>
+ <P>
+
+<HR><P>
+<A NAME="toc"><B>Table of Contents</B></A><P>
+<UL>
+<LI><A NAME="toc0" HREF="#sect0">NAME</A></LI>
+<LI><A NAME="toc1" HREF="#sect1">SYNOPSIS</A></LI>
+<LI><A NAME="toc2" HREF="#sect2">DESCRIPTION</A></LI>
+<LI><A NAME="toc3" HREF="#sect3">OPTIONS</A></LI>
+<LI><A NAME="toc4" HREF="#sect4">OBJECT COMMAND</A></LI>
+<LI><A NAME="toc5" HREF="#sect5">SEE ALSO</A></LI>
+</UL>
+</BODY></HTML>