Public Member Functions | Protected Attributes | List of all members
AP_TreeShader Class Referenceabstract

#include <AP_TreeShader.hxx>

Inheritance diagram for AP_TreeShader:
Inheritance graph
Collaboration diagram for AP_TreeShader:
Collaboration graph

Public Member Functions

 AP_TreeShader ()
virtual ~AP_TreeShader ()
virtual void init ()=0
bool does_shade () const
virtual void update_settings ()=0
virtual ShadedValue calc_shaded_leaf_GC (GBDATA *gb_node) const =0
virtual ShadedValue calc_shaded_inner_GC (const ShadedValue &left, float left_ratio, const ShadedValue &right) const =0
virtual int to_GC (const ShadedValue &val) const =0
int calc_leaf_GC (GBDATA *gb_node, bool is_marked) const
int calc_inner_GC (int left_gc, int right_gc) const

Protected Attributes

bool colorize_marked
bool colorize_groups
bool shade_species

Detailed Description

Definition at line 28 of file AP_TreeShader.hxx.

Constructor & Destructor Documentation

AP_TreeShader::AP_TreeShader ( )

Definition at line 34 of file AP_TreeShader.hxx.

virtual AP_TreeShader::~AP_TreeShader ( )

Definition at line 39 of file AP_TreeShader.hxx.

Member Function Documentation

virtual void AP_TreeShader::init ( )
pure virtual

Implemented in AP_DefaultTreeShader, and NT_TreeShader.

Referenced by AP_tree::set_tree_shader().

bool AP_TreeShader::does_shade ( ) const

Definition at line 42 of file AP_TreeShader.hxx.

References shade_species.

Referenced by AP_tree::update_subtree_information().

virtual void AP_TreeShader::update_settings ( )
pure virtual

Implemented in AP_DefaultTreeShader, and NT_TreeShader.

Referenced by AP_tree::compute_tree().

virtual ShadedValue AP_TreeShader::calc_shaded_leaf_GC ( GBDATA gb_node) const
pure virtual
virtual ShadedValue AP_TreeShader::calc_shaded_inner_GC ( const ShadedValue left,
float  left_ratio,
const ShadedValue right 
) const
pure virtual
virtual int AP_TreeShader::to_GC ( const ShadedValue val) const
pure virtual
int AP_TreeShader::calc_leaf_GC ( GBDATA gb_node,
bool  is_marked 
) const
int AP_TreeShader::calc_inner_GC ( int  left_gc,
int  right_gc 
) const

Member Data Documentation

bool AP_TreeShader::colorize_marked
bool AP_TreeShader::colorize_groups
bool AP_TreeShader::shade_species

The documentation for this class was generated from the following file: