NCBI C++ ToolKit
Public Member Functions | Public Attributes | List of all members
IPhyloTreeRender::CExtentDimension Class Reference

Search Toolkit Book for IPhyloTreeRender::CExtentDimension

This is a set of positions (for nodes) and associated x or y pixel offset values. More...

#include <gui/widgets/phylo_tree/phylo_tree_render.hpp>

+ Collaboration diagram for IPhyloTreeRender::CExtentDimension:

Public Member Functions

void UpdateExtent (float node_coord, float pixel_offset, bool has_label)
 Compare the new coordinate and pixel offset with the contents of m_Extents. More...
 
void Clear ()
 
void DumpExtent (const string &dim)
 write out values for debugging purposes More...
 

Public Attributes

vector< ProjectionElementm_Extents
 Sorted (in decreasing order) set of coordinates and pixel offsets. More...
 

Detailed Description

This is a set of positions (for nodes) and associated x or y pixel offset values.

The owning class determines whether this refers to x or y coordninates.

Definition at line 440 of file phylo_tree_render.hpp.

Member Function Documentation

◆ Clear()

void IPhyloTreeRender::CExtentDimension::Clear ( void  )
inline

Definition at line 451 of file phylo_tree_render.hpp.

References m_Extents.

Referenced by IPhyloTreeRender::CProjectionExtents::Clear().

◆ DumpExtent()

void IPhyloTreeRender::CExtentDimension::DumpExtent ( const string dim)

write out values for debugging purposes

Definition at line 2285 of file phylo_tree_render.cpp.

References _TRACE, and i.

◆ UpdateExtent()

void IPhyloTreeRender::CExtentDimension::UpdateExtent ( float  node_coord,
float  pixel_offset,
bool  has_label 
)

Compare the new coordinate and pixel offset with the contents of m_Extents.

If node_coord is larger than any node coordinate in the array, or if pixel_offset is longer than any element in the array with the same or larger node coord, add it.

Definition at line 2183 of file phylo_tree_render.cpp.

References m_Extents, max(), and ne().

Referenced by IPhyloTreeRender::CalculateExtents().

Member Data Documentation

◆ m_Extents

vector<ProjectionElement> IPhyloTreeRender::CExtentDimension::m_Extents

Sorted (in decreasing order) set of coordinates and pixel offsets.

Definition at line 457 of file phylo_tree_render.hpp.

Referenced by Clear(), and UpdateExtent().


The documentation for this class was generated from the following files:
Modified on Wed May 22 11:27:05 2024 by modify_doxy.py rev. 669887