NCBI C++ ToolKit

Search Toolkit Book for CBoundaryPoints
#include <gui/widgets/phylo_tree/phylo_tree_boundary_shapes.hpp>
Public Member Functions  
CBoundaryPoints ()  
void  AddBoundedPoint (const CVect2< float > &pt) 
Add point to be included in bounded area. More...  
void  AddPixelRect (const CVect2< float > &pt, const CGlRect< float > &rect) 
Add point in bounded area along with a rectangle based at that point and defined in pixels, that also will be included in the bounded area (allows nonresizing text to be included) More...  
void  AddBoundedPoints (CBoundaryPoints &pts) 
Add the boundary areas of the subtree to this boundary area. More...  
void  ClearBoundedPoints () 
Clear all accumulated bounding points. More...  
const vector< CVect2< float > > &  GetGraphPoints () const 
const vector< std::pair< CVect2< float >, CGlRect< float > > > &  GetPixelPoints () const 
Protected Attributes  
vector< CVect2< float > >  m_GraphPoints 
Points and text rectangles used to compute boundary area (and discarded afterwards) More...  
vector< std::pair< CVect2< float >, CGlRect< float > > >  m_PixelPoints 
Holds all points in a bounded region. Points may be fixed (such as textbox corners) or scaled such as node points. Fixedscale points will be attached to scaled points (text box moves with node)
Improvement: If very large trees are bounded can reduce number of points by only considering convex hull for set (this becomes a bit more complex with the fixed scaling though)
Definition at line 409 of file phylo_tree_boundary_shapes.hpp.

inline 
Definition at line 411 of file phylo_tree_boundary_shapes.hpp.
Add point to be included in bounded area.
Definition at line 1284 of file phylo_tree_boundary_shapes.cpp.
References m_GraphPoints.
Referenced by IPhyloTreeRender::x_ComputeNodeBoundary().
void CBoundaryPoints::AddBoundedPoints  (  CBoundaryPoints &  pts  ) 
Add the boundary areas of the subtree to this boundary area.
Definition at line 1295 of file phylo_tree_boundary_shapes.cpp.
References ClearBoundedPoints(), m_GraphPoints, and m_PixelPoints.
Referenced by CCalcSlantedTree::operator()().
Add point in bounded area along with a rectangle based at that point and defined in pixels, that also will be included in the bounded area (allows nonresizing text to be included)
Definition at line 1289 of file phylo_tree_boundary_shapes.cpp.
References m_PixelPoints, and offset.
Referenced by IPhyloTreeRender::x_ComputeNodeBoundary().
void CBoundaryPoints::ClearBoundedPoints  (  ) 
Clear all accumulated bounding points.
Definition at line 1308 of file phylo_tree_boundary_shapes.cpp.
References m_GraphPoints, and m_PixelPoints.
Referenced by AddBoundedPoints().
Definition at line 426 of file phylo_tree_boundary_shapes.hpp.
References m_GraphPoints.
Referenced by CSubtreeBoundary::ComputeShapes().

inline 
Definition at line 427 of file phylo_tree_boundary_shapes.hpp.
References m_PixelPoints.
Referenced by CSubtreeBoundary::ComputeShapes().

protected 
Points and text rectangles used to compute boundary area (and discarded afterwards)
Definition at line 432 of file phylo_tree_boundary_shapes.hpp.
Referenced by AddBoundedPoint(), AddBoundedPoints(), ClearBoundedPoints(), and GetGraphPoints().
Definition at line 433 of file phylo_tree_boundary_shapes.hpp.
Referenced by AddBoundedPoints(), AddPixelRect(), ClearBoundedPoints(), and GetPixelPoints().