Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
Class for Subnet Nodes. Subnets are intended to improve network workflow & efficiency by providing grouping feature. More...
Public Member Functions | |
GuiNodalSubnet (GuiNodal &nodal, const CoreString &title="", const int &x=0, const int &y=0, const CoreString &text="") | |
virtual int | get_width () const override |
virtual int | get_height () const override |
virtual void | set_width (const int &w) |
virtual void | set_height (const int &h) |
virtual void | set_origin (const GMathVec2i &pos) |
virtual void | set_geometry (int w, int h, bool) |
void | get_zoomed_offset (GMathVec2f &off) const override |
Override so that node in omnidirectional graph is always centered on its position. | |
GMathVec2i | get_unzoomed_offset () const override |
Override so that node in omnidirectional graph is always centered on its position. | |
GMathVec2i | get_displayed_center () const override |
Override so that node in omnidirectional graph is always centered on its position. | |
void | get_bbox (GMathVec2i &tl, GMathVec2i &br) const override |
Computes world bounding box. | |
const CoreString & | get_title () const |
Gets title. | |
virtual void | set_title (const CoreString &name) |
Sets title. | |
void | set_color (const GMathVec3d &color) |
Sets background color as requested, compute selected & highlighted colors accordingly. | |
GMathVec3d | get_color () const |
void | set_display_sticker (short location) |
short | get_display_sticker () const |
virtual int | get_in_link_x () const override |
virtual int | get_in_link_y () const override |
virtual int | get_out_link_x () const override |
virtual int | get_out_link_y () const override |
virtual void | draw (GuiDc &dc) override |
virtual void | draw_select (GuiDc &dc) override |
virtual void | draw_mini (GuiDc &dc) |
virtual void | draw_outline (int thickness) override |
virtual void | update_content (GuiDc &dc) override |
virtual void | move (const int &dx, const int &dy) override |
Changes position by a delta. | |
virtual void | move_to (const int &x, const int &y) override |
Changes position. | |
void | autofit (bool send_cmd=true) |
Resize to smallest box enclosing current text content. | |
virtual void | set_content (const CoreSet< GuiNodalNodeBase * > &nodes) |
void | add_to_content (GuiNodalNodeBase &node) |
void | remove_from_content (GuiNodalNodeBase &node) |
void | clear_content () |
bool | is_in_content (GuiNodalNodeBase &node) const |
const CoreSet < GuiNodalNodeBase * > & | get_content () const |
![]() | |
GuiNodalNodeBase (GuiNodalNodeBase *parent, GuiNodal &graph, const int &x=0, const int &y=0, const unsigned int &active_anchors=NODE_ANCHOR_LEFT) | |
Constructor. | |
~GuiNodalNodeBase () override | |
Destructor. | |
GuiNodalNodeBase * | get_parent () const |
GuiNodalNode * | get_parent_node () const |
Returns parent node. | |
void | set_parent (GuiNodalNodeBase *parent) |
Sets parent node. | |
bool | is_child_of (const GuiNodalNodeBase &node) const |
virtual void | _draw (GuiDc &dc) |
virtual void | _draw_select (GuiDc &dc) |
virtual void | draw_select_with_mmb (GuiDc &dc) |
const int & | get_computed_width () const |
const int & | get_computed_height () const |
void | set_computed_width (const int &width) |
void | set_computed_height (const int &height) |
void | set_local_pos (const GMathVec2i &pos) |
void | set_local_x (const int &x) |
void | set_local_y (const int &y) |
const int & | get_local_x () const |
const int & | get_local_y () const |
const int & | get_world_x () const |
const int & | get_world_y () const |
const GMathVec2i & | get_local_pos () const |
const GMathVec2i & | get_world_pos () const |
virtual GMathVec2i | get_position () const |
virtual void | set_position (const GMathVec2i &pos) |
virtual void | set_center (const GMathVec2i &pos) |
virtual GMathVec2i | get_center () |
int | get_default_input_dx () const |
const int | get_border_size () const |
void | set_border_size (const int &size) |
const GMathVec3uc & | get_border_color () const |
void | set_border_color (const GMathVec3uc &color) |
void | draw_round_rect (const GuiWidget::Roundness &roundness, const int &x, const int &y, const int &w, const int &h, const bool &filled=true) |
Draws a round rect. | |
void | draw_thick_ring (double radius, double thickness) |
Draws a thick circle at current gl position, using current gl color. | |
void | draw_thick_frame (int x, int y, int w, int h, double thickness, GuiWidget::Roundness roundness=GuiWidget::ROUNDNESS_NONE) |
Draws a thick round frame at current gl position, using current gl color. | |
GuiNodalNodeZoneAnchor * | get_anchor (const NodeAnchor &anchor) |
GuiNodalNodeZoneAnchor * | get_anchor (unsigned int side) const |
GuiNodalNodeZoneAnchor * | get_left_anchor () const |
GuiNodalNodeZoneAnchor * | get_right_anchor () const |
GuiNodalNodeZoneAnchor * | get_up_anchor () const |
GuiNodalNodeZoneAnchor * | get_bottom_anchor () const |
void | set_anchor_disabled (bool disabled) |
bool | get_anchor_is_active (const NodeAnchor &anchor) const |
void | activate_anchor (const GuiNodalNodeBase::NodeAnchor &anchor) |
Activates incoming anchor. | |
void | desactivate_anchor (const GuiNodalNodeBase::NodeAnchor &anchor) |
Desactivates incoming anchor. | |
void | set_anchors_color (const GMathVec3uc &color) |
void | set_text_normal_color (const GMathVec3uc &color) |
void | set_text_selected_color (const GMathVec3uc &color) |
void | set_text_disabled_color (const GMathVec3uc &color) |
const GMathVec3uc & | get_text_normal_color () const |
const GMathVec3uc & | get_text_selected_color () const |
const GMathVec3uc & | get_text_highlight_color () const |
const GMathVec3uc & | get_text_disabled_color () const |
const GMathVec3uc & | get_text_color () const |
virtual float | get_custom_depth () const |
unsigned int | get_depth () const |
virtual unsigned int | set_depth (unsigned int d) |
void | set_is_highlighted (const bool &value) override |
bool | get_is_highlighted () const override |
bool | is_collapsed () const |
void | set_collapsed (const bool &value) |
bool | is_guest_input () const |
void | set_guest_input (bool value) |
bool | get_is_fading_in () const |
bool | get_is_fading_out () const |
bool | get_is_fading () const |
bool | get_is_selected () const |
virtual void | set_selected (bool selected) |
bool | get_is_preselected () const |
virtual void | set_is_preselected (const bool &value) |
virtual void | set_disabled (bool disabled) |
bool | get_is_disabled () const |
virtual void | set_ghost (bool ghost) |
bool | get_is_ghost () const |
const float & | get_scale () const |
virtual void | set_scale (const float &scale) |
void | set_draw_state (const ItemDrawState &state) override |
const unsigned int & | get_states () const |
bool | get_state_is_active (const GuiNodalNodeBase::NodeState &state) const |
void | activate_state (const GuiNodalNodeBase::NodeState &state) |
void | desactivate_state (const GuiNodalNodeBase::NodeState &state) |
virtual void | set_is_hidden (bool hidden, const bool &recursive=true) |
bool | get_is_hidden () const |
void | add_link (GuiNodalLink *link) |
void | remove_link (GuiNodalLink *link) |
void | set_screen_size (bool is_screen_size) |
const bool & | is_screen_size () const |
virtual bool | can_begin_link_creation () |
virtual bool | can_begin_link_destruction (const GuiNodalLink &link) |
const CoreVector < GuiNodalNodeBase * > & | get_children () const |
void | get_connexity (CoreVector< GuiNodalLink * > &links) const |
Fills a vector with all links connected to this node and to any of its children. | |
void | get_connexity_from (CoreVector< GuiNodalLink * > &links) const |
gets the number of incoming links connected to this node and to any of its children | |
void | get_connexity_to (CoreVector< GuiNodalLink * > &links) const |
gets the number of outgoing links connected to this node and to any of its children | |
const bool & | get_propagate_highlight () const |
void | set_propagate_highlight (const bool &propagate) |
void | set_delta_out_link (const int &dx, const int &dy) |
void | set_delta_in_link (const int &dx, const int &dy) |
const GMathVec2i & | get_delta_out_link () const |
![]() | |
GuiNodalItem (GuiNodal &graph) | |
const GMathVec3uc & | get_select_color () const |
void | set_selectable () |
GuiNodal & | get_graph () const |
void | set_bg_normal_color (const GMathVec3uc &color) |
void | set_bg_highlight_color (const GMathVec3uc &color) |
void | set_bg_selected_color (const GMathVec3uc &color) |
void | set_bg_disabled_color (const GMathVec3uc &color) |
void | set_bg_colors (const GMathVec3uc &normal, const GMathVec3uc &highlight, const GMathVec3uc &selected) |
const GMathVec3uc & | get_bg_normal_color () const |
const GMathVec3uc & | get_bg_highlight_color () const |
const GMathVec3uc & | get_bg_disabled_color () const |
const GMathVec3uc & | get_bg_selected_color () const |
const GMathVec3uc & | get_bg_color () const |
void | set_bg_color (const GMathVec3uc &color) |
virtual void | set_is_culled (const bool &value) |
bool | get_is_culled () const |
const ItemDrawState & | get_draw_state () |
bool | get_is_dirty () const |
![]() | |
EventObject () | |
Constructor. | |
EventObject (const EventObject &src) | |
Copy Constructor. | |
virtual | ~EventObject () override |
Destructor. | |
void | connect (EventObject &sender, const CoreString &event_id, EventInfoMethod event_cb, void *data=0) |
Connects this to an object to listen to a specific event. | |
void | connect (EventObject &sender, EventInfoMethod event_cb, void *data=0) |
Connects this to an object to listen any of its events. | |
bool | disconnect (EventObject &sender, const CoreString &event_id, EventInfoMethod event_cb, void *data=0) |
bool | disconnect_all (EventObject &sender) |
Disconnects from all objects sender was listening on. | |
void | disconnect_all () |
Disconnects from all objects we were listening on. | |
void | remove_all_connection () |
Disconnects object from other objects it is listening to, and also disconnects all objects listening to it. | |
void | raise_event (const CoreString &event_id) const |
sends an event | |
void | raise_event (const EventInfo &event_info) const |
sends an event | |
bool | is_connected (EventObject &sender, const CoreString &event_id, void *data) |
void | set_mute (const bool &mute) |
Asks for object muting. This will increase or decrease the muting counter. Unmuting may not be immediat since it will happen only when counter reaches 0. | |
bool | is_mute () const |
Returns if object is muted. | |
CoreArray< EventObject * > | get_senders () const |
unsigned int | get_sender_count () const |
unsigned int | get_receiver_count () const |
virtual size_t | get_memory_size () const override |
void | connect (EventObject &sender, const CoreString &event_id, EventMethod event_cb, void *data=0) |
Connects this to an object to listen to a specific event. | |
void | connect (EventObject &sender, EventMethod event_cb, void *data=0) |
Connects this to an object to listen any of its events. | |
bool | disconnect (EventObject &sender, const CoreString &event_id, EventMethod event_cb, void *data=0) |
Disconnects this from an object for a specific event. | |
![]() | |
CoreCustomData (const CoreCustomData &src) | |
void | add_custom_data (void *key, const bool &data) |
void | add_custom_data (void *key, const int &data) |
void | add_custom_data (void *key, const unsigned int &data) |
void | add_custom_data (void *key, const char *data) |
void | add_custom_data (void *key, const CoreString &data) |
void | add_custom_data (void *key, const double &data) |
void | add_custom_data (void *key, void *data) |
void | remove_custom_data (void *key) |
void | remove_all_custom_data () |
void | set_custom_data (void *key, const bool &data) |
void | set_custom_data (void *key, const int &data) |
void | set_custom_data (void *key, const unsigned int &data) |
void | set_custom_data (void *key, const double &data) |
void | set_custom_data (void *key, const char *data) |
void | set_custom_data (void *key, const CoreString &data) |
void | set_custom_data (void *key, void *data) |
void | get_custom_data (void *key, bool &data) const |
void | get_custom_data (void *key, int &data) const |
void | get_custom_data (void *key, unsigned int &data) const |
void | get_custom_data (void *key, double &data) const |
void | get_custom_data (void *key, CoreString &data) const |
void | get_custom_data (void *key, void *&data) const |
![]() | |
bool | is_kindof (const CoreBaseObject &object) 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 | |
virtual CoreString | get_text () const |
![]() | |
int | get_links_count () const |
GuiNodalLink * | get_link (int pos) const |
const CoreVector< GuiNodalLink * > & | get_links () const |
void | remove_links () |
void | dirty_links () |
virtual void | remove_child (GuiNodalNodeBase &child) |
remove a child node | |
virtual void | add_child (GuiNodalNodeBase &child) |
Adds a child node. | |
void | compute_world_pos () |
Computes world position and asks for children world position computation. | |
const bool & | get_world_pos_is_dirty () |
void | set_world_pos_is_dirty (const bool &value) |
Additional Inherited Members | |
![]() | |
enum | NodeAnchor { NODE_ANCHOR_NONE = 0, NODE_ANCHOR_LEFT = 0x01, NODE_ANCHOR_RIGHT = 0x02, NODE_ANCHOR_UP = 0x04, NODE_ANCHOR_BOTTOM = 0x08, NODE_ANCHOR_SIDES = NODE_ANCHOR_LEFT|NODE_ANCHOR_RIGHT, NODE_ANCHOR_ALL = NODE_ANCHOR_LEFT|NODE_ANCHOR_RIGHT|NODE_ANCHOR_UP|NODE_ANCHOR_BOTTOM } |
enum | NodeState { NODE_STATE_SELECTED = 1, NODE_STATE_HIGHLIGHTED = 2, NODE_STATE_DISABLED = 4, NODE_STATE_FADING_IN = 8, NODE_STATE_FADING_IN_DELAYED = 16, NODE_STATE_FADING_OUT = 32, NODE_STATE_FADING_OUT_DELAYED = 64, NODE_STATE_SIMPLIFIED = 128, NODE_STATE_HIDDEN = 256, NODE_STATE_PRESELECTED = 512, NODE_STATE_MOVING = 1024, NODE_STATE_COLLAPSED = 2048, NODE_STATE_GHOST =4096, NODE_STATE_GUEST_IN =8192 } |
![]() | |
static CoreString | get_node_anchor_name (const NodeAnchor &anchor) |
static CoreString | get_node_state_name (const NodeState &state) |
static void | compute_border_color (const GMathVec3d &src, GMathVec3uc &dst, bool force_darker=false, float diff_factor=0.6f) |
static void | adjust_color (GMathVec3uc rgb, bool use_ghost_alpha, bool use_passthrough_alpha=false) |
![]() | |
ItemDrawState | m_draw_state |
![]() | |
static unsigned int | m_ghost_alpha = 96 |
static unsigned int | m_passthrough_alpha = 24 |
Class for Subnet Nodes. Subnets are intended to improve network workflow & efficiency by providing grouping feature.
|
overridevirtual |
Computes world bounding box.
Override to care about container plugs
Reimplemented from GuiNodalNodeBase.
|
overridevirtual |
|
overridevirtual |