phylo_tree_scheme.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:5k
- /*
- * ===========================================================================
- * PRODUCTION $Log: phylo_tree_scheme.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:11:53 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.11
- * PRODUCTION
- * ===========================================================================
- */
- /* $Id: phylo_tree_scheme.cpp,v 1000.1 2004/06/01 21:11:53 gouriano Exp $
- * ===========================================================================
- *
- * PUBLIC DOMAIN NOTICE
- * National Center for Biotechnology Information
- *
- * This software/database is a "United States Government Work" under the
- * terms of the United States Copyright Act. It was written as part of
- * the author's official duties as a United States Government employee and
- * thus cannot be copyrighted. This software/database is freely available
- * to the public for use. The National Library of Medicine and the U.S.
- * Government have not placed any restriction on its use or reproduction.
- *
- * Although all reasonable efforts have been taken to ensure the accuracy
- * and reliability of the software and data, the NLM and the U.S.
- * Government do not and cannot warrant the performance or results that
- * may be obtained by using this software or data. The NLM and the U.S.
- * Government disclaim all warranties, express or implied, including
- * warranties of performance, merchantability or fitness for any particular
- * purpose.
- *
- * Please cite the author in any work or product based on this material.
- *
- * ===========================================================================
- *
- * Authors: Vladimir Tereshkov
- *
- * File Description:
- *
- */
- #include <ncbi_pch.hpp>
- #include <gui/opengl/glfont.hpp>
- #include <gui/types.hpp>
- #include <FL/Fl.H>
- #include <gui/widgets/phylo_tree/phylo_tree_scheme.hpp>
- BEGIN_NCBI_SCOPE
- void CPhyloTreeScheme :: x_DefaultScheme(void)
- {
- m_TopMargin = m_BottomMargin = m_LeftMargin = 30;
- m_RightMargin = 120;
- m_LineWidth = 1;
- m_NodeSize = 3;
- m_BgColor.Set(1.0f, 1.0f, 1.0f, 1.0f);
-
- m_LineColor.Set(0.7f, 0.7f, 0.7f, 0.9f);
- m_LineHiColor.Set(0.4f, 0.4f, 0.4f, 0.9f);
-
- m_LineSelColor.Set(0.3f, 0.3f, 1.0f, 0.9f);
- m_LineSelHiColor.Set (0.0f, 0.0f, 0.7f, 0.9f);
- m_NodeHiColor.Set (0.0f, 0.4f, 0.0f, 0.9f);
- m_NodeColor.Set (0.1f, 0.5f, 0.1f, 0.9f);
- m_NodeSelColor.Set(0.8f, 0.1f, 0.1f, 0.9f);
- m_LabelColor.Set(0.0f, 0.0f, 0.0f, 1.0f);
- m_LabelSelColor.Set(0.0f, 0.0f, 0.8f, 1.0f);
- m_LabelSelBgColor.Set(0.0f, 0.0f, 1.0f, 1.0f);
- }
- void CPhyloTreeScheme :: x_CompactScheme(void)
- {
- m_TopMargin = m_BottomMargin = m_LeftMargin = 30;
- m_RightMargin = 100;
- m_LineWidth = 0;
- m_NodeSize = 0;
- m_BgColor.Set(1.0f, 1.0f, 1.0f, 1.0f);
-
- m_LineColor.Set(0.1f, 0.1f, 1.0f, 0.9f);
- m_LineHiColor.Set(0.8f, 0.9f, 1.0f, 0.9f);
-
- m_LineSelColor.Set(0.8f, 0.8f, 0.0f, 0.9f);
- m_LineSelHiColor.Set (1.0f, 1.0f, 0.0f, 0.9f);
- m_NodeHiColor.Set (0.0f, 0.4f, 0.0f, 0.9f);
- m_NodeColor.Set (0.0f, 0.6f, 0.0f, 0.9f);
- m_NodeSelColor.Set(0.7f, 0.2f, 0.2f, 0.9f);
- m_LabelColor.Set(0.0f, 0.0f, 0.0f, 1.0f);
- m_LabelSelColor.Set(1.0f, 1.0f, 1.0f, 1.0f);
- m_LabelSelBgColor.Set(0.0f, 0.0f, 1.0f, 1.0f);
- }
- END_NCBI_SCOPE
- /*
- * ===========================================================================
- * $Log: phylo_tree_scheme.cpp,v $
- * Revision 1000.1 2004/06/01 21:11:53 gouriano
- * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.11
- *
- * Revision 1.11 2004/05/21 22:27:54 gorelenk
- * Added PCH ncbi_pch.hpp
- *
- * Revision 1.10 2004/05/11 20:53:12 tereshko
- * Work in progress
- *
- * Revision 1.9 2004/05/06 19:42:21 tereshko
- * Rendering improvements
- *
- * Revision 1.8 2004/04/20 21:57:19 tereshko
- * Major rendering, labeling and performance improvements
- *
- * Revision 1.7 2004/04/14 20:34:00 tereshko
- * Fixed labels truncation
- *
- * Revision 1.6 2004/04/13 20:28:53 tereshko
- * Numerous renderers improvements
- *
- * Revision 1.5 2004/03/30 17:11:44 tereshko
- * Added support for events broadcasting
- *
- * Revision 1.4 2004/02/24 21:44:10 tereshko
- * Slightly changed scheme for rendering joints
- *
- * Revision 1.3 2004/02/23 22:52:04 tereshko
- * Added font color attributes
- *
- * Revision 1.2 2004/02/17 23:44:41 tereshko
- * Changes due to integration into viewer
- *
- * Revision 1.1 2004/02/13 17:05:13 tereshko
- * Phylogenetic Tree Widget initial revision
- *
- * ===========================================================================
- */