Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
Public Member Functions | |
GuiNodalLayouter (GuiNodal &graph) | |
virtual void | layout (const CoreSet< GuiNodalNodeBase * > &layout_nodes, const GMathVec2i &init_pos=GMathVec2i(0, 0), bool top_down=false) |
layout the given nodes. | |
void | locate_nodes_horizontally (const GMathVec2i &init_pos) |
void | locate_nodes_vertically (const GMathVec2i &init_pos) |
void | get_root_nodes (const CoreSet< GuiNodalNodeBase * > &nodes, CoreSet< GuiNodalNodeBase * > &root_nodes, CoreSet< GuiNodalNodeBase * > &single_nodes) |
Get root nodes considering only the given nodes. | |
const GuiNodal & | get_graph () const |
void | set_silent_layout (const bool &value) |
void | set_spacing (unsigned int spacing) |
![]() | |
bool | is_kindof (const CoreBaseObject &object) const |
virtual size_t | get_memory_size () const |
CoreString | get_class_info_name () const |
const unsigned long & | get_class_info_id () const |
virtual bool | is_kindof (const CoreClassInfo &cinfo) const |
virtual const CoreClassInfo & | get_class_info () const |
template<class T > | |
T * | cast () |
template<class T > | |
const T * | cast () const |
![]() | |
bool | is_kindof (const CoreClassInfo &cinfo) const |
Protected Member Functions | |
GuiNodalNodeBase * | get_top_parent_node_in_batch (const CoreSet< GuiNodalNodeBase * > &batch, GuiNodalNodeBase *node) |
returns the first -visible- node parent existing in given batch node | |
void | layout_node (GuiNodalNodeBase &node, GuiNodalLayoutGrid &grid, CoreSet< GuiNodalNodeBase * > &nodes_batch) |
Add a node in the grid and add recursively its previous and next nodes – O (next) – O (current) – O (previous) | |
void | add_grid_node (GuiNodalLayoutGrid &grid, GuiNodalNodeBase &node) |
GuiNodalLayoutGrid * | get_grid_for_node (GuiNodalNodeBase &node) |
GuiNodalNodeBase * | get_node_for_grid (GuiNodalLayoutGrid &grid) |
void | remove_node_grid (GuiNodalNodeBase &node) |
GuiNodalNodeBase * | _deep_search (GuiNodalNodeBase *node, const CoreSet< GuiNodalNodeBase * > &nodes_to_search) |
Search inside given nodes and their children recursively if the given node exists [in] node node to look for. | |
GuiNodalNodeBase * | deep_search (GuiNodalNodeBase *node, const CoreSet< GuiNodalNodeBase * > &nodes_to_search) |
Friends | |
class | GuiNodalLayoutGrid |
Additional Inherited Members | |
![]() | |
static const CoreClassInfo & | class_info () |
template<class T > | |
static T * | cast (CoreBaseObject *object) |
template<class T > | |
static const T * | cast (const CoreBaseObject *object) |
|
protected |
Search inside given nodes and their children recursively if the given node exists [in] node node to look for.
[in] | nodes_batch | nodes to search in recursively |
void GuiNodalLayouter::get_root_nodes | ( | const CoreSet< GuiNodalNodeBase * > & | nodes, |
CoreSet< GuiNodalNodeBase * > & | root_nodes, | ||
CoreSet< GuiNodalNodeBase * > & | single_nodes | ||
) |
Get root nodes considering only the given nodes.
[in] | nodes | graph nodes |
[out] | root_nodes | root nodes found |
[out] | single_nodes | single nodes found, without any connections within the given nodes [connections to external nodes are not considered] |
|
protected |
returns the first -visible- node parent existing in given batch node
[in] | batch | list of nodes to search in |
[in] | node | to search through hierarchy |
|
virtual |
layout the given nodes.
layout_nodes nodes to be layouted initial position for the layouted nodes