22 #define nt_assert(cond) arb_assert(cond)
35 void update_pos_lookup()
const {
47 if (pos.
isNull()) update_pos_lookup();
67 #if defined(ASSERTION_USED)
100 static void reshade() {
102 fprintf(stderr,
"[NT_TreeShader::reshade] @ %zu\n", clock());
133 return mix(left, left_ratio, right);
bool customizable() const OVERRIDE
void popup_config() const
AP_tree * get_logical_root()
TopologyShader(AWT_graphic_tree *agt_)
int get_dimension() const OVERRIDE
static ShadedValue make(float f)
~NT_TreeShader() OVERRIDE
bool overlay_marked() const
ShadedValue shade(GBDATA *gb_item) const
void customize(AW_root *) OVERRIDE
#define AWAR_TREE_RECOMPUTE
bool isNull() const
test if SmartPtr is NULp
void update_settings() OVERRIDE
void setNull()
set SmartPtr to NULp
#define DOWNCAST(totype, expr)
NT_TreeShader(TREE_canvas *ntw, GBDATA *gb_main)
static AW_root * SINGLETON
int to_GC(const ShadedValue &val) const OVERRIDE
virtual void register_plugin(ShaderPluginPtr plugin)=0
void uninstall_tree_changed_callback()
AW_awar * awar(const char *awar)
void NT_install_treeShader(TREE_canvas *ntw, GBDATA *gb_main)
ShadedValue calc_shaded_leaf_GC(GBDATA *gb_node) const OVERRIDE
SmartPtr< TreePositionLookup > TreePositionLookupPtr
ItemShader * registerItemShader(AW_root *awr, AW_gc_manager *gcman, BoundItemSel &itemtype, const char *unique_id, const char *description, const char *help_id, ReshadeCallback reshade_cb, int undef_gc)
#define IF_ASSERTION_USED(x)
ShadedValue shade(GBDATA *gb_item) const OVERRIDE
static ShadedValue undefined()
ItemSelector & SPECIES_get_selector()
ShadedValue mix(const ShadedValue &val1, float val1_ratio, const ShadedValue &val2)
void trigger_reshade_if_active_cb(ReshadeMode mode)
bool is_linked_with(AWT_graphic_tree *linkedWith)
void NT_configure_treeShader()
void AW_help_popup(UNFIXED, const char *help_file)
const char * GBT_get_name(GBDATA *gb_item)
char * store_config() const OVERRIDE
void load_or_reset_config(const char *) OVERRIDE
static const AP_TreeShader * get_tree_shader()
void install_tree_changed_callback(const GraphicTreeCallback >cb)
ShadedValue calc_shaded_inner_GC(const ShadedValue &left, float left_ratio, const ShadedValue &right) const OVERRIDE
static void set_tree_shader(AP_TreeShader *new_shader)
bool overlay_color_groups() const
virtual void popup_config_window(AW_root *awr)=0
void activate(bool on) OVERRIDE
TreeRelativePosition relative(const char *name) const
int to_GC(const ShadedValue &val) const
static void tree_changed_cb(AWT_graphic_tree *by, TopologyShader *shader)